ZLUDA/notcuda
2020-11-21 01:53:07 +01:00
..
src Fix linking with shl/shr, add memset on host and support __assertfail 2020-11-21 01:53:07 +01:00
build.rs Refactor host code to use one big lock 2020-11-12 20:12:14 +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