mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-24 11:22:03 +00:00
Add more tests for CUDA redirection
This commit is contained in:
parent
400feaf015
commit
26bf0eeaf2
5 changed files with 65 additions and 6 deletions
10
zluda_inject/tests/helpers/do_cuinit.rs
Normal file
10
zluda_inject/tests/helpers/do_cuinit.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
#![crate_type = "cdylib"]
|
||||
|
||||
extern "system" {
|
||||
fn cuInit(flags: u32) -> u32;
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
unsafe extern "system" fn do_cuinit(flags: u32) -> u32 {
|
||||
cuInit(flags)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue