aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_inject/tests/helpers/do_cuinit.rs
blob: 468d56c0d8b3890b2064c3146a34568703e6f896 (plain)
1
2
3
4
5
6
7
8
9
10
#![crate_type = "cdylib"]

extern "system" {
    fn cuInit(flags: u32) -> u32;
}

#[no_mangle]
unsafe extern "system" fn do_cuinit(flags: u32) -> u32 {
    cuInit(flags)
}