Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/opencl/device_opencl.h
| Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
| class OpenCLInfo { | class OpenCLInfo { | ||||
| public: | public: | ||||
| static cl_device_type device_type(); | static cl_device_type device_type(); | ||||
| static bool use_debug(); | static bool use_debug(); | ||||
| static bool device_supported(const string &platform_name, const cl_device_id device_id); | static bool device_supported(const string &platform_name, const cl_device_id device_id); | ||||
| static bool platform_version_check(cl_platform_id platform, string *error = NULL); | static bool platform_version_check(cl_platform_id platform, string *error = NULL); | ||||
| static bool device_version_check(cl_device_id device, string *error = NULL); | static bool device_version_check(cl_device_id device, string *error = NULL); | ||||
| static string get_hardware_id(const string &platform_name, cl_device_id device_id); | static string get_hardware_id(const string &platform_name, cl_device_id device_id); | ||||
| static void get_usable_devices(vector<OpenCLPlatformDevice> *usable_devices, | static void get_usable_devices(vector<OpenCLPlatformDevice> *usable_devices); | ||||
| bool force_all = false); | |||||
| /* ** Some handy shortcuts to low level cl*GetInfo() functions. ** */ | /* ** Some handy shortcuts to low level cl*GetInfo() functions. ** */ | ||||
| /* Platform information. */ | /* Platform information. */ | ||||
| static bool get_num_platforms(cl_uint *num_platforms, cl_int *error = NULL); | static bool get_num_platforms(cl_uint *num_platforms, cl_int *error = NULL); | ||||
| static cl_uint get_num_platforms(); | static cl_uint get_num_platforms(); | ||||
| static bool get_platforms(vector<cl_platform_id> *platform_ids, cl_int *error = NULL); | static bool get_platforms(vector<cl_platform_id> *platform_ids, cl_int *error = NULL); | ||||
| ▲ Show 20 Lines • Show All 558 Lines • Show Last 20 Lines | |||||