ZLUDA/zluda
Seunghoon Lee 86cdab3b14
Follow-up changes of #27 (#32)
* Update README.

* Drop dead codes.

* Use addr_of.

* Update Dockerfiles.

* Disable warnings for nvrtc.

* nvrtc.
2024-07-14 16:37:39 +09:00
..
src Follow-up changes of #27 (#32) 2024-07-14 16:37:39 +09:00
tests Support Meshroom (#153) 2024-05-17 00:35:38 +02:00
build.rs Nobody expects the Red Team 2024-02-11 20:45:51 +01:00
Cargo.toml Nobody expects the Red Team 2024-02-11 20:45:51 +01:00
README Nobody expects the Red Team 2024-02-11 20:45:51 +01: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 "system" fn /g' cuda.rs
rustfmt cuda.rs