-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed3bb3e
commit ae1bfbd
Showing
41 changed files
with
25,514 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -exu | ||
|
||
bindgen \ | ||
--allowlist-var="^CUDA_VERSION" \ | ||
--allowlist-type="^cublas.*" \ | ||
--allowlist-function="^cublas.*" \ | ||
--default-enum-style=rust \ | ||
--no-doc-comments \ | ||
--with-derive-default \ | ||
--with-derive-eq \ | ||
--with-derive-hash \ | ||
--with-derive-ord \ | ||
--use-core \ | ||
wrapper.h -- -I/usr/local/cuda/include \ | ||
> tmp.rs | ||
|
||
CUDA_VERSION=$(cat tmp.rs | grep "CUDA_VERSION" | awk '{ print $6 }' | sed 's/.$//') | ||
mv tmp.rs sys_${CUDA_VERSION}.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#[cfg(feature = "cuda_version_11_8")] | ||
mod sys_11080; | ||
#[cfg(feature = "cuda_version_11_8")] | ||
pub use sys_11080::*; | ||
|
||
#[cfg(feature = "cuda_version_12_2")] | ||
mod sys_12020; | ||
#[cfg(feature = "cuda_version_12_2")] | ||
pub use sys_12020::*; |
File renamed without changes.
Oops, something went wrong.