We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 194de52 commit 4e06483Copy full SHA for 4e06483
docs/details/backend.dox
@@ -45,6 +45,15 @@ Return Value | Backends Available
45
6 | CUDA and OpenCL
46
7 | CPU, CUDA and OpenCL
47
48
+To convert the integer back into bools for each device, use the following code
49
+\code
50
+int backends = af::getAvailableBackends();
51
+
52
+bool cpu = backends & AF_BACKEND_CPU;
53
+bool cuda = backends & AF_BACKEND_CUDA;
54
+bool opencl = backends & AF_BACKEND_OPENCL;
55
+\endcode
56
57
\ingroup unified_func
58
\ingroup arrayfire_func
59
0 commit comments