Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dt_opencl_device_t Struct Reference

#include <opencl.h>

+ Collaboration diagram for dt_opencl_device_t:

Data Fields

dt_pthread_mutex_t lock
 
cl_device_id devid
 
cl_context context
 
cl_command_queue cmd_queue
 
size_t max_image_width
 
size_t max_image_height
 
cl_ulong max_mem_alloc
 
cl_ulong max_global_mem
 
cl_ulong used_global_mem
 
cl_program program [256]
 
cl_kernel kernel [512]
 
int program_used [256]
 
int kernel_used [512]
 
cl_event * eventlist
 
dt_opencl_eventtag_teventtags
 
int numevents
 
int eventsconsolidated
 
int maxevents
 
int lostevents
 
int totalevents
 
int totalsuccess
 
int totallost
 
int maxeventslot
 
int nvidia_sm_20
 
const char * vendor
 
const char * name
 
const char * cname
 
const char * options
 
const char * options_md5
 
cl_int summary
 
size_t memory_in_use
 
size_t peak_memory
 
size_t used_available
 
int runtime_error
 
int avoid_atomics
 
int micro_nap
 
int pinned_memory
 
int clroundup_wd
 
int clroundup_ht
 
unsigned int cltype
 
int event_handles
 
int use_events
 
int disabled
 
size_t forced_headroom
 

Detailed Description

to support multi-gpu and mixed systems with cpu support, we encapsulate devices and use separate command queues.

Field Documentation

◆ avoid_atomics

◆ clroundup_ht

◆ clroundup_wd

◆ cltype

unsigned int dt_opencl_device_t::cltype

Referenced by dt_opencl_device_init().

◆ cmd_queue

◆ cname

◆ context

◆ devid

◆ disabled

int dt_opencl_device_t::disabled

◆ event_handles

int dt_opencl_device_t::event_handles
Todo:
we should be able to test for that with using >= OpenCl 2.0

Referenced by dt_opencl_device_init(), dt_opencl_events_get_slot(), dt_opencl_read_device_config(), and dt_opencl_write_device_config().

◆ eventlist

◆ eventsconsolidated

◆ eventtags

◆ forced_headroom

◆ kernel

◆ kernel_used

int dt_opencl_device_t::kernel_used[512]

◆ lock

dt_pthread_mutex_t dt_opencl_device_t::lock

◆ lostevents

◆ max_global_mem

cl_ulong dt_opencl_device_t::max_global_mem

◆ max_image_height

◆ max_image_width

◆ max_mem_alloc

cl_ulong dt_opencl_device_t::max_mem_alloc

◆ maxevents

int dt_opencl_device_t::maxevents

◆ maxeventslot

int dt_opencl_device_t::maxeventslot

◆ memory_in_use

size_t dt_opencl_device_t::memory_in_use

◆ micro_nap

◆ name

◆ numevents

◆ nvidia_sm_20

int dt_opencl_device_t::nvidia_sm_20

Referenced by dt_opencl_device_init().

◆ options

const char* dt_opencl_device_t::options

◆ options_md5

const char* dt_opencl_device_t::options_md5

◆ peak_memory

size_t dt_opencl_device_t::peak_memory

◆ pinned_memory

◆ program

◆ program_used

int dt_opencl_device_t::program_used[256]

◆ runtime_error

int dt_opencl_device_t::runtime_error

Referenced by dt_opencl_device_init().

◆ summary

cl_int dt_opencl_device_t::summary

◆ totalevents

int dt_opencl_device_t::totalevents

◆ totallost

◆ totalsuccess

int dt_opencl_device_t::totalsuccess

◆ use_events

◆ used_available

size_t dt_opencl_device_t::used_available

◆ used_global_mem

cl_ulong dt_opencl_device_t::used_global_mem

Referenced by dt_opencl_device_init().

◆ vendor

const char* dt_opencl_device_t::vendor

The documentation for this struct was generated from the following file: