ZLUDA/zluda
Andrzej Janik 078ae20c2c
Improve build procedure and instructions (#28)
Fixes issues pointed out in #27:
* spirv_tools-sys was build in non-test profiles
* By default ZLUDA dll has a wrong name
* We relied on third-party OpenCL installation on Windows
* We encouraged building debug configuration
* We didn't provide build information for developers (cmake, python, submodules)
2021-01-08 17:17:46 +01:00
..
lib Improve build procedure and instructions (#28) 2021-01-08 17:17:46 +01:00
src Append short project name to the device if there's not enough space for long name 2020-11-23 22:24:35 +01:00
build.rs Improve build procedure and instructions (#28) 2021-01-08 17:17:46 +01:00
Cargo.toml Improve build procedure and instructions (#28) 2021-01-08 17:17:46 +01:00
README Rename everything 2020-11-23 20:01:10 +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 "C" fn /g' cuda.rs
rustfmt cuda.rs