MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / maximum_problem_size

Method maximum_problem_size

src/tests/cl_transform.h:955–962  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

953
954 /*****************************************************/
955 size_t maximum_problem_size() {
956 int device_index = 0;
957 //N.B. if this class ever needs to support more than one device at once
958 //(i.e., multiple GPUs or CPU+GPU), device index will need to be variable
959 //to choose the device of interest
960 return cl_device_max_memory_to_allocate(device_index)/(sizeof(T)*2);
961 //TODO *2 needs to be either *1 or *2, depending, once real numbers are implemented in clfft
962 }
963
964 /*****************************************************/
965 size_t number_of_opencl_devices() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected