mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-02 14:57:43 +03:00
Stop using import libs in zluda_inject
This commit is contained in:
@ -43,7 +43,6 @@ fn main() -> Result<(), VarError> {
|
||||
rustc_cmd.arg(r"-lucrt");
|
||||
}
|
||||
rustc_cmd
|
||||
.arg("-ldylib=nvcuda")
|
||||
.arg("-C")
|
||||
.arg(format!("opt-level={}", opt_level))
|
||||
.arg("-L")
|
||||
|
@ -1,5 +1,6 @@
|
||||
#![crate_type = "bin"]
|
||||
|
||||
#[link(name = "nvcuda", kind = "raw-dylib")]
|
||||
extern "system" {
|
||||
fn cuInit(flags: u32) -> u32;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
#![crate_type = "cdylib"]
|
||||
|
||||
#[link(name = "nvcuda", kind = "raw-dylib")]
|
||||
extern "system" {
|
||||
fn cuInit(flags: u32) -> u32;
|
||||
}
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user