ZLUDA/notcuda
2020-10-31 21:28:15 +01:00
..
src Implement atomic instructions 2020-10-31 21:28:15 +01:00
Cargo.toml Refactor main library, implement some more functionality 2020-09-01 01:43:09 +02:00
README Refactor main library, implement some more functionality 2020-09-01 01:43:09 +02:00

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