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:
authorSayak Biswas <sayakAMD>2021-11-23 16:16:24 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-11-23 17:45:37 +0300
commit3bb8d173e70c1ec80612733c63efedc5e1d854e5 (patch)
tree291b748046fddf0a68ddb1920787f59fc6672a54 /intern/cycles/device/hip/device.cpp
parent1a7c32a0aba5219a97ff96c5269e075b1d3a3fed (diff)
Fix T93109: Cycles HIP missing check for correct driver version
21.Q4 is required, older version should not show devices in the preferences. This adds a check for the file version of amdhip64.dll file during hipew initialization. Differential Revision: https://developer.blender.org/D13324
Diffstat (limited to 'intern/cycles/device/hip/device.cpp')
-rw-r--r--intern/cycles/device/hip/device.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/intern/cycles/device/hip/device.cpp b/intern/cycles/device/hip/device.cpp
index 29304e50247..ecc109b2bb9 100644
--- a/intern/cycles/device/hip/device.cpp
+++ b/intern/cycles/device/hip/device.cpp
@@ -57,9 +57,16 @@ bool device_hip_init()
}
}
else {
- VLOG(1) << "HIPEW initialization failed: "
- << ((hipew_result == HIPEW_ERROR_ATEXIT_FAILED) ? "Error setting up atexit() handler" :
- "Error opening the library");
+ if (hipew_result == HIPEW_ERROR_ATEXIT_FAILED) {
+ VLOG(1) << "HIPEW initialization failed: Error setting up atexit() handler";
+ }
+ else if (hipew_result == HIPEW_ERROR_OLD_DRIVER) {
+ VLOG(1) << "HIPEW initialization failed: Driver version too old, requires AMD Radeon Pro "
+ "21.Q4 driver or newer";
+ }
+ else {
+ VLOG(1) << "HIPEW initialization failed: Error opening HIP dynamic library";
+ }
}
return result;