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
Copy file name to clipboardExpand all lines: Cargo.toml
+10-6Lines changed: 10 additions & 6 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."
Copy file name to clipboardExpand all lines: README.md
+9-17Lines changed: 9 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
-
# Arrayfire Rust Bindings
1
+
# Arrayfire Rust Bindings [](https://gitter.im/arrayfire/arrayfire-rust?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[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.2 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. The wrapper is currently compliant with ArrayFire 3.3 API. If you find any bugs, please report them [here](https://github.com/arrayfire/arrayfire-rust/issues).
4
7
5
8
## Documentation
6
9
@@ -13,6 +16,9 @@ You can find the most recent updated documentation [here](http://arrayfire.githu
13
16
14
17
We recommend using Rust 1.5 and higher.
15
18
19
+
Rust 1.8 stabilized the traits for compound assignment operations. These are automatically enabled
20
+
based on the rust version you are using.
21
+
16
22
## Use from Crates.io [](https://crates.io/crates/arrayfire)
17
23
18
24
To use the rust bindings for ArrayFire from crates.io, the following requirements are to be met
@@ -24,7 +30,7 @@ first.
24
30
3. Make sure you add the path to library files to your path environment variables.
25
31
- On Linux & OSX: do `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AF_PATH/lib`
26
32
- On Windows: Add `%AF_PATH%\lib` to your PATH environment variable.
27
-
4. Add `arrayfire = "3.2.0"` to the dependencies section of your project's Cargo.toml file.
33
+
4. Add `arrayfire = "3.3.2"` to the dependencies section of your project's Cargo.toml file.
28
34
29
35
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).
30
36
@@ -80,20 +86,6 @@ Create a 5-by-3 matrix of random floats on the GPU
80
86
...
81
87
```
82
88
83
-
## Issues
84
-
85
-
You might see something along the lines of :
86
-
87
-
```bash
88
-
dyld: Library not loaded: @rpath/libafopencl.3.dylib
89
-
```
90
-
91
-
You need to add the location of libaf.{dylib, so, dll} to your LD_LIBRARY_PATH.
92
-
93
-
## Note
94
-
95
-
This is a work in progress and is not intended for production use.
96
-
97
89
## Acknowledgements
98
90
99
91
The ArrayFire library is written by developers at [ArrayFire](http://arrayfire.com) LLC
0 commit comments