Skip to content

Commit da87964

Browse files
authored
Merge pull request #84 from arrayfire/devel
Master Update for v3.4.0
2 parents 6fd3d38 + 5e98e82 commit da87964

File tree

23 files changed

+2204
-401
lines changed

23 files changed

+2204
-401
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "arrayfire"
33
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."
4-
version = "3.3.2"
4+
version = "3.4.0"
55
documentation = "http://arrayfire.github.io/arrayfire-rust/arrayfire/index.html"
66
homepage = "https://github.com/arrayfire/arrayfire"
77
repository = "https://github.com/arrayfire/arrayfire-rust"

README.md

+8-12
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
|:-------:|:-------:|:---:|
44
| [![Build Status](http://ci.arrayfire.org/buildStatus/icon?job=arrayfire-wrappers/rust-linux)](http://ci.arrayfire.org/view/All/job/arrayfire-wrappers/job/rust-linux/) | [![Build Status](http://ci.arrayfire.org/buildStatus/icon?job=arrayfire-wrappers/rust-windows)](http://ci.arrayfire.org/view/All/job/arrayfire-wrappers/job/rust-windows/) | [![Build Status](http://ci.arrayfire.org/buildStatus/icon?job=arrayfire-wrappers/rust-osx)](http://ci.arrayfire.org/view/All/job/arrayfire-wrappers/job/rust-osx/) |
55

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).
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).
77

88
## Documentation
99

@@ -30,7 +30,7 @@ first.
3030
3. Make sure you add the path to library files to your path environment variables.
3131
- On Linux & OSX: do `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AF_PATH/lib`
3232
- 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.
3434

3535
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).
3636

@@ -58,12 +58,8 @@ cargo build
5858
let num_rows: u64 = 5;
5959
let num_cols: u64 = 3;
6060
let dims = Dim4::new(&[num_rows, num_cols, 1, 1]);
61-
println!("Create a 5-by-3 matrix of random floats on the GPU");
62-
let a = match randu(dims, Aftype::F32) {
63-
Ok(value) => value,
64-
Err(error) => panic!("{}", error),
65-
};
66-
print(&a);
61+
let a = randu::<f32>(dims);
62+
af_print!("Create a 5-by-3 matrix of random floats on the GPU", a);
6763
```
6864

6965
### Sample output
@@ -72,17 +68,17 @@ print(&a);
7268
~/p/arrayfire_rust> cargo run --example helloworld
7369
...
7470
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
77-
[0] GeForce GT 750M, 2048 MB, CUDA Compute 3.0
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+
7875
Create a 5-by-3 matrix of random floats on the GPU
7976
[5 3 1 1]
8077
0.7402 0.4464 0.7762
8178
0.9210 0.6673 0.2948
8279
0.0390 0.1099 0.7140
8380
0.9690 0.4702 0.3585
8481
0.9251 0.5132 0.6814
85-
8682
...
8783
```
8884

arrayfire

Submodule arrayfire updated 895 files

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::env;
66
use std::fs;
77
use rustc_serialize::json;
88
use std::fs::OpenOptions;
9-
use std::io::{ErrorKind, Read, Write};
9+
use std::io::{ErrorKind, Read};
1010
use std::path::PathBuf;
1111
use std::process::Command;
1212
use std::convert::AsRef;

0 commit comments

Comments
 (0)