This repository contains the files required to use ArrayFire from Java.
-
The latest version of ArrayFire. You can get ArrayFire using one of the following:
-
The latest version of
JAVA SDK. Make sure there is an environmental variableJAVA_HOMEpointing to the root directory of java sdk installation. -
make
GNU Makeon Linux
-
C++ compiler
gccorclangon Linux
-
OSX and Windows support coming soon
-
src/: Contains the source files for the ArrayFire Java wrapper*.cppThe JNI wrapper filesjni_helper.hThe JNI API helper functions
-
com/: Contains the Java source files implementing algorithms -
lib/: The location where the JNI library is stored -
examples: contains a few examples demonstrating the usage
After you the necessary pre-requisites, edit the following paramets
- Open
Makefileand changeAF_PATHto the right location
-
To build the JNI Wrapper for ArrayFire use
make cudato build using CUDAmake openclto build using OpenCL
-
To build the examples do one of the following from the examples directory
make cuda runto use build and run examples using CUDAmake opencl runto use build and run examples using OpenCL
- TODO
- Please check the LICENSE file in the root directory