Skip to content

Commit

Permalink
Add bindings for all modules except cudnn and nccl
Browse files Browse the repository at this point in the history
  • Loading branch information
elmattic committed Jun 25, 2024
1 parent 0200c29 commit 4eee547
Show file tree
Hide file tree
Showing 13 changed files with 26,686 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ features = ["cuda-12050", "f16", "cudnn"]

[features]
default = ["std", "cublas", "cublaslt", "cudnn", "curand", "driver", "nccl", "nvrtc"]
no-cudnn = ["std", "cublas", "cublaslt", "curand", "driver", "nvrtc"]

cuda-version-from-build-system = []
cuda-11040 = []
cuda-11050 = []
cuda-11060 = []
cuda-11070 = []
Expand Down
4 changes: 3 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ fn main() {
(11, 6)
} else if cfg!(feature = "cuda-11050") {
(11, 5)
} else if cfg!(feature = "cuda-11040") {
(11, 4)
} else {
#[cfg(not(feature = "cuda-version-from-build-system"))]
panic!("Must specify one of the following features: [cuda-version-from-build-system, cuda-12050, cuda-12040, cuda-12030, cuda-12020, cuda-12010, cuda-12000, cuda-11080, cuda-11070, cuda-11060, cuda-11050]");
panic!("Must specify one of the following features: [cuda-version-from-build-system, cuda-12050, cuda-12040, cuda-12030, cuda-12020, cuda-12010, cuda-12000, cuda-11080, cuda-11070, cuda-11060, cuda-11050, cuda-11040]");

#[cfg(feature = "cuda-version-from-build-system")]
{
Expand Down
5 changes: 5 additions & 0 deletions src/cublas/sys/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#[cfg(feature = "cuda-11040")]
mod sys_11040;
#[cfg(feature = "cuda-11040")]
pub use sys_11040::*;

#[cfg(feature = "cuda-11050")]
mod sys_11050;
#[cfg(feature = "cuda-11050")]
Expand Down
Loading

0 comments on commit 4eee547

Please sign in to comment.