Skip to content

Commit

Permalink
fix examples for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
fbusato committed Mar 5, 2025
1 parent 1daed7e commit fc8ade9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cub/test/catch2_test_device_for_each_in_extents.cu
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// TODO: remove _CCCL_COMPILER(MSVC) check after MSVC bug related to vector comparison is fixed:
// "error C3546: '...': there are no parameter packs available to expand"
#if __cccl_lib_mdspan && !_CCCL_COMPILER(MSVC)
#if __cccl_lib_mdspan

# include <cub/device/device_for.cuh>

Expand Down Expand Up @@ -181,4 +181,4 @@ C2H_TEST("DeviceForEachInExtents 3D dynamic", "[ForEachInExtents][dynamic][devic
REQUIRE(h_output == h_output_gpu);
}

#endif // __cccl_lib_mdspan && !_CCCL_COMPILER(MSVC)
#endif // __cccl_lib_mdspan
4 changes: 2 additions & 2 deletions cub/test/catch2_test_device_for_each_in_extents_api.cu
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include <cub/config.cuh>

#if __cccl_lib_mdspan
#if __cccl_lib_mdspan && !_CCCL_COMPILER(MSVC)

# include <cub/device/device_for.cuh>

Expand Down Expand Up @@ -88,4 +88,4 @@ C2H_TEST("Device ForEachInExtents", "[ForEachInExtents][device]")
}
// clang-format on

#endif // __cccl_lib_mdspan
#endif // __cccl_lib_mdspan && !_CCCL_COMPILER(MSVC)

0 comments on commit fc8ade9

Please sign in to comment.