33 if (r_meets_driver_requirement) {
34 *r_meets_driver_requirement =
true;
47 const OptixResult result = optixInit();
49 if (result == OPTIX_ERROR_UNSUPPORTED_ABI_VERSION) {
50 LOG_WARNING <<
"OptiX initialization failed because the installed NVIDIA driver is too old. "
51 "Please update to the latest driver first!";
52 if (r_meets_driver_requirement) {
53 *r_meets_driver_requirement =
false;
57 if (result != OPTIX_SUCCESS) {
58 LOG_WARNING <<
"OptiX initialization failed with error code " << (
unsigned int)result;
72 devices.reserve(cuda_devices.size());
79 cuDeviceGetAttribute(&major, CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, info.num);
88 info.use_hardware_raytracing =
true;
90# if defined(WITH_OSL) && defined(OSL_USE_OPTIX) && \
91 (OSL_VERSION_MINOR >= 13 || OSL_VERSION_MAJOR > 1)
95# if defined(WITH_OPENIMAGEDENOISE)
96# if OIDN_VERSION >= 20300
97 if (oidnIsCUDADeviceSupported(info.num)) {
99 if (OIDNDenoiserGPU::is_device_supported(info)) {
105 devices.push_back(info);