Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-02-15 21:08:36 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-02-15 21:08:36 +0300
commit1336e97b1242bc99b91cb74b3a810724b544c596 (patch)
tree972ef721c27d0b36210cc2c84de17ad18fd9fb0e /intern
parent06743f4018b244769a4366a3dd9e5581713f8679 (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')
-rw-r--r--intern/cycles/kernel/CMakeLists.txt2
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)