diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-20 21:05:04 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-21 14:01:11 +0300 |
commit | a0f16e12a03c686e05f9315634e4d081a0aa6a80 (patch) | |
tree | f6a4b2e5735cda8aa24004a2c16bdc396add0f54 /intern/cycles/device/opencl/opencl.h | |
parent | 7780a108b3d561989b52c7a553969c31509a95ed (diff) |
Cycles: Use more friendly GPU device name for AMD cards
For example, for RX480 you'll no longer see "Ellesmere" but will see
"AMD Radeon RX 480 Graphics" which makes more sense and allows to easily
distinguish which exact card it is when having multiple different cards
of Ellesmere codenames (i.e. RX480 and WX7100) in the same machine.
Diffstat (limited to 'intern/cycles/device/opencl/opencl.h')
-rw-r--r-- | intern/cycles/device/opencl/opencl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/cycles/device/opencl/opencl.h b/intern/cycles/device/opencl/opencl.h index 6b3bbf91f22..59e61aad25c 100644 --- a/intern/cycles/device/opencl/opencl.h +++ b/intern/cycles/device/opencl/opencl.h @@ -131,6 +131,13 @@ public: cl_device_type *device_type, cl_int* error = NULL); static cl_device_type get_device_type(cl_device_id device_id); + + /* Get somewhat more readable device name. + * Main difference is AMD OpenCL here which only gives code name + * for the regular device name. This will give more sane device + * name using some extensions. + */ + static string get_readable_device_name(cl_device_id device_id); }; /* Thread safe cache for contexts and programs. |