Skip to content

Master Update for v3.4.0 #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Sep 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9997c9a
Bump up wrapper version to 3.4
9prady9 May 31, 2016
6d5ab72
Add new function get_size(DType)
9prady9 May 31, 2016
5ffea67
Correct Array::print doc test
9prady9 May 31, 2016
6a5b08d
Update documentation for functions in algorithm module
9prady9 May 31, 2016
d9663e7
Update documentation for functions in arith module
9prady9 May 31, 2016
7c3b533
Additional Documentation for Array Object
9prady9 May 31, 2016
4477f59
Style corrections
9prady9 May 31, 2016
81c50f7
Documentation update
9prady9 Jun 6, 2016
f503a95
Merge branch 'devel' into af3.4
9prady9 Jun 8, 2016
bcdc406
Update arrayfire submodule to latest
9prady9 Jun 14, 2016
5aa5bbd
fn to change fft plan cache size used by ArrayFire fft fns
9prady9 Jun 14, 2016
3aaa5b2
Update upstream project, ArrayFire, submodule to latest commit
9prady9 Jul 29, 2016
8564b2d
Fix compilation issue with rustc 1.10.0
9prady9 Jul 29, 2016
f77d4ae
Add Image Moments functions
9prady9 Jul 29, 2016
5ee9fcd
Merge branch 'devel' into af3.4
9prady9 Jul 29, 2016
e63eb0c
update ArrayFire upstream to latest commit of devel
9prady9 Sep 12, 2016
551d054
FEATURE: clamp function in arith module
9prady9 Sep 12, 2016
8cb8a3f
FEATURE: multiple array evaluation
9prady9 Sep 12, 2016
95458f7
FEATURE: vector field rendering functions
9prady9 Sep 12, 2016
37c5091
FEATURE: one dimensional median filter for images
9prady9 Sep 12, 2016
c951758
update ArrayFire upstream to v3.4.0 tag
9prady9 Sep 13, 2016
8a9a467
fix unused function warning in build script
9prady9 Sep 13, 2016
38a4393
array memory lock, unlock and get device pointer fns
9prady9 Sep 13, 2016
34c81b7
FEATURE: sparse module with sparse array functions
9prady9 Sep 13, 2016
689f3b8
BUGFIX: fix ffi call arguments for strided array creation
9prady9 Sep 13, 2016
bfd5ada
Added new interpolation types for transformation functions
9prady9 Sep 13, 2016
8330324
FEATURE: generalized scan functions
9prady9 Sep 13, 2016
279d463
FEATURE: random number generation functions
9prady9 Sep 13, 2016
6c3e1dc
Update README with latest version number details
9prady9 Sep 13, 2016
ffe748a
Correct doc test annotations
9prady9 Sep 14, 2016
88d4837
Add add/sub/mul/div operator traits for type Array
9prady9 Sep 14, 2016
2801bba
FEATURE: Array print function with precision parameter
9prady9 Sep 14, 2016
6b61e7d
Merge pull request #72 from 9prady9/af3.4
9prady9 Sep 14, 2016
af54568
fix doc test for count function to use f32 type
9prady9 Sep 14, 2016
edf9fdf
BUGFIX: fix type mismatch in RandomEngine new method
9prady9 Sep 14, 2016
316c97e
Change README rust example code to reflect v3.4.0
9prady9 Sep 15, 2016
fdda86b
Removed unused imports in random module
9prady9 Sep 15, 2016
f60f43a
Add documentation for clamp function
9prady9 Sep 15, 2016
5e98e82
Update documentation for graphics module
9prady9 Sep 15, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "arrayfire"
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."
version = "3.3.2"
version = "3.4.0"
documentation = "http://arrayfire.github.io/arrayfire-rust/arrayfire/index.html"
homepage = "https://github.com/arrayfire/arrayfire"
repository = "https://github.com/arrayfire/arrayfire-rust"
Expand Down
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
|:-------:|:-------:|:---:|
| [![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/) |

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

## Documentation

Expand All @@ -30,7 +30,7 @@ first.
3. Make sure you add the path to library files to your path environment variables.
- On Linux & OSX: do `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AF_PATH/lib`
- On Windows: Add `%AF_PATH%\lib` to your PATH environment variable.
4. Add `arrayfire = "3.3.2"` to the dependencies section of your project's Cargo.toml file.
4. Add `arrayfire = "3.4.0"` to the dependencies section of your project's Cargo.toml file.

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

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

### Sample output
Expand All @@ -72,17 +68,17 @@ print(&a);
~/p/arrayfire_rust> cargo run --example helloworld
...
running 1 test
ArrayFire v3.2.0 (CUDA, 64-bit Mac OSX, build d8d4b38)
Platform: CUDA Toolkit 7, Driver: CUDA Driver Version: 7000
[0] GeForce GT 750M, 2048 MB, CUDA Compute 3.0
ArrayFire v3.4.0 (CUDA, 64-bit Linux, build 10d9716)
Platform: CUDA Toolkit 7.5, Driver: 361.42
[0] GeForce GT 650M, 2048 MB, CUDA Compute 3.0

Create a 5-by-3 matrix of random floats on the GPU
[5 3 1 1]
0.7402 0.4464 0.7762
0.9210 0.6673 0.2948
0.0390 0.1099 0.7140
0.9690 0.4702 0.3585
0.9251 0.5132 0.6814

...
```

Expand Down
2 changes: 1 addition & 1 deletion arrayfire
Submodule arrayfire updated 895 files
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::env;
use std::fs;
use rustc_serialize::json;
use std::fs::OpenOptions;
use std::io::{ErrorKind, Read, Write};
use std::io::{ErrorKind, Read};
use std::path::PathBuf;
use std::process::Command;
use std::convert::AsRef;
Expand Down
Loading