mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-19 16:04:44 +00:00
Reorganize project to a workspace
This commit is contained in:
parent
14116ce540
commit
cf81615203
7 changed files with 16 additions and 9 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
target/
|
||||||
|
Cargo.lock
|
||||||
|
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
7
Cargo.toml
Normal file
7
Cargo.toml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[workspace]
|
||||||
|
|
||||||
|
members = [
|
||||||
|
"notcuda",
|
||||||
|
"notcuda_inject",
|
||||||
|
"notcuda_redirect",
|
||||||
|
]
|
2
notcuda/.gitignore
vendored
2
notcuda/.gitignore
vendored
|
@ -1,2 +0,0 @@
|
||||||
/target
|
|
||||||
Cargo.lock
|
|
2
notcuda_inject/.gitignore
vendored
2
notcuda_inject/.gitignore
vendored
|
@ -1,2 +0,0 @@
|
||||||
/target
|
|
||||||
Cargo.lock
|
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "notcuda"
|
name = "notcuda_inject"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
authors = ["Andrzej Janik <vosen@vosen.pl>"]
|
authors = ["Andrzej Janik <vosen@vosen.pl>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
@ -9,6 +9,7 @@ name = "notcuda"
|
||||||
path = "src/bin.rs"
|
path = "src/bin.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
notcuda_redirect = { path = "../notcuda_redirect" }
|
||||||
detours-sys = "0.1"
|
detours-sys = "0.1"
|
||||||
clap = "2.33"
|
clap = "2.33"
|
||||||
|
|
||||||
|
|
|
@ -65,10 +65,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||||
ptr::null(),
|
ptr::null(),
|
||||||
&mut startup_info as *mut _,
|
&mut startup_info as *mut _,
|
||||||
&mut proc_info as *mut _,
|
&mut proc_info as *mut _,
|
||||||
"nvcuda_redirect.dll".as_ptr() as *const i8,
|
"notcuda_redirect.dll\0".as_ptr() as *const i8,
|
||||||
Option::None
|
Option::None
|
||||||
),
|
),
|
||||||
|x| x == 0
|
|x| x != 0
|
||||||
);
|
);
|
||||||
os_call!(ResumeThread(proc_info.hThread), |x| x as i32 != -1);
|
os_call!(ResumeThread(proc_info.hThread), |x| x as i32 != -1);
|
||||||
os_call!(WaitForSingleObject(proc_info.hProcess, INFINITE), |x| x != WAIT_FAILED);
|
os_call!(WaitForSingleObject(proc_info.hProcess, INFINITE), |x| x != WAIT_FAILED);
|
||||||
|
|
2
notcuda_redirect/.gitignore
vendored
2
notcuda_redirect/.gitignore
vendored
|
@ -1,2 +0,0 @@
|
||||||
/target
|
|
||||||
Cargo.lock
|
|
Loading…
Add table
Reference in a new issue