Skip to content

Commit 706343d

Browse files
committed
Initial first fixes to get CUDA running again
1 parent c0f0205 commit 706343d

File tree

9 files changed

+16
-18
lines changed

9 files changed

+16
-18
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

necsim/core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ contracts = "0.6.3"
2020
serde = { version = "1.0", default-features = false, features = ["derive"] }
2121

2222
[target.'cfg(target_os = "cuda")'.dependencies]
23-
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["derive"], optional = true }
23+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "56f7f2fe", features = ["derive"], optional = true }
2424

2525
[target.'cfg(not(target_os = "cuda"))'.dependencies]
26-
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["derive", "host"], optional = true }
26+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "56f7f2fe", features = ["derive", "host"], optional = true }

necsim/impls/cuda/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ contracts = "0.6.3"
1515
serde = { version = "1.0", default-features = false, features = ["derive"] }
1616

1717
[target.'cfg(target_os = "cuda")'.dependencies]
18-
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["derive"] }
18+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "56f7f2fe", features = ["derive"] }
1919

2020
[target.'cfg(not(target_os = "cuda"))'.dependencies]
21-
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["derive", "host"] }
21+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "56f7f2fe", features = ["derive", "host"] }

necsim/impls/cuda/src/cogs/maths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl MathsCore for NvptxMathsCore {
134134

135135
#[cfg(target_os = "cuda")]
136136
unsafe {
137-
core::arch::asm!("copysign.f64 {}, {}, {};", out(reg64) offset, in(reg64) x, const ROUND_TRUNC_OFFSET.to_bits(), options(pure, nomem, nostack));
137+
core::arch::asm!("copysign.f64 {}, {}, {};", out(reg64) offset, in(reg64) x, in(reg64) ROUND_TRUNC_OFFSET, options(pure, nomem, nostack));
138138
}
139139
#[cfg(not(target_os = "cuda"))]
140140
unsafe {

necsim/impls/cuda/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
#![feature(const_mut_refs)]
77
#![feature(const_refs_to_cell)]
88
#![cfg_attr(target_os = "cuda", feature(asm_experimental_arch))]
9-
#![cfg_attr(target_os = "cuda", feature(asm_const))]
10-
#![cfg_attr(target_os = "cuda", feature(const_float_bits_conv))]
119

1210
extern crate alloc;
1311

necsim/impls/no-std/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ rand_core = "0.6"
3131
rand_distr = { version = "0.4", default-features = false, features = [] }
3232

3333
[target.'cfg(target_os = "cuda")'.dependencies]
34-
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["derive"], optional = true }
34+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "56f7f2fe", features = ["derive"], optional = true }
3535

3636
[target.'cfg(not(target_os = "cuda"))'.dependencies]
37-
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["derive", "host"], optional = true }
37+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "56f7f2fe", features = ["derive", "host"], optional = true }

rustcoalescence/algorithms/cuda/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ thiserror = "1.0"
2323
serde = { version = "1.0", features = ["derive"] }
2424
serde_state = "0.4"
2525
serde_derive_state = "0.4"
26-
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["host"] }
26+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "56f7f2fe", features = ["host"] }

rustcoalescence/algorithms/cuda/cpu-kernel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ necsim-impls-no-std = { path = "../../../../necsim/impls/no-std", features = ["c
1414
necsim-impls-cuda = { path = "../../../../necsim/impls/cuda" }
1515
rustcoalescence-algorithms-cuda-gpu-kernel = { path = "../gpu-kernel" }
1616

17-
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["host"] }
17+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "56f7f2fe", features = ["host"] }

rustcoalescence/algorithms/cuda/gpu-kernel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ necsim-core-bond = { path = "../../../../necsim/core/bond" }
1616
necsim-impls-no-std = { path = "../../../../necsim/impls/no-std", features = ["cuda"] }
1717
necsim-impls-cuda = { path = "../../../../necsim/impls/cuda" }
1818

19-
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["derive"] }
19+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "56f7f2fe", features = ["derive"] }

0 commit comments

Comments
 (0)