13 Commits

Author SHA1 Message Date
Volker Mische
f1fa04fb5d Upgrade to latest cuda-sys
`cuda-sys` was split into several crates with the release of version 0.3.
For RustaCUDA, the `cuda-driver-sys` crate is used, which contains all
the functionality that is currently needed.
2021-07-07 13:05:57 +02:00
Federico Pasqua
e642541046 Fix documentation removing ":" from section names
Without this fix the command `cargo clippy --all -- -D warnings` from
the CI will fail because the lint `clippy::missing-safety-doc` search
for "# Safety" and not "# Safety:".
Even "# Examples" and "# Errors" have seen the ":" removed.
2019-12-31 20:07:17 +01:00
Jeremy Francis
f99084d4dc Remove unwrap from examples (#27)
* test

* test2

* cleaning up .unwraps()

* cleaning up spacing

* removed more unwraps

* removed all?? the unwraps

* removed all?? the unwraps

* All unwrap() calls removed.

* Refactor device.rs into smaller files

* test

cleaning up .unwraps()

cleaning up spacing

removed more unwraps

removed all?? the unwraps

removed all?? the unwraps

branch cleanup

* Removed .unwrap() calls from src/device.rs

* Removed .unwarp() calls from src/function.rs

* Removed unwrap() calls from src/module.rs

* Removed unwrap() calls from module.rs & stream.rs

* Removed unwrap() calls from #[test]s in module.rs

* Removed unwrap() calls from #[test]s in both function.rs & device.rs

* Removed all .unwrap() calls from examples in src/...

* rustfmt cleanups

* Removed duplicate crate imports, more Rustfmt adjusments

* Cleaning up Formatting
2019-01-22 18:46:01 -06:00
Robert Rusch
3eeef1bd34 Bump to Rust 2018 2018-12-06 18:21:29 -05:00
Brook Heisler
6b076722d5 Rename Module::load and load_data, update examples. 2018-11-27 19:58:42 -06:00
Brook Heisler
db35f2ca5a Add Travis-CI shield to README. 2018-11-25 17:02:32 -06:00
Brook Heisler
3d0f8342f1 More minor documentation fixes. 2018-11-25 11:48:27 -06:00
Brook Heisler
df2d46b088 Clean up and document error module. 2018-11-25 11:07:34 -06:00
Brook Heisler
85349c3f6c Add special drop function to structs that have to be dropped.
This allows the user to explicitly destroy resources and get the returned error value, rather than panicking in drop.
2018-11-25 10:12:21 -06:00
Brook Heisler
ef1a21df20 Flesh out the function struct more. 2018-11-22 18:33:56 -06:00
Brook Heisler
09f5f6f454 Add Function struct to represent kernel functions. Currently can't launch them though. 2018-11-19 19:04:16 -06:00
Brook Heisler
81117f5a75 Add symbol type for accessing global symbols in module. 2018-11-19 18:30:04 -06:00
Brook Heisler
5410b94079 Implement module loading. 2018-11-18 17:22:06 -06:00