Returns an integer indicating the backends loaded successfully. More...
Returns an integer indicating the backends loaded successfully.
The number returned denotes the backends available according to the table:
Return Value Backends Available 0 None 1 CPU 2 CUDA 3 CPU and CUDA 4 OpenCL 5 CPU and OpenCL 6 CUDA and OpenCL 7 CPU, CUDA and OpenCLTo convert the integer back into bools for each device, use the following code
@ AF_BACKEND_CUDA
CUDA Compute Backend.
@ AF_BACKEND_OPENCL
OpenCL Compute Backend.
@ AF_BACKEND_CPU
CPU a.k.a sequential algorithms.
AFAPI int getAvailableBackends()
Returns a flag of all available backends.
◆ af_get_available_backends() AFAPI af_err af_get_available_backends ( int * backends )Returns a flag of all available backends.
int backends = 0;
}
AFAPI af_err af_get_available_backends(int *backends)
Returns a flag of all available backends.
Returns a flag of all available backends.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4