mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-07-20 18:56:24 +03:00
11 lines
174 B
Rust
11 lines
174 B
Rust
#![crate_type = "bin"]
|
|
|
|
#[link(name = "nvcuda", kind = "raw-dylib")]
|
|
extern "system" {
|
|
fn cuInit(flags: u32) -> u32;
|
|
}
|
|
|
|
fn main() {
|
|
unsafe { cuInit(0) };
|
|
}
|