diff options
author | Andrzej Janik <[email protected]> | 2021-02-28 01:50:04 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-02-28 01:50:04 +0100 |
commit | ba83bb28f72faee394a3ecd583eb1cff7a41516d (patch) | |
tree | 1e67dd333cfb1bb125b6d63958e4133fec3d4871 /zluda_ml/README | |
parent | b7ee6d66c3cfac9922addc6c362ae437cfa8fee5 (diff) | |
download | ZLUDA-ba83bb28f72faee394a3ecd583eb1cff7a41516d.tar.gz ZLUDA-ba83bb28f72faee394a3ecd583eb1cff7a41516d.zip |
Inject our own NVML
Diffstat (limited to 'zluda_ml/README')
-rw-r--r-- | zluda_ml/README | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zluda_ml/README b/zluda_ml/README index 300a2a3..60a59ad 100644 --- a/zluda_ml/README +++ b/zluda_ml/README @@ -1,3 +1,3 @@ bindgen "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include\nvml.h" --whitelist-function="^nvml.*" --size_t-is-usize --default-enum-style=newtype --no-layout-tests --no-doc-comments --no-derive-debug -o src/nvml.rs
-sed -i -e 's/extern "C" {//g' -e 's/-> nvmlReturn_t;/-> nvmlReturn_t { impl_::unsupported()/g' -e 's/pub fn /#[no_mangle] pub extern "C" fn /g' src/nvml.rs
+sed -i -e 's/extern "C" {//g' -e 's/-> nvmlReturn_t;/-> nvmlReturn_t { crate::r#impl::unimplemented()/g' -e 's/pub fn /#[no_mangle] pub extern "C" fn /g' src/nvml.rs
rustfmt src/nvml.rs
\ No newline at end of file |