Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/opencl/opencl.h
| Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | public: | ||||
| static bool platform_version_check(cl_platform_id platform, | static bool platform_version_check(cl_platform_id platform, | ||||
| string *error = NULL); | string *error = NULL); | ||||
| static bool device_version_check(cl_device_id device, | static bool device_version_check(cl_device_id device, | ||||
| string *error = NULL); | string *error = NULL); | ||||
| static string get_hardware_id(const string& platform_name, | static string get_hardware_id(const string& platform_name, | ||||
| cl_device_id device_id); | 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); | bool force_all = false); | ||||
| static bool use_single_program(); | |||||
| /* ** 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, | static bool get_platforms(vector<cl_platform_id> *platform_ids, | ||||
| ▲ Show 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | static void CL_CALLBACK context_notify_callback(const char *err_info, | ||||
| const void * /*private_info*/, size_t /*cb*/, void *user_data); | const void * /*private_info*/, size_t /*cb*/, void *user_data); | ||||
| bool opencl_version_check(); | bool opencl_version_check(); | ||||
| string device_md5_hash(string kernel_custom_build_options = ""); | string device_md5_hash(string kernel_custom_build_options = ""); | ||||
| bool load_kernels(const DeviceRequestedFeatures& requested_features); | bool load_kernels(const DeviceRequestedFeatures& requested_features); | ||||
| /* Get the name of the opencl program for the given kernel */ | /* Get the name of the opencl program for the given kernel */ | ||||
| const string get_opencl_program_name(bool single_program, const string& kernel_name); | const string get_opencl_program_name(const string& kernel_name); | ||||
| /* Get the program file name to compile (*.cl) for the given kernel */ | /* Get the program file name to compile (*.cl) for the given kernel */ | ||||
| const string get_opencl_program_filename(bool single_program, const string& kernel_name); | const string get_opencl_program_filename(const string& kernel_name); | ||||
| string get_build_options(const DeviceRequestedFeatures& requested_features, const string& opencl_program_name); | string get_build_options(const DeviceRequestedFeatures& requested_features, const string& opencl_program_name); | ||||
| void mem_alloc(device_memory& mem); | void mem_alloc(device_memory& mem); | ||||
| void mem_copy_to(device_memory& mem); | void mem_copy_to(device_memory& mem); | ||||
| void mem_copy_from(device_memory& mem, int y, int w, int h, int elem); | void mem_copy_from(device_memory& mem, int y, int w, int h, int elem); | ||||
| void mem_zero(device_memory& mem); | void mem_zero(device_memory& mem); | ||||
| void mem_free(device_memory& mem); | void mem_free(device_memory& mem); | ||||
| ▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines | |||||