Replaced BLACKLIST with BLOCKLIST (#45781)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/41714
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45781
Reviewed By: nairbv
Differential Revision: D24136821
Pulled By: albanD
fbshipit-source-id: 0c0223bda0c5b4da75167a27d7859562db396304
diff --git a/cmake/public/cuda.cmake b/cmake/public/cuda.cmake
index 8b60915..c9ac377 100644
--- a/cmake/public/cuda.cmake
+++ b/cmake/public/cuda.cmake
@@ -478,7 +478,7 @@
endforeach()
# Set C++14 support
-set(CUDA_PROPAGATE_HOST_FLAGS_BLACKLIST "-Werror")
+set(CUDA_PROPAGATE_HOST_FLAGS_BLOCKLIST "-Werror")
if(MSVC)
list(APPEND CUDA_NVCC_FLAGS "--Werror" "cross-execution-space-call")
list(APPEND CUDA_NVCC_FLAGS "--no-host-device-move-forward")
@@ -490,7 +490,7 @@
# OpenMP flags for NVCC with Clang-cl
if("${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC"
AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
- list(APPEND CUDA_PROPAGATE_HOST_FLAGS_BLACKLIST "-Xclang" "-fopenmp")
+ list(APPEND CUDA_PROPAGATE_HOST_FLAGS_BLOCKLIST "-Xclang" "-fopenmp")
if(MSVC_TOOLSET_VERSION LESS 142)
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler" "-openmp")
else()