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
* Bump up crate version to 3.6.0
* Update crate dependencies
* Update build.rs to reflect 3.6 release
* Update the submodule arrayfire to 3.6 branch
* Update crate with new fns from 3.6 release
* Improve build config format
* Add get_last_error utility helper
* Update README for 3.6 and fix style
Copy file name to clipboardExpand all lines: Cargo.toml
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
[package]
2
2
name = "arrayfire"
3
3
description = "ArrayFire is a high performance software library for parallel computing with an easy-to-use API. Its array based function set makes parallel programming simple. ArrayFire's multiple backends (CUDA, OpenCL and native CPU) make it platform independent and highly portable. A few lines of code in ArrayFire can replace dozens of lines of parallel computing code, saving you valuable time and lowering development costs. This crate provides Rust bindings for ArrayFire library."
[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).
3
+
[ArrayFire](https://github.com/arrayfire/arrayfire) is a high performance
4
+
library for parallel computing with an easy-to-use API. It enables users
5
+
to write scientific computing code that is portable across CUDA, OpenCL
6
+
and CPU devices. This project provides Rust bindings for the ArrayFire
7
+
library. Given below table shows the rust bindings compatability with
8
+
ArrayFire. If you find any bugs, please report them
@@ -27,37 +32,47 @@ Linux, Windows and OSX. Rust 1.15.1 or higher is required.
27
32
28
33
## Use from Crates.io [](https://crates.io/crates/arrayfire)
29
34
30
-
To use the rust bindings for ArrayFire from crates.io, the following requirements are to be met
31
-
first.
35
+
To use the rust bindings for ArrayFire from crates.io, the following
36
+
requirements are to be met first.
32
37
33
-
1.[Download and install ArrayFire binaries](https://arrayfire.com/download) based on your operating
34
-
system.
35
-
2. Set the evironment variable `AF_PATH` to point to ArrayFire installation root folder.
36
-
3. Make sure you add the path to library files to your path environment variables.
38
+
1.[Download and install ArrayFire binaries](https://arrayfire.com/download)
39
+
based on your operating system.
40
+
2. Set the evironment variable `AF_PATH` to point to ArrayFire installation
41
+
root folder.
42
+
3. Make sure to add the path to lib files to your path environment variables.
37
43
- On Linux & OSX: do `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AF_PATH/lib`
38
44
- On Windows: Add `%AF_PATH%\lib` to your PATH environment variable.
39
-
4. Add `arrayfire = "3.5.0"` to the dependencies section of your project's Cargo.toml file - 3.5.0
40
-
is the latest version of crate.
45
+
4. Add `arrayfire = "3.6"` to the dependencies section of your project's
46
+
Cargo.toml file. Make sure to change the version to latest available.
41
47
42
-
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).
48
+
Once step (4) is over, you should be able to use ArrayFire in your Rust
Edit [build.conf](build.conf) to modify the build flags. The structure is a simple JSON blob. Currently Rust does not allow key:value pairs to be passed from the CLI. To use an existing ArrayFire installation modify the first three JSON values. You can install ArrayFire using one of the following two ways.
54
+
Edit [build.conf](build.conf) to modify the build flags. The structure is a
55
+
simple JSON blob. Currently Rust does not allow key:value pairs to be passed
56
+
from the CLI. To use an existing ArrayFire installation modify the first three
57
+
JSON values. You can install ArrayFire using one of the following two ways.
47
58
48
59
-[Download and install binaries](https://arrayfire.com/download)
49
60
-[Build and install from source](https://github.com/arrayfire/arrayfire)
50
61
51
-
To build arrayfire submodule available in the rust wrapper, you have to do the following.
62
+
To build arrayfire submodule available in the rust wrapper, you have to do
63
+
the following.
52
64
53
65
```bash
54
66
git submodule update --init --recursive
55
67
cargo build
56
68
```
57
-
This is recommended way to build Rust wrapper since the submodule points to the most compatible version of ArrayFire the Rust wrapper has been tested with. You can find the ArrayFire dependencies below.
69
+
This is recommended way to build Rust wrapper since the submodule points to
70
+
the most compatible version of ArrayFire the Rust wrapper has been tested with.
0 commit comments