One of ArrayFire's biggest features is the ability for code to be written just once and run on a plethora of devices. In this post, we will show examples of the various devices that ArrayFire runs using the exact same code.

Code: Link Here

<h4 style="color:#006600;">NVIDIA GPUs<sup>$^</sup></h4>
<pre>
ArrayFire v2.1 (CUDA, 64-bit Linux, build 4b9115c)
License: Standalone (/home/shehzan/.arrayfire.lic)
Addons: MGL4, DLA, SLA
Platform: CUDA toolkit 6.0, Driver: 340.21
[0]: Tesla K40c, 11520 MB, CUDA Compute 3.5 
 1 : Quadro K5000, 4096 MB, CUDA Compute 3.0 
Compute Device: [0], Display Device: [1]
Memory Usage: 11406 MB free (11520 MB total)
</pre>
<pre>
ArrayFire v2.1 (CUDA, 64-bit Linux, build 4b9115c)
License: Standalone (/home/user/.arrayfire.lic)
Addons: MGL4, DLA, SLA
Platform: CUDA toolkit 6.0, Driver: 340.21
[0]: Tesla K40c, 11520 MB, CUDA Compute 3.5 
 1 : Quadro K5000, 4096 MB, CUDA Compute 3.0 
Compute Device: [0], Display Device: [1]
Memory Usage: 11406 MB free (11520 MB total)
</pre>

<h4 style="color:#AA0000;">AMD GPUs<sup>^</sup></h4>

<h4 style="color:#AA0000;">AMD APU/CPU<sup>^</sup></h4>

<h4 style="color:#0033FF;">Intel CPU<sup>^</sup></h4>
<pre>
ArrayFire v2.1 (OpenCL, 64-bit Linux, build 4b9115c)
License: Standalone (/home/shehzan/.arrayfire.lic)
Addons: MGL4, DLA, SLA
Platform: Intel(R) OpenCL, Driver: 1.2.0.83073
 0 : Tesla K40c, 11519 MB, OpenCL Version: 1.1
 1 : Quadro K5000, 4095 MB, OpenCL Version: 1.1
[2]: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 7922 MB, OpenCL Version: 1.2
Compute Device: [2]
</pre>

<h4 style="color:#0033FF;">Intel CPU Graphics<sup>^</sup></h4>

<h4 style="color:#0033FF;">Intel Xeon Phi<sup>^</sup></h4>

<h4 style="color:#006600;">NVIDIA Tegra K1<sup>$</sup></h4>
<pre>
ArrayFire v (CUDA, 32-bit Linux, build 4c3c009)
License: Standalone (Tegra boom)
Addons: MGL16, DLA, SLA
ARM
 0 : GK20A, 1747 MB, CUDA Compute 3.2 
Memory Usage: 106 MB free (1747 MB total)
</pre>

<h4 style="color:#3366FF;">ARM Devices (OpenCL)<sup>^#</sup></h4>

<h4 style="color:#00CC66;">Andoird Phones with Qualcomm Processors (OpenCL)<sup>^#</sup></h4>

$: CUDA Capable
^: OpenCL Capable
#: Experimental versions. Email <a href="mailto:technical@arrayfire.com" >technical@arrayfire.com</a> for access.