diff options
Diffstat (limited to 'zluda/README')
-rw-r--r-- | zluda/README | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zluda/README b/zluda/README new file mode 100644 index 0000000..089ddcd --- /dev/null +++ b/zluda/README @@ -0,0 +1,3 @@ +bindgen /usr/local/cuda/include/cuda.h -o cuda.rs --whitelist-function="^cu.*" --size_t-is-usize --default-enum-style=newtype --no-layout-tests --no-doc-comments --no-derive-debug --new-type-alias "^CUdevice$|^CUdeviceptr$" +sed -i -e 's/extern "C" {//g' -e 's/-> CUresult;/-> CUresult { impl_::unsupported()/g' -e 's/pub fn /#[no_mangle] pub extern "C" fn /g' cuda.rs +rustfmt cuda.rs
\ No newline at end of file |