diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-11-09 19:20:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-11-09 19:38:25 +0300 |
commit | fd0ba6449b14389a8d3ae42f99427a2be07d99f3 (patch) | |
tree | cac127bd4bbd00f9efffc14bf872dac6fd273c3e /intern/cycles/device/hip | |
parent | aa13c4b386b1311162e74378ad864a51b2f1b7af (diff) |
Cycles: mark both RDNA and RDNA2 as support for HIP
Diffstat (limited to 'intern/cycles/device/hip')
-rw-r--r-- | intern/cycles/device/hip/device_impl.cpp | 2 | ||||
-rw-r--r-- | intern/cycles/device/hip/util.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 |