|
3 | 3 | |:-------:|:-------:|:---:|
|
4 | 4 | | [](http://ci.arrayfire.org/view/All/job/arrayfire-wrappers/job/rust-linux/) | [](http://ci.arrayfire.org/view/All/job/arrayfire-wrappers/job/rust-windows/) | [](http://ci.arrayfire.org/view/All/job/arrayfire-wrappers/job/rust-osx/) |
|
5 | 5 |
|
6 |
| -[ArrayFire](https://github.com/arrayfire/arrayfire) is a high performance library for parallel computing with an easy-to-use API. It enables users to write scientific computing code that is portable across CUDA, OpenCL and CPU devices. This project provides Rust bindings for the ArrayFire library. The wrapper is currently compliant with ArrayFire 3.4.x API. If you find any bugs, please report them [here](https://github.com/arrayfire/arrayfire-rust/issues). |
| 6 | +[ArrayFire](https://github.com/arrayfire/arrayfire) is a high performance library for parallel computing with an easy-to-use API. It enables users to write scientific computing code that is portable across CUDA, OpenCL and CPU devices. This project provides Rust bindings for the ArrayFire library. Given below table shows the rust bindings compatability with ArrayFire. If you find any bugs, please report them [here](https://github.com/arrayfire/arrayfire-rust/issues). |
| 7 | + |
| 8 | +| ArrayFire Upstream | Rust Crate | |
| 9 | +|:------------------:|:---------------:| |
| 10 | +| 3.3.x | 3.3.x | |
| 11 | +| 3.4.x | 3.4.x | |
| 12 | + |
| 13 | +Only, Major & Minor version numbers need to match. |
7 | 14 |
|
8 | 15 | ## Documentation
|
9 | 16 |
|
|
30 | 37 | 3. Make sure you add the path to library files to your path environment variables.
|
31 | 38 | - On Linux & OSX: do `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AF_PATH/lib`
|
32 | 39 | - On Windows: Add `%AF_PATH%\lib` to your PATH environment variable.
|
33 |
| -4. Add `arrayfire = "3.4.1"` to the dependencies section of your project's Cargo.toml file. |
| 40 | +4. Add `arrayfire = "3.4.2"` to the dependencies section of your project's Cargo.toml file - 3.4.2 |
| 41 | + is the lastest version of crate. |
34 | 42 |
|
35 | 43 | Once step (4) is over, you should be able to use ArrayFire in your Rust project. If you find any bugs, please report them [here](https://github.com/arrayfire/arrayfire-rust/issues).
|
36 | 44 |
|
@@ -68,10 +76,6 @@ af_print!("Create a 5-by-3 matrix of random floats on the GPU", a);
|
68 | 76 | ~/p/arrayfire_rust> cargo run --example helloworld
|
69 | 77 | ...
|
70 | 78 | running 1 test
|
71 |
| -ArrayFire v3.4.0 (CUDA, 64-bit Linux, build 10d9716) |
72 |
| -Platform: CUDA Toolkit 7.5, Driver: 361.42 |
73 |
| -[0] GeForce GT 650M, 2048 MB, CUDA Compute 3.0 |
74 |
| - |
75 | 79 | Create a 5-by-3 matrix of random floats on the GPU
|
76 | 80 | [5 3 1 1]
|
77 | 81 | 0.7402 0.4464 0.7762
|
|
0 commit comments