Documentation
|
|
Select one of the following links to begin the download of arrayfire:
Each download contains both CUDA and OpenCL files. Your license file will determine your features, e.g. Free, Developer, Pro, or Enterprise.
See release notes for a list of recent changes.
<CUDA_PATH>/lib(64) to LD_LIBRARY_PATHRun the downloaded installer (an EXE file)
C:/Program Files/ArrayFire/v2.1Add/Remove Programs to uninstall older versions of ArrayFireBegin installation by running the *.run file that you downloaded. From a terminal shell prompt, do:
/opt/arrayfire/v2.1..bashrcTo uninstall a previous version of ArrayFire, simply delete its installation directory.
Unzip the *.zip file in the desired location. From the terminal run:
.bashrcThere are two ways to activate your ArrayFire software:
ArrayFire Free licenses require activation through the installer.
On Windows and Linux, the installer includes an activation wizard. The wizard automatically downloads an arrayfire.lic license file onto your computer. The location of this file will either be the AF_PATH directory if it is set and you have permission to write to this location, or the HOME directory otherwise. To use the wizard, follow these steps:
You will need to choose the Host ID to use for your license file and then click Activate
If everything worked, you'll get a success message like this!
If automatic activation fails, try website activation.
Login to the website and go to your Manage ArrayFire licenses page.
Now that you have installed and activated ArrayFire, let's test the installation by running the helloworld example.
Using Visual Studio 2008, 2010, or 2012, open the appropriate helloworld solution in the <AF_PATH>/examples/helloworld directory.
Solution Platforms to choose between CUDA and OpenCL.Solution Configurations to choose between Release and Debug.If using the consolidated solution files, AF_Examples, set helloworld as the Startup Project and then run the solution.
Successful output is shown below.
If you see an error with missing DLLs, try restarting your computer.
For other errors, try repeating the installation steps above. Support is also available, if needed.
To run the Hello World example on Linux, do the following:
Build and run the OpenCL version
Build and run the CUDA version
Successful output is shown below.
If unsuccessful, try repeating the installation steps above. Support is also available, if needed.
To run the Hello World example on Mac, do the following:
Build and run the CUDA version
Successful output is shown below.
If unsuccessful, try repeating the installation steps above. Support is also available, if needed.
If you have successful installed and activated ArrayFire, you will see the following output of the helloworld_opencl example.
Congratulations! You are now ready to use ArrayFire!
See examples for more things to try.