138 Commits

Author SHA1 Message Date
Brook Heisler
c74efcb14f Bump version numbers. 2021-07-28 16:30:41 -06:00
Brook Heisler
fb739385a5 Merge branch 'vmx-uuid' 2021-07-28 16:29:08 -06:00
Brook Heisler
3e462424da Fix warning. 2021-07-28 16:28:15 -06:00
Brook Heisler
3cae1d3336 Add test for new uuid function, fix doctest. 2021-07-28 16:27:50 -06:00
Brook Heisler
e995020318 Update DeviceAttribute enum to match cuda-driver-sys. 2021-07-28 16:26:51 -06:00
Volker Mische
a61006c20b Update Changelog 2021-07-08 12:04:11 +02:00
Volker Mische
7f375af367 Add support for getting the UUID of a device
`Device::uuid()` was added to get the UUID of a device via the underlying
`cuDevuceGetUuid()` call.
2021-07-07 13:06:11 +02:00
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
Brook Heisler
ad5630b4e2 Merge pull request #53 from nilsmartel/patch-1
Update README.md
2021-02-25 16:17:27 -06:00
Nils Martel
2db3860107 Update README.md
closes #52
2021-02-11 14:24:23 +01:00
Brook Heisler
156c7478b3 Disable incremental compilation in CI. 2020-07-03 20:23:49 -06:00
Brook Heisler
0f8db341ee Further cache tweaking. 2020-07-03 20:22:32 -06:00
Brook Heisler
a7c5fa263b Attempt to improve CI caching. 2020-07-03 20:20:31 -06:00
Brook Heisler
b10dbc3da4 Fix CI 2020-02-29 11:12:17 -06:00
Brook Heisler
d73dd6a25c Update changelog. 2020-02-29 11:10:05 -06:00
Brook Heisler
faa72e11f1 Bump self-dependency version numbers. 2020-02-29 11:08:15 -06:00
Brook Heisler
439d4d712d Bump version numbers. 0.1.2 2020-02-29 11:03:36 -06:00
Brook Heisler
43fc615bda Add core and derive to CI script 2020-02-29 11:02:05 -06:00
Brook Heisler
2007deb6db Update changelog. 2020-02-29 10:58:28 -06:00
Brook Heisler
442f74000c Add unit tests for Device/UnifiedPtr impls. 2020-02-29 10:54:15 -06:00
Brook Heisler
8c72ad0242 Fix broken tests. 2020-02-29 10:32:00 -06:00
Brook Heisler
482720486a Merge branch 'symplectik-fix-deriving' 2020-02-29 10:31:30 -06:00
Brook Heisler
611dc2dd97 Merge branch 'fix-deriving' of git://github.com/symplectik/RustaCUDA into symplectik-fix-deriving 2020-02-29 10:22:41 -06:00
Brook Heisler
85d16ab4d1 Add nightly-rust build to Travis 2020-02-29 10:07:22 -06:00
Brook Heisler
490fd41ed5 Fix clippy lints. 2020-02-29 09:09:54 -06:00
Brook Heisler
de0d955cc9 Merge pull request #46 from eisterman/fix_ci
Fix the Continuous Integration
2020-01-03 19:42:09 -06:00
Federico Pasqua
89eb908001 Merge branch 'master' into fix_ci 2020-01-03 13:36:58 +01:00
Brook Heisler
4672e0d304 Merge pull request #45 from AndrewGaspar/maybe-uninit
Replace deprecated uninitialized with MaybeUninit
2020-01-02 18:01:50 -06:00
Federico Pasqua
ec036ffa61 Fix space artifact in documentation
Some space in the documentation will make the 
`cargo fmt --all -- --check` fail.
2019-12-31 21:35:06 +01:00
Federico Pasqua
8d3a1ee808 Add #Safety for all the remnaint unsafe function
This fix the last `clippy::missing-safety-doc`warning.
This is needed for a working CI.
2019-12-31 20:50:22 +01: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
Federico Pasqua
2a1e23022b Use mem::MaybeUninit instead of mem::uninitialized
mem::uninitialized is now (Rust 1.40) deprecated in favor of the use
of mem::MaybeUninit
2019-12-31 19:50:11 +01:00
Federico Pasqua
7bc6397d40 Remove fn main() from Doctests in rustacuda
See the warning clippy::needless-doctest-main for more information.
2019-12-30 19:36:18 +01:00
Federico Pasqua
6c88dbee88 Remove fn main() from Doctests in rustacuda_core
See the warning clippy::needless-doctest-main for more information.
2019-12-30 19:23:34 +01:00
Andrew Gaspar
fb223ef4dd Replace uninitialized with MaybeUninit 2019-12-29 12:46:33 -07:00
Brook Heisler
4f78c255c9 Merge pull request #43 from ChipsSpectre/master
mention examples directory in README
2019-11-03 10:38:15 -06:00
ChipsSpectre
29425fae42 mention examples directory in README 2019-10-26 16:28:23 +02:00
Brook Heisler
9aa08a0a61 Remove unified allocation size test.
It tries to allocate 3/4 of the device memory as a unified buffer, but there's no guarantee that there's that much page-locked CPU memory to match, so that doesn't really work.
2019-06-13 19:02:46 -06:00
Brook Heisler
e95df86d16 Merge pull request #38 from LutzCle/fix-oversize-malloc
Fix memory over-allocation bugs
2019-06-13 19:01:57 -06:00
Brook Heisler
602ed7272a Update readme; RustaCUDA supports events now. 2019-06-13 18:35:24 -06:00
Clemens Lutz
d0d6e7bda3 Fix memory over-allocation bugs
`DeviceBuffer`, `LockedBuffer`, and `UnifiedBuffer` allocate several times
more memory than requested. This occurs because the respective `*_malloc()`
wrappers already account for the scaling from "count of T" to bytes. Thus,
count is multiplied with `size_of::<T>()` twice.

This fix simply removes the superfluous multiplication.
2019-06-12 14:56:23 +02:00
Clemens Lutz
63b4ab6cab Add tests to check the size of memory allocations 2019-06-12 14:56:23 +02:00
Kohei Watanabe
61b9446cd5 Fix clippy warning 2019-05-27 17:59:53 +09:00
Kohei Watanabe
28371ff446 Manually implement traits for pointer types
Deriving generates code like

    `impl<T: Trait> Trait for DevicePointer<T>`.

But pointer primitives in `std` do not constraint like that.
2019-05-27 17:06:52 +09:00
Brook Heisler
33c5ef548d Update changelog and version numbers. 0.1.1 2019-05-16 19:19:21 -06:00
Brook Heisler
e5068ea38a Adjust documentation, fix broken doctest. 2019-05-16 18:42:53 -06:00
Brook Heisler
b1727bed6a Merge pull request #37 from LutzCle/cuda-event
Add Cuda Event
2019-05-16 18:22:45 -06:00
Clemens Lutz
e97f87bba6 Add Stream::wait_event 2019-05-09 19:51:09 +02:00
Clemens Lutz
33ce29673b Add CUDA Event 2019-05-09 19:51:09 +02:00
Brook Heisler
cb29ff6d56 Fix clippy warnings. 2019-05-06 19:20:59 -06:00