diff options
author | Andrzej Janik <[email protected]> | 2021-02-28 00:46:50 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-02-28 00:46:50 +0100 |
commit | b7ee6d66c3cfac9922addc6c362ae437cfa8fee5 (patch) | |
tree | 9666c7d357e1d15ed9c516a673074fd64d4abfc3 /zluda_ml/README | |
parent | 871b8d1befab63a1cd7f25a9bb26c9ecaebb1cd1 (diff) | |
download | ZLUDA-b7ee6d66c3cfac9922addc6c362ae437cfa8fee5.tar.gz ZLUDA-b7ee6d66c3cfac9922addc6c362ae437cfa8fee5.zip |
Implement enough nvml to make GeekBench happy
Diffstat (limited to 'zluda_ml/README')
-rw-r--r-- | zluda_ml/README | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zluda_ml/README b/zluda_ml/README new file mode 100644 index 0000000..300a2a3 --- /dev/null +++ b/zluda_ml/README @@ -0,0 +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
+rustfmt src/nvml.rs
\ No newline at end of file |