mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
turn off cuda propogate host flags
This commit is contained in:
@ -110,7 +110,8 @@ endif()
|
||||
# ---[ CUDA
|
||||
include(cmake/Cuda.cmake)
|
||||
if(HAVE_CUDA)
|
||||
LIST(APPEND CUDA_NVCC_FLAGS "-Xcompiler;-std=c++11")
|
||||
SET(CUDA_PROPAGATE_HOST_FLAGS OFF)
|
||||
LIST(APPEND CUDA_NVCC_FLAGS -Xcompiler -std=c++11)
|
||||
LIST(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_52,code=sm_52)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user