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
+1-1
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. 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).
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 API. If you find any bugs, please report them [here](https://github.com/arrayfire/arrayfire-rust/issues).
7
7
8
8
## Documentation
9
9
@@ -30,7 +30,7 @@ first.
30
30
3. Make sure you add the path to library files to your path environment variables.
31
31
- On Linux & OSX: do `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AF_PATH/lib`
32
32
- On Windows: Add `%AF_PATH%\lib` to your PATH environment variable.
33
-
4. Add `arrayfire = "3.3.2"` to the dependencies section of your project's Cargo.toml file.
33
+
4. Add `arrayfire = "3.4.0"` to the dependencies section of your project's Cargo.toml file.
34
34
35
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).
36
36
@@ -58,12 +58,8 @@ cargo build
58
58
letnum_rows:u64=5;
59
59
letnum_cols:u64=3;
60
60
letdims=Dim4::new(&[num_rows, num_cols, 1, 1]);
61
-
println!("Create a 5-by-3 matrix of random floats on the GPU");
62
-
leta=matchrandu(dims, Aftype::F32) {
63
-
Ok(value) =>value,
64
-
Err(error) =>panic!("{}", error),
65
-
};
66
-
print(&a);
61
+
leta=randu::<f32>(dims);
62
+
af_print!("Create a 5-by-3 matrix of random floats on the GPU", a);
67
63
```
68
64
69
65
### Sample output
@@ -72,17 +68,17 @@ print(&a);
72
68
~/p/arrayfire_rust> cargo run --example helloworld
73
69
...
74
70
running 1 test
75
-
ArrayFire v3.2.0 (CUDA, 64-bit Mac OSX, build d8d4b38)
76
-
Platform: CUDA Toolkit 7, Driver: CUDA Driver Version: 7000
0 commit comments