summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorBram Wasti <bwasti@fb.com>2016-12-22 11:32:23 -0800
committerBram Wasti <bwasti@fb.com>2016-12-22 11:32:23 -0800
commit2da1b44b7f8d35c82fecb87518e6ae5ed4d7ebce (patch)
treed4fc9405fe4f214eb06299ad7361efba82d06a08 /cmake
parent71db17441033cb74fd8871ee755b97339dea60f6 (diff)
downloadpytorch-2da1b44b7f8d35c82fecb87518e6ae5ed4d7ebce.tar.gz
pytorch-2da1b44b7f8d35c82fecb87518e6ae5ed4d7ebce.tar.bz2
pytorch-2da1b44b7f8d35c82fecb87518e6ae5ed4d7ebce.zip
pass std=c++11 directly to nvcc
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Dependencies.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
index 002db55cc1..973678a86d 100644
--- a/cmake/Dependencies.cmake
+++ b/cmake/Dependencies.cmake
@@ -112,6 +112,7 @@ include(cmake/Cuda.cmake)
if(HAVE_CUDA)
SET(CUDA_PROPAGATE_HOST_FLAGS OFF)
LIST(APPEND CUDA_NVCC_FLAGS -Xcompiler -std=c++11)
+ LIST(APPEND CUDA_NVCC_FLAGS -std=c++11)
LIST(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_52,code=sm_52)
endif()