Skip to content

Commit

Permalink
Upgraded to fixed RustaCuda
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Nov 24, 2022
1 parent 1a19414 commit ef510e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ host = ["rustacuda", "rust-cuda-ptx-jit/host"]
derive = ["rustacuda_derive", "rust-cuda-derive"]

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

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

const-type-layout = { git = "https://github.com/MomoLangenstein/const-type-layout", rev = "49aa113" }

Expand Down
2 changes: 1 addition & 1 deletion rust-cuda-ptx-jit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ default = []
host = ["regex", "rustacuda", "lazy_static"]

[dependencies]
rustacuda = { git = "https://github.com/MomoLangenstein/RustaCUDA", rev = "bc2c42d", optional = true }
rustacuda = { git = "https://github.com/MomoLangenstein/RustaCUDA", rev = "c6ea7cc", optional = true }
regex = { version = "1.5", optional = true }
lazy_static = { version = "1.4", optional = true }
8 changes: 0 additions & 8 deletions src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,6 @@ impl<C: private::drop::Sealed> From<C> for CudaDropWrapper<C> {
Self(ManuallyDrop::new(val))
}
}
impl<C: private::drop::Sealed> CudaDropWrapper<C> {
pub fn into_inner(self) -> C {
let this = ManuallyDrop::new(self);

// Safety: move out of drop, caller now has to deal with CUDA drop again
unsafe { core::ptr::read(&*this.0) }
}
}
impl<C: private::drop::Sealed> Drop for CudaDropWrapper<C> {
fn drop(&mut self) {
// Safety: drop is only ever called once
Expand Down

0 comments on commit ef510e4

Please sign in to comment.