From 306f148f24942eea48da7abd486f03b260af2aad Mon Sep 17 00:00:00 2001 From: Eric Buehler Date: Tue, 3 Feb 2026 09:24:45 -0500 Subject: [PATCH] Remove cudarc dep, bump to 0.7.0 --- Cargo.lock | 125 +++-------------------------------------------------- Cargo.toml | 16 +------ src/lib.rs | 10 ----- 3 files changed, 7 insertions(+), 144 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index da651a3..4d64663 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,26 +109,15 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" -[[package]] -name = "cudarc" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d5be1e9776a20360ca270df637b391c85d48ea57508140f30a4e8f6da91884a" -dependencies = [ - "half", - "libloading", -] - [[package]] name = "float8" -version = "0.6.1" +version = "0.7.0" dependencies = [ "bytemuck", - "cudarc", "half", "num-traits", - "rand 0.9.1", - "rand_distr 0.5.1", + "rand", + "rand_distr", "rkyv", "serde", "zerocopy 0.6.6", @@ -171,9 +160,6 @@ checksum = "6dd08c532ae367adf81c312a4580bc67f1d0fe8bc9c460520283f4c0ff277888" dependencies = [ "cfg-if", "crunchy", - "num-traits", - "rand 0.8.5", - "rand_distr 0.4.3", ] [[package]] @@ -201,16 +187,6 @@ version = "0.2.174" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" -[[package]] -name = "libloading" -version = "0.8.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667" -dependencies = [ - "cfg-if", - "windows-targets", -] - [[package]] name = "libm" version = "0.2.15" @@ -298,15 +274,6 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" -[[package]] -name = "rand" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "rand_core 0.6.4", -] - [[package]] name = "rand" version = "0.9.1" @@ -314,7 +281,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" dependencies = [ "rand_chacha", - "rand_core 0.9.3", + "rand_core", ] [[package]] @@ -324,15 +291,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" dependencies = [ "ppv-lite86", - "rand_core 0.9.3", + "rand_core", ] -[[package]] -name = "rand_core" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" - [[package]] name = "rand_core" version = "0.9.3" @@ -342,16 +303,6 @@ dependencies = [ "getrandom 0.3.3", ] -[[package]] -name = "rand_distr" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32cb0b9bc82b0a0876c2dd994a7e7a2683d3e7390ca40e6886785ef0c7e3ee31" -dependencies = [ - "num-traits", - "rand 0.8.5", -] - [[package]] name = "rand_distr" version = "0.5.1" @@ -359,7 +310,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8615d50dcf34fa31f7ab52692afec947c4dd0ab803cc87cb3b0b4570ff7463" dependencies = [ "num-traits", - "rand 0.9.1", + "rand", ] [[package]] @@ -576,70 +527,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "windows-targets" -version = "0.53.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c66f69fcc9ce11da9966ddb31a40968cad001c5bedeb5c2b82ede4253ab48aef" -dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" - -[[package]] -name = "windows_i686_gnu" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" - -[[package]] -name = "windows_i686_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" - [[package]] name = "wit-bindgen-rt" version = "0.39.0" diff --git a/Cargo.toml b/Cargo.toml index eb77270..e3e361d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "float8" -version = "0.6.1" +version = "0.7.0" rust-version = "1.70" edition = "2021" description = "8-bit floating point types for Rust" @@ -29,23 +29,10 @@ rand = { version = "0.9.0", default-features = false, features = [ ], optional = true } rand_distr = { version = "0.5.0", default-features = false, optional = true } rkyv = { version = "0.7", optional = true } -cudarc = { version = "0.19.0", features = [ - "std", - "cublas", - "cublaslt", - "curand", - "driver", - "nvrtc", - "f16", - "cuda-version-from-build-system", -], default-features = false, optional = true } [features] default = ["std"] std = ["half/std"] -cuda = ["cuda-dynamic"] -cuda-dynamic = ["dep:cudarc", "cudarc?/dynamic-linking"] -cuda-static = ["dep:cudarc", "cudarc?/static-linking"] all = [ "std", "num-traits", @@ -54,7 +41,6 @@ all = [ "zerocopy", "rkyv", "serde", - "cuda", ] num-traits = ["dep:num-traits"] rand_distr = ["dep:rand_distr", "dep:rand", "std"] diff --git a/src/lib.rs b/src/lib.rs index af855ed..239059c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1570,13 +1570,3 @@ macro_rules! from_t { from_t!(F8E4M3); from_t!(F8E5M2); - -#[cfg(any(feature = "cuda-dynamic", feature = "cuda-static"))] -unsafe impl cudarc::driver::DeviceRepr for F8E4M3 {} -#[cfg(any(feature = "cuda-dynamic", feature = "cuda-static"))] -unsafe impl cudarc::driver::ValidAsZeroBits for F8E4M3 {} - -#[cfg(any(feature = "cuda-dynamic", feature = "cuda-static"))] -unsafe impl cudarc::driver::safe::DeviceRepr for F8E5M2 {} -#[cfg(any(feature = "cuda-dynamic", feature = "cuda-static"))] -unsafe impl cudarc::driver::ValidAsZeroBits for F8E5M2 {}