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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-11-09 18:00:06 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-11-10 22:16:44 +0300
commit7689f501e2c3beb3535e4a390971d7b0fde74ee9 (patch)
tree3bd83198e060a4e90ab3c265208bdb18a13d261e /CMakeLists.txt
parente507a789b355a7f96ff01a83707d1a5cc306b0c5 (diff)
Cycles: enable HIP device and binaries on Windows
We've now done testing to confirm this works with RDNA and RDNA2 AMD GPUs on Windows. The AMD driver needed for this will soon be released publicly.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a5ac1918bc..d2e2d02dcde 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -440,7 +440,11 @@ mark_as_advanced(WITH_CYCLES_CUDA_BUILD_SERIAL)
mark_as_advanced(WITH_CUDA_DYNLOAD)
# AMD HIP
-option(WITH_CYCLES_DEVICE_HIP "Enable Cycles AMD HIP support" OFF)
+if(WIN32)
+ option(WITH_CYCLES_DEVICE_HIP "Enable Cycles AMD HIP support" ON)
+else()
+ option(WITH_CYCLES_DEVICE_HIP "Enable Cycles AMD HIP support" OFF)
+endif()
option(WITH_CYCLES_HIP_BINARIES "Build Cycles AMD HIP binaries" OFF)
set(CYCLES_HIP_BINARIES_ARCH gfx1010 gfx1011 gfx1012 gfx1030 gfx1031 gfx1032 gfx1034 CACHE STRING "AMD HIP architectures to build binaries for")
mark_as_advanced(WITH_CYCLES_DEVICE_HIP)