Cub 1.5 fails to build when windows.h was previously included

Recently I’m working on build onnx-runtime in Windows but got some errors:

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include\cub/device/dispatch/dispatch_segmented_sort.cuh(338): error: invalid combination of type specifiers

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include\cub/device/dispatch/dispatch_segmented_sort.cuh(338): error: expected an identifier

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include\cub/device/dispatch/dispatch_segmented_sort.cuh(379): error: expected a member name

Then I googled this issue and got same problem in Open3D side: Use fmt library in compiled (non-header-only) mode by yxlao · Pull Request #4692 · isl-org/Open3D · GitHub

I want to know whether this is a bug or by desgin.

Can any one help me?

Thanks.

Solved by updating cub to 1.16.0

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.