ZLUDA/zluda
Andrzej Janik 5d5f7cca75
Rewrite surface implementation to more accurately support unofficial CUDA semantics (#203)
This fixes black screen in some CompuBench tests (TV-L1 Optical Flow) and other apps that use CUDA surfaces incorrectly
2024-04-14 02:39:34 +02:00
..
src Rewrite surface implementation to more accurately support unofficial CUDA semantics (#203) 2024-04-14 02:39:34 +02:00
tests Rewrite surface implementation to more accurately support unofficial CUDA semantics (#203) 2024-04-14 02:39:34 +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