Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/hip/device.cpp
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | else if (hipewCompilerPath() != NULL) { | ||||
| result = true; | result = true; | ||||
| } | } | ||||
| else { | else { | ||||
| VLOG(1) << "Neither precompiled kernels nor HIPCC was found," | VLOG(1) << "Neither precompiled kernels nor HIPCC was found," | ||||
| << " unable to use HIP"; | << " unable to use HIP"; | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| VLOG(1) << "HIPEW initialization failed: " | if (hipew_result == HIPEW_ERROR_ATEXIT_FAILED) { | ||||
| << ((hipew_result == HIPEW_ERROR_ATEXIT_FAILED) ? "Error setting up atexit() handler" : | VLOG(1) << "HIPEW initialization failed: Error setting up atexit() handler"; | ||||
| "Error opening the library"); | } | ||||
| 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; | return result; | ||||
| #else /* WITH_HIP_DYNLOAD */ | #else /* WITH_HIP_DYNLOAD */ | ||||
| return true; | return true; | ||||
| #endif /* WITH_HIP_DYNLOAD */ | #endif /* WITH_HIP_DYNLOAD */ | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines | |||||