Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 6 additions & 119 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 1 addition & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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",
Expand All @@ -54,7 +41,6 @@ all = [
"zerocopy",
"rkyv",
"serde",
"cuda",
]
num-traits = ["dep:num-traits"]
rand_distr = ["dep:rand_distr", "dep:rand", "std"]
Expand Down
10 changes: 0 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Loading