You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Build from source](https://github.com/arrayfire/arrayfire)
14
14
15
-
- The latest version of `JAVA SDK`. Make sure there is an environmental variable `JAVA_HOME` pointing to the root directory of java sdk installation.
15
+
- The latest version of `JAVA SDK`. It has been tested with OpenJDK 1.7 and OpenJDK 1.8. Make sure there is an environmental variable `JAVA_HOME` pointing to the root directory of java sdk installation.
16
+
17
+
- CUDA
18
+
- Tested for CUDA 7.5
16
19
17
20
- make
18
21
-`GNU Make` on Linux
@@ -40,18 +43,22 @@ Usage
40
43
41
44
After you the necessary pre-requisites, edit the following paramets
42
45
43
-
- Open `Makefile` and change `AF_PATH` to the right location
46
+
- Open `Makefile` and change `JAVA_HOME` together with `AF_PATH` to the right location
44
47
45
48
46
49
### Linu
8000
x
47
50
48
51
- To build the JNI Wrapper for ArrayFire use
49
52
-`make cuda` to build using CUDA
53
+
- alternatively, you can pass in environment variables to the `Makefile` like this: `JAVA_HOME=<path to the Java SDK> AF_PATH=<path to ArrayFire> make cuda`
50
54
-`make opencl` to build using OpenCL
55
+
- alternatively, you can pass in environment variables to the `Makefile` like this: `JAVA_HOME=<path to the Java SDK> AF_PATH=<path to ArrayFire> make cuda`
51
56
52
57
- To build the examples do one of the following from the examples directory
53
58
-`make cuda run ` to use build and run examples using CUDA
59
+
- alternatively, you can pass in environment variables to the `Makefile` like this: `JAVA_HOME=<path to the Java SDK> AF_PATH=<path to ArrayFire> make cuda`
54
60
-`make opencl run` to use build and run examples using OpenCL
61
+
- alternatively, you can pass in environment variables to the `Makefile` like this: `JAVA_HOME=<path to the Java SDK> AF_PATH=<path to ArrayFire> make cuda`
0 commit comments