Skip to content

Commit 56f7f2f

Browse files
committed
Upgraded to fixed RustaCuda
1 parent e020dc6 commit 56f7f2f

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ host = ["rustacuda", "rust-cuda-ptx-jit/host"]
2323
derive = ["rustacuda_derive", "rust-cuda-derive"]
2424

2525
[dependencies]
26-
rustacuda_core = { git = "https://github.com/MomoLangenstein/RustaCUDA", rev = "bc2c42d" }
26+
rustacuda_core = { git = "https://github.com/MomoLangenstein/RustaCUDA", rev = "c6ea7cc" }
2727

28-
rustacuda = { git = "https://github.com/MomoLangenstein/RustaCUDA", rev = "bc2c42d", optional = true }
29-
rustacuda_derive = { git = "https://github.com/MomoLangenstein/RustaCUDA", rev = "bc2c42d", optional = true }
28+
rustacuda = { git = "https://github.com/MomoLangenstein/RustaCUDA", rev = "c6ea7cc", optional = true }
29+
rustacuda_derive = { git = "https://github.com/MomoLangenstein/RustaCUDA", rev = "c6ea7cc", optional = true }
3030

3131
const-type-layout = { git = "https://github.com/MomoLangenstein/const-type-layout", rev = "aa5ad03" }
3232

rust-cuda-ptx-jit/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ default = []
1212
host = ["regex", "rustacuda", "lazy_static"]
1313

1414
[dependencies]
15-
rustacuda = { git = "https://github.com/MomoLangenstein/RustaCUDA", rev = "bc2c42d", optional = true }
15+
rustacuda = { git = "https://github.com/MomoLangenstein/RustaCUDA", rev = "c6ea7cc", optional = true }
1616
regex = { version = "1.5", optional = true }
1717
lazy_static = { version = "1.4", optional = true }

src/host.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,6 @@ impl<C: private::drop::Sealed> From<C> for CudaDropWrapper<C> {
310310
Self(ManuallyDrop::new(val))
311311
}
312312
}
313-
impl<C: private::drop::Sealed> CudaDropWrapper<C> {
314-
pub fn into_inner(self) -> C {
315-
let this = ManuallyDrop::new(self);
316-
317-
// Safety: move out of drop, caller now has to deal with CUDA drop again
318-
unsafe { core::ptr::read(&*this.0) }
319-
}
320-
}
321313
impl<C: private::drop::Sealed> Drop for CudaDropWrapper<C> {
322314
fn drop(&mut self) {
323315
// Safety: drop is only ever called once

0 commit comments

Comments
 (0)