Skip to content

Commit ef510e4

Browse files
committed
Upgraded to fixed RustaCuda
1 parent 1a19414 commit ef510e4

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 = "49aa113" }
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
@@ -302,14 +302,6 @@ impl<C: private::drop::Sealed> From<C> for CudaDropWrapper<C> {
302302
Self(ManuallyDrop::new(val))
303303
}
304304
}
305-
impl<C: private::drop::Sealed> CudaDropWrapper<C> {
306-
pub fn into_inner(self) -> C {
307-
let this = ManuallyDrop::new(self);
308-
309-
// Safety: move out of drop, caller now has to deal with CUDA drop again
310-
unsafe { core::ptr::read(&*this.0) }
311-
}
312-
}
313305
impl<C: private::drop::Sealed> Drop for CudaDropWrapper<C> {
314306
fn drop(&mut self) {
315307
// Safety: drop is only ever called once

0 commit comments

Comments
 (0)