diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-15 21:08:36 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-15 21:08:36 +0300 |
commit | 1336e97b1242bc99b91cb74b3a810724b544c596 (patch) | |
tree | 972ef721c27d0b36210cc2c84de17ad18fd9fb0e /intern/cycles/kernel/CMakeLists.txt | |
parent | 06743f4018b244769a4366a3dd9e5581713f8679 (diff) |
Cycles: Use CUDA_64_BIT_DEVICE_CODE to detect which CUDA architecture to use
It is initialized based on size of pointer, which matches our previous
behavior, but using it in Cycles side allows to cross-compile CUDA
binaries.
Diffstat (limited to 'intern/cycles/kernel/CMakeLists.txt')
-rw-r--r-- | intern/cycles/kernel/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt index b5b0b1f3fae..582db860491 100644 --- a/intern/cycles/kernel/CMakeLists.txt +++ b/intern/cycles/kernel/CMakeLists.txt @@ -186,7 +186,7 @@ set(SRC_SPLIT_HEADERS if(WITH_CYCLES_CUDA_BINARIES) # 32 bit or 64 bit - if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") + if(CUDA_64_BIT_DEVICE_CODE) set(CUDA_BITS 64) else() set(CUDA_BITS 32) |