ZLUDA/zluda_inject/tests/helpers/do_cuinit.rs
Andrzej Janik 059b8ca0f6
Some checks are pending
ZLUDA / Build (Linux) (push) Waiting to run
ZLUDA / Build (Windows) (push) Waiting to run
ZLUDA / Build AMD GPU unit tests (push) Waiting to run
ZLUDA / Run AMD GPU unit tests (push) Blocked by required conditions
Make sure it is possible to log 32bit PhysX (#374)
2025-07-08 10:19:49 -07:00

11 lines
228 B
Rust

#![crate_type = "cdylib"]
#[link(name = "nvcuda", kind = "raw-dylib")]
extern "system" {
fn cuInit(flags: u32) -> u32;
}
#[no_mangle]
unsafe extern "system" fn do_cuinit(flags: u32) -> u32 {
cuInit(flags)
}