ZLUDA/zluda
Andrzej Janik 4a81dbffb5
Update llama.cpp support (#102)
Add sign extension support to prmt, allow set.<op>.f16x2.f16x2, add more BLAS mappings
2024-02-16 00:01:21 +01:00
..
src Update llama.cpp support (#102) 2024-02-16 00:01:21 +01:00
tests Nobody expects the Red Team 2024-02-11 20:45:51 +01: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