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_HOME
pointing to the root directory of java sdk installation. -
make
GNU Make
on Linux
-
C++ compiler
gcc
orclang
on Linux
-
OSX and Windows support coming soon
-
src/
: Contains the source files for the ArrayFire Java wrapper*.cpp
The JNI wrapper filesjni_helper.h
The 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
Makefile
and changeAF_PATH
to the right location
-
To build the JNI Wrapper for ArrayFire use
make cuda
to build using CUDAmake opencl
to build using OpenCL
-
To build the examples do one of the following from the examples directory
make cuda run
to use build and run examples using CUDAmake opencl run
to use build and run examples using OpenCL
- TODO
- Please check the LICENSE file in the root directory