[Bf-blender-cvs] [fd0ba6449b1] blender-v3.0-release: Cycles: mark both RDNA and RDNA2 as support for HIP
Brecht Van Lommel
noreply at git.blender.org
Tue Nov 9 17:38:43 CET 2021
Commit: fd0ba6449b14389a8d3ae42f99427a2be07d99f3
Author: Brecht Van Lommel
Date: Tue Nov 9 17:20:10 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rBfd0ba6449b14389a8d3ae42f99427a2be07d99f3
Cycles: mark both RDNA and RDNA2 as support for HIP
===================================================================
M intern/cycles/blender/addon/properties.py
M intern/cycles/device/hip/device_impl.cpp
M intern/cycles/device/hip/util.h
===================================================================
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py
index 8efb8e41c30..64613216be0 100644
--- a/intern/cycles/blender/addon/properties.py
+++ b/intern/cycles/blender/addon/properties.py
@@ -1419,7 +1419,7 @@ class CyclesPreferences(bpy.types.AddonPreferences):
col.label(text="and NVIDIA driver version 470 or newer", icon='BLANK1')
elif device_type == 'HIP':
import sys
- col.label(text="Requires discrete AMD GPU with RDNA2 architecture", icon='BLANK1')
+ col.label(text="Requires discrete AMD GPU with RDNA architecture", icon='BLANK1')
if sys.platform[:3] == "win":
col.label(text="and AMD Radeon Pro 21.Q4 driver or newer", icon='BLANK1')
return
diff --git a/intern/cycles/device/hip/device_impl.cpp b/intern/cycles/device/hip/device_impl.cpp
index e7772cec262..e8482772186 100644
--- a/intern/cycles/device/hip/device_impl.cpp
+++ b/intern/cycles/device/hip/device_impl.cpp
@@ -154,7 +154,7 @@ bool HIPDevice::support_device(const uint /*kernel_features*/)
hipDeviceProp_t props;
hipGetDeviceProperties(&props, hipDevId);
- set_error(string_printf("HIP backend requires AMD RDNA2 graphics card or up, but found %s.",
+ set_error(string_printf("HIP backend requires AMD RDNA graphics card or up, but found %s.",
props.name));
return false;
}
diff --git a/intern/cycles/device/hip/util.h b/intern/cycles/device/hip/util.h
index f3194ecaa77..e9420becb2d 100644
--- a/intern/cycles/device/hip/util.h
+++ b/intern/cycles/device/hip/util.h
@@ -64,7 +64,7 @@ static inline bool hipSupportsDevice(const int hipDevId)
hipDeviceGetAttribute(&major, hipDeviceAttributeComputeCapabilityMajor, hipDevId);
hipDeviceGetAttribute(&minor, hipDeviceAttributeComputeCapabilityMinor, hipDevId);
- return (major > 10) || (major == 10 && minor >= 3);
+ return (major > 10) || (major == 10 && minor >= 1);
}
CCL_NAMESPACE_END
More information about the Bf-blender-cvs
mailing list