mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-07-20 18:56:24 +03:00
12 lines
228 B
Rust
12 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)
|
|
}
|