update deps: rust-gpu: 985007fc -> dcf37b75, associated rust-toolchain: nightly-2022-08-29 -> nightly-2022-09-25
verified working: cargo test; cargo run --release --bin sr_latch; cargo run --release --bin wavefront
This commit is contained in:
26
Cargo.lock
generated
26
Cargo.lock
generated
@@ -759,9 +759,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "glam"
|
name = "glam"
|
||||||
version = "0.21.3"
|
version = "0.22.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "518faa5064866338b013ff9b2350dc318e14cc4fcd6cb8206d7e7c9886c98815"
|
checksum = "12f597d56c1bd55a811a1be189459e8fad2bbc272616375602443bdfb37fa774"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"num-traits",
|
"num-traits",
|
||||||
]
|
]
|
||||||
@@ -1702,7 +1702,7 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "rustc_codegen_spirv"
|
name = "rustc_codegen_spirv"
|
||||||
version = "0.4.0-alpha.15"
|
version = "0.4.0-alpha.15"
|
||||||
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=985007fc#985007fc087bb9952106eb3015357bb019e7916a"
|
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0#dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ar",
|
"ar",
|
||||||
"bimap",
|
"bimap",
|
||||||
@@ -1710,6 +1710,8 @@ dependencies = [
|
|||||||
"indexmap",
|
"indexmap",
|
||||||
"libc",
|
"libc",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
|
"once_cell",
|
||||||
|
"regex",
|
||||||
"rspirv",
|
"rspirv",
|
||||||
"rustc-demangle",
|
"rustc-demangle",
|
||||||
"rustc_codegen_spirv-types",
|
"rustc_codegen_spirv-types",
|
||||||
@@ -1724,7 +1726,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "rustc_codegen_spirv-types"
|
name = "rustc_codegen_spirv-types"
|
||||||
version = "0.4.0-alpha.15"
|
version = "0.4.0-alpha.15"
|
||||||
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=985007fc#985007fc087bb9952106eb3015357bb019e7916a"
|
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0#dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rspirv",
|
"rspirv",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -1916,7 +1918,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-builder"
|
name = "spirv-builder"
|
||||||
version = "0.4.0-alpha.15"
|
version = "0.4.0-alpha.15"
|
||||||
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=985007fc#985007fc087bb9952106eb3015357bb019e7916a"
|
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0#dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"memchr",
|
"memchr",
|
||||||
"raw-string",
|
"raw-string",
|
||||||
@@ -1929,7 +1931,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-std"
|
name = "spirv-std"
|
||||||
version = "0.4.0-alpha.15"
|
version = "0.4.0-alpha.15"
|
||||||
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=985007fc#985007fc087bb9952106eb3015357bb019e7916a"
|
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0#dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"glam",
|
"glam",
|
||||||
@@ -1941,7 +1943,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-std-macros"
|
name = "spirv-std-macros"
|
||||||
version = "0.4.0-alpha.15"
|
version = "0.4.0-alpha.15"
|
||||||
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=985007fc#985007fc087bb9952106eb3015357bb019e7916a"
|
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0#dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@@ -1952,22 +1954,22 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-std-types"
|
name = "spirv-std-types"
|
||||||
version = "0.4.0-alpha.15"
|
version = "0.4.0-alpha.15"
|
||||||
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=985007fc#985007fc087bb9952106eb3015357bb019e7916a"
|
source = "git+https://github.com/Rust-GPU/rust-gpu?rev=dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0#dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-tools"
|
name = "spirv-tools"
|
||||||
version = "0.8.0"
|
version = "0.9.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ca7f0f689581589b0a31000317fa31257cb24d040227708718ebd9fedf5cdd2b"
|
checksum = "dc7c8ca2077515286505bd3ccd396e55ac5706e80322e1d6d22a82e1cad4f7c3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"spirv-tools-sys",
|
"spirv-tools-sys",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv-tools-sys"
|
name = "spirv-tools-sys"
|
||||||
version = "0.6.0"
|
version = "0.7.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2980b0b4b2a9b5edfeb1dc8a35e84aac07b9c6dcd2339cce004d9355fb62a59d"
|
checksum = "b4b32d9d6469cd6b50dcd6bd841204b5946b4fb7b70a97872717cdc417659c9a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
]
|
]
|
||||||
|
@@ -37,9 +37,9 @@ wgpu = "0.12"
|
|||||||
# TODO: update to 0.13
|
# TODO: update to 0.13
|
||||||
# wgpu = { version = "0.13", features = ["spirv", "vulkan-portability"] } # MIT or Apache 2.0
|
# wgpu = { version = "0.13", features = ["spirv", "vulkan-portability"] } # MIT or Apache 2.0
|
||||||
# spirv-* is MIT or Apache 2.0
|
# spirv-* is MIT or Apache 2.0
|
||||||
spirv-builder = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "985007fc", features = ["use-compiled-tools"] }
|
spirv-builder = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0", features = ["use-compiled-tools"] }
|
||||||
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "985007fc" }
|
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0" }
|
||||||
spirv-std-macros = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "985007fc" }
|
spirv-std-macros = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0" }
|
||||||
spirv_backend = { path = "../spirv_backend" }
|
spirv_backend = { path = "../spirv_backend" }
|
||||||
spirv_backend_runner = { path = "../spirv_backend_runner" }
|
spirv_backend_runner = { path = "../spirv_backend_runner" }
|
||||||
coremem_cross = { path = "../cross", features = ["iter", "fmt", "serde", "std"] }
|
coremem_cross = { path = "../cross", features = ["iter", "fmt", "serde", "std"] }
|
||||||
|
@@ -638,7 +638,7 @@ mod test {
|
|||||||
// 512 cells for it to propagate back from the conductor.
|
// 512 cells for it to propagate back from the conductor.
|
||||||
// the wave crosses 0.577 cells per step (Courant value), so roughly 2662 steps
|
// the wave crosses 0.577 cells per step (Courant value), so roughly 2662 steps
|
||||||
// for the wave to return home.
|
// for the wave to return home.
|
||||||
for t in 0..2662 {
|
for _t in 0..2662 {
|
||||||
sim.step();
|
sim.step();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -136,7 +136,7 @@ mod test {
|
|||||||
let mut pool: JobPool<u32, u32> = JobPool::new(0);
|
let mut pool: JobPool<u32, u32> = JobPool::new(0);
|
||||||
pool.spawn_workers(2, move |x| {
|
pool.spawn_workers(2, move |x| {
|
||||||
// wait until caller unlocks us
|
// wait until caller unlocks us
|
||||||
let _ = worker_mutex.lock().unwrap();
|
let _lock = worker_mutex.lock().unwrap();
|
||||||
x*2
|
x*2
|
||||||
});
|
});
|
||||||
pool.send(1);
|
pool.send(1);
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
use core::convert::{AsMut, AsRef};
|
use core::convert::{AsMut, AsRef};
|
||||||
|
#[cfg(feature = "iter")]
|
||||||
use core::iter::Zip;
|
use core::iter::Zip;
|
||||||
use core::ops::{Index, IndexMut};
|
use core::ops::{Index, IndexMut};
|
||||||
|
|
||||||
@@ -123,7 +124,10 @@ impl<T: IntoIterator> IntoIterator for DimSlice<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct DimIter {
|
pub struct DimIter {
|
||||||
|
// fields are unused if `iter` feature is disabled
|
||||||
|
#[allow(unused)]
|
||||||
idx: Vec3u,
|
idx: Vec3u,
|
||||||
|
#[allow(unused)]
|
||||||
dim: Vec3u,
|
dim: Vec3u,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
use core::convert::{AsMut, AsRef};
|
use core::convert::{AsMut, AsRef};
|
||||||
|
#[cfg(feature = "iter")]
|
||||||
use core::iter::Zip;
|
use core::iter::Zip;
|
||||||
use core::ops::{Index, IndexMut};
|
use core::ops::{Index, IndexMut};
|
||||||
|
|
||||||
@@ -81,7 +82,10 @@ impl<T: IntoIterator> IntoIterator for OffsetDimSlice<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct OffsetDimIter {
|
pub struct OffsetDimIter {
|
||||||
|
// fields are unused if `iter` feature is disabled
|
||||||
|
#[allow(unused)]
|
||||||
offset: Vec3u,
|
offset: Vec3u,
|
||||||
|
#[allow(unused)]
|
||||||
inner: DimIter,
|
inner: DimIter,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -7,5 +7,5 @@ edition = "2021"
|
|||||||
crate-type = ["dylib", "lib"]
|
crate-type = ["dylib", "lib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "985007fc", features = ["glam"] } # MIT or Apache 2.0
|
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0", features = ["glam"] } # MIT or Apache 2.0
|
||||||
coremem_cross = { path = "../cross" }
|
coremem_cross = { path = "../cross" }
|
||||||
|
@@ -1,16 +1,12 @@
|
|||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
target_arch = "spirv",
|
target_arch = "spirv",
|
||||||
feature(register_attr),
|
|
||||||
register_attr(spirv),
|
|
||||||
no_std
|
no_std
|
||||||
)]
|
)]
|
||||||
#![feature(const_fn_floating_point_arithmetic)]
|
#![feature(const_fn_floating_point_arithmetic)]
|
||||||
|
|
||||||
extern crate spirv_std;
|
extern crate spirv_std;
|
||||||
|
|
||||||
use spirv_std::{glam, RuntimeArray};
|
use spirv_std::{glam, RuntimeArray, spirv};
|
||||||
#[cfg(not(target_arch = "spirv"))]
|
|
||||||
use spirv_std::macros::spirv;
|
|
||||||
|
|
||||||
mod adapt;
|
mod adapt;
|
||||||
mod support;
|
mod support;
|
||||||
@@ -20,6 +16,8 @@ use coremem_cross::real::R32;
|
|||||||
use coremem_cross::step::SimMeta;
|
use coremem_cross::step::SimMeta;
|
||||||
use coremem_cross::vec::{Vec3, Vec3u};
|
use coremem_cross::vec::{Vec3, Vec3u};
|
||||||
|
|
||||||
|
use core::stringify;
|
||||||
|
|
||||||
type Iso3R1<R> = IsoConductorOr<R, Ferroxcube3R1MH>;
|
type Iso3R1<R> = IsoConductorOr<R, Ferroxcube3R1MH>;
|
||||||
|
|
||||||
fn glam_vec_to_internal(v: glam::UVec3) -> Vec3u {
|
fn glam_vec_to_internal(v: glam::UVec3) -> Vec3u {
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
use core::debug_assert;
|
||||||
use core::ops::{Index, IndexMut};
|
use core::ops::{Index, IndexMut};
|
||||||
|
|
||||||
use spirv_std::RuntimeArray;
|
use spirv_std::RuntimeArray;
|
||||||
|
@@ -5,7 +5,7 @@ authors = ["Colin <colin@uninsane.org>"]
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
spirv-builder = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "985007fc", features = ["use-compiled-tools"] }
|
spirv-builder = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "dcf37b75a7f9e7a94f52c8a3a5d93af795e34cd0", features = ["use-compiled-tools"] }
|
||||||
|
|
||||||
# these deps are to satisfy internal rustc stuff, since spirv-builder links into rustc internals (HACK).
|
# these deps are to satisfy internal rustc stuff, since spirv-builder links into rustc internals (HACK).
|
||||||
# this needs to match the rustc lock file -- not just its Cargo.toml -- so we pin down to the patch level
|
# this needs to match the rustc lock file -- not just its Cargo.toml -- so we pin down to the patch level
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly-2022-08-29"
|
channel = "nightly-2022-09-25"
|
||||||
components = [ "rust-src", "rustc-dev", "llvm-tools-preview" ]
|
components = [ "rust-src", "rustc-dev", "llvm-tools-preview" ]
|
||||||
targets = [ "x86_64-unknown-linux-gnu" ]
|
targets = [ "x86_64-unknown-linux-gnu" ]
|
||||||
profile = "default"
|
profile = "default"
|
||||||
|
Reference in New Issue
Block a user