We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbed048 commit 54c4091Copy full SHA for 54c4091
1 file changed
src/torchcodec/_core/CMakeLists.txt
@@ -170,6 +170,12 @@ function(make_torchcodec_libraries
170
# https://github.com/pytorch/pytorch/blob/98e36864e640023a716e058d894ea2d20e76e5f7/torch/csrc/inductor/aoti_torch/c/shim.h#L573-L602
171
target_compile_definitions(${core_library_name} PRIVATE USE_CUDA)
172
set_property(TARGET ${core_library_name} PROPERTY CUDA_STANDARD 17)
173
+ if(WIN32)
174
+ # CUDA 13.2+ CCCL headers require MSVC's standard-conforming
175
+ # preprocessor when compiling .cu files.
176
+ target_compile_options(${core_library_name} PRIVATE
177
+ $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=/Zc:preprocessor>)
178
+ endif()
179
endif()
180
181
# 2. Create libtorchcodec_custom_opsN.{ext}.
0 commit comments