ZLUDA/zluda_ml
2024-04-28 13:00:19 +09:00
..
src Implement nvmlDeviceGetCudaComputeCapability. 2024-04-21 00:31:57 +09:00
Cargo.toml Build improvements (#206) 2024-04-28 01:22:43 +02:00
README Nobody expects the Red Team 2024-02-11 20:45:51 +01:00

bindgen /usr/local/cuda-12/include/nvml.h --no-derive-debug --allowlist-var="^NVML.*" --allowlist-function="^nvml.*" --default-enum-style=newtype --no-layout-tests --no-doc-comments -o src/nvml.rs -- -DNVML_NO_UNVERSIONED_FUNC_DEFS
sed -i -e 's/extern "C" {//g' -e 's/-> nvmlReturn_t;/-> nvmlReturn_t { crate::r#impl::unimplemented()/g' -e 's/pub fn /#[no_mangle] pub extern "C" fn /g' src/nvml.rs
rustfmt src/nvml.rs