|
7 | 7 |
|
8 | 8 | ## Installation |
9 | 9 |
|
10 | | -Julia v0.6: |
11 | | -```julia |
12 | | -Pkg.add("ArrayFire") |
13 | | -Pkg.checkout("ArrayFire") |
14 | | -``` |
15 | | - |
16 | | -Julia v0.7: |
17 | | -```julia |
18 | | -Pkg.add("ArrayFire") |
19 | | -Pkg.checkout("ArrayFire", "julia-v0.7") |
20 | | -``` |
21 | | - |
22 | | -### OSX |
23 | | - |
24 | | -If you are on OSX, the easiest way to install arrayfire is by using [brew](https://brew.sh/): |
25 | | -``` |
26 | | -brew install brewsci/science/arrayfire |
27 | | -``` |
28 | | -This would download and install `arrayfire` and link the libraries `libafcpu.so`, and `libafopencl.so` to your `usr/local/lib/` and link `arrayfire.h` to `/usr/local/include`. |
| 10 | +Install ArrayFire library: either [download a binary](http://arrayfire.com/download) from the official site, or you can [build from source](https://github.com/arrayfire/arrayfire). |
29 | 11 |
|
30 | | -Note that this binary contains libraries only for the CPU (`libafcpu`) and OpenCL backends (`libafopencl`). If you want the CUDA backend, you have to [download a different binary](http://arrayfire.com/login/?redirect_to=http%3A%2F%2Farrayfire.com%2Fdownload), or [build the library from source](https://github.com/arrayfire/arrayfire/wiki/Build-Instructions-for-OSX). |
31 | | - |
32 | | -**NOTE**: |
33 | | -* Even if you do download an `arrayfire` binary with the CUDA backend (`libafcuda`), you need to have CUDA installed on your system. If you don't already, [check out these instructions](http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#axzz4Axqo0CMQ) on how to install it on a Mac. |
34 | | -* You have to build from source for any custom configurations too (such as linking to a different BLAS library). |
35 | | - |
36 | | -### Linux |
37 | | -On Linux, you can either [download a binary](http://arrayfire.com/login/?redirect_to=http%3A%2F%2Farrayfire.com%2Fdownload) from the official site, or you can [build from source](https://github.com/arrayfire/arrayfire/wiki/Build-Instructions-for-Linux). |
38 | | - |
39 | | -Now that you have `arrayfire` installed, make sure `libaf` in your system path or `LD_LIBRARY_PATH`. Note that `libaf` is the library for the unified backend. For more information on the unified backend, refer to the backends section. |
40 | | - |
41 | | -Now, start Julia, and do: |
| 12 | +In Julia v0.6: |
42 | 13 | ```julia |
43 | 14 | Pkg.add("ArrayFire") |
44 | | -``` |
45 | | - |
46 | | -You can also get the latest nightly version of `ArrayFire.jl` by doing: |
47 | | -```julia |
48 | 15 | Pkg.checkout("ArrayFire") |
49 | 16 | ``` |
50 | 17 |
|
51 | | -Check if `ArrayFire.jl` works by running the tests: |
52 | | -```julia |
53 | | -Pkg.test("ArrayFire") |
54 | | -``` |
55 | | - |
56 | | -If you have any issues getting `ArrayFire.jl` to work, please check the Troubleshooting section below. If it still doesn't work, please file an issue. |
57 | | - |
58 | | -### Windows |
59 | | -Just download the [installer](http://arrayfire.com/download/) after creating an account. |
60 | | -Follow the installation steps and make sure that you include the library directory into the PATH variable as advised by the installer. |
61 | | -Now try: |
| 18 | +In Julia v0.7: |
62 | 19 | ```julia |
63 | 20 | Pkg.add("ArrayFire") |
64 | | -Pkg.test("ArrayFire") |
| 21 | +Pkg.checkout("ArrayFire", "julia-v0.7") |
65 | 22 | ``` |
66 | 23 |
|
67 | | -Arrayfire requires vcomp120.dll. If you do not have Visual Studio installed, install the [Visual C++ redistributable](https://www.microsoft.com/en-us/download/details.aspx?id=40784). |
68 | | - |
69 | 24 | ## Simple Usage |
70 | 25 | Congratulations, you've now installed `ArrayFire.jl`! Now what can you do? |
71 | 26 |
|
|
0 commit comments