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>2022-04-22 01:02:05 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-04-22 01:11:55 +0300
commit179100c021269c278396c9a8039a0b75703c5f3a (patch)
tree9d7ccb46c034cf40333fc2e3bd4f65b676bc791f /CMakeLists.txt
parentce95856f2d62325a3418fa0e53d041cbf39949ee (diff)
Cycles: enable AMD RDNA GPU support on Linux
This enables building of HIP binaries for AMD RDNA and RDNA2 GPUs. This requires the 22.10 / ROCm 5.1 driver. Ref T91571 Differential Revision: https://developer.blender.org/D14360
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 1 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2cc9466c2ba..3a80fefac8c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -439,12 +439,7 @@ endif()
# AMD HIP
if(NOT APPLE)
- 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_DEVICE_HIP "Enable Cycles AMD HIP support" ON)
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)