Skip to content

Commit c0f0205

Browse files
committed
Pipeline CUDA mem transfer with async
1 parent f8c1acb commit c0f0205

File tree

15 files changed

+102
-151
lines changed

15 files changed

+102
-151
lines changed

Cargo.lock

Lines changed: 24 additions & 99 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 = "0befd6d", features = ["derive"], optional = true }
23+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["derive"], optional = true }
2424

2525
[target.'cfg(not(target_os = "cuda"))'.dependencies]
26-
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "0befd6d", features = ["derive", "host"], optional = true }
26+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", 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 = "0befd6d", features = ["derive"] }
18+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["derive"] }
1919

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

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 = "0befd6d", features = ["derive"], optional = true }
34+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["derive"], optional = true }
3535

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

necsim/impls/no-std/src/array2d.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use core::ops::{Index, IndexMut};
1111
/// A fixed sized two-dimensional array.
1212
#[derive(Clone, Eq, PartialEq)]
1313
#[cfg_attr(feature = "cuda", derive(rust_cuda::common::LendRustToCuda))]
14+
#[cfg_attr(feature = "cuda", cuda(async = false))]
1415
#[cfg_attr(
1516
feature = "cuda",
1617
cuda(

necsim/impls/no-std/src/cogs/dispersal_sampler/in_memory/packed_alias/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl From<AliasSamplerRange> for Range<usize> {
4747
#[allow(clippy::module_name_repetitions)]
4848
#[cfg_attr(feature = "cuda", derive(rust_cuda::common::LendRustToCuda))]
4949
#[cfg_attr(feature = "cuda", cuda(free = "M", free = "H", free = "G"))]
50+
#[cfg_attr(feature = "cuda", cuda(async = false))]
5051
pub struct InMemoryPackedAliasDispersalSampler<
5152
M: MathsCore,
5253
H: Habitat<M>,

necsim/impls/no-std/src/cogs/habitat/in_memory.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use crate::array2d::Array2D;
1919
#[derive(Debug)]
2020
#[cfg_attr(feature = "cuda", derive(rust_cuda::common::LendRustToCuda))]
2121
#[cfg_attr(feature = "cuda", cuda(free = "M"))]
22+
#[cfg_attr(feature = "cuda", cuda(async = false))]
2223
pub struct InMemoryHabitat<M: MathsCore> {
2324
#[cfg_attr(feature = "cuda", cuda(embed))]
2425
habitat: Final<Box<[u32]>>,

necsim/impls/no-std/src/cogs/turnover_rate/in_memory.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use crate::{array2d::Array2D, cogs::habitat::in_memory::InMemoryHabitat};
1313
#[allow(clippy::module_name_repetitions)]
1414
#[derive(Debug)]
1515
#[cfg_attr(feature = "cuda", derive(rust_cuda::common::LendRustToCuda))]
16+
#[cfg_attr(feature = "cuda", cuda(async = false))]
1617
pub struct InMemoryTurnoverRate {
1718
#[cfg_attr(feature = "cuda", cuda(embed))]
1819
turnover_rate: Final<Box<[NonNegativeF64]>>,

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 = "0befd6d", features = ["host"] }
26+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", 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 = "0befd6d", features = ["host"] }
17+
rust-cuda = { git = "https://github.com/MomoLangenstein/rust-cuda", rev = "f18ae16", features = ["host"] }

0 commit comments

Comments
 (0)