Drop cudart.
This commit is contained in:
parent
53b51ddd55
commit
d23b3f4636
8
Cargo.lock
generated
8
Cargo.lock
generated
|
@ -2561,14 +2561,6 @@ dependencies = [
|
||||||
"hiprtc-sys",
|
"hiprtc-sys",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "zluda_runtime"
|
|
||||||
version = "0.0.0"
|
|
||||||
dependencies = [
|
|
||||||
"hip_common",
|
|
||||||
"hip_runtime-sys",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zluda_sparse"
|
name = "zluda_sparse"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
|
|
|
@ -41,7 +41,6 @@ members = [
|
||||||
"zluda_redirect",
|
"zluda_redirect",
|
||||||
"zluda_rt",
|
"zluda_rt",
|
||||||
"zluda_rtc",
|
"zluda_rtc",
|
||||||
"zluda_runtime",
|
|
||||||
"zluda_sparse",
|
"zluda_sparse",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "zluda_runtime"
|
|
||||||
version = "0.0.0"
|
|
||||||
authors = ["Seunghoon Lee <op@lsh.sh>"]
|
|
||||||
edition = "2018"
|
|
||||||
|
|
||||||
[lib]
|
|
||||||
name = "cudart"
|
|
||||||
crate-type = ["cdylib"]
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
hip_common = { path = "../hip_common" }
|
|
||||||
hip_runtime-sys = { path = "../hip_runtime-sys" }
|
|
||||||
|
|
||||||
[package.metadata.zluda]
|
|
||||||
linux_names = ["libcudart.so.10", "libcudart.so.11"]
|
|
||||||
dump_names = ["libcudart.so"]
|
|
|
@ -1,3 +0,0 @@
|
||||||
bindgen \\wsl.localhost\Ubuntu-22.04\usr\include\cuda_runtime.h -o src/cudart.rs --allowlist-function="^cuda.*" --allowlist-type="cu.*" --default-enum-style=newtype --no-layout-tests --no-derive-debug -- -I\\wsl.localhost\Ubuntu-22.04\usr\include
|
|
||||||
sed -i -e 's/extern "C" {//g' -e 's/-> cudaError_t;/-> cudaError_t { crate::unsupported()/g' -e 's/pub fn /#[no_mangle] pub extern "system" fn /g' src/cudart.rs
|
|
||||||
rustfmt src/cudart.rs
|
|
File diff suppressed because one or more lines are too long
|
@ -1,18 +0,0 @@
|
||||||
#[no_mangle]
|
|
||||||
pub extern "system" fn cudaProfilerInitialize(
|
|
||||||
configFile: *const ::std::os::raw::c_char,
|
|
||||||
outputFile: *const ::std::os::raw::c_char,
|
|
||||||
outputMode: cudaOutputMode_t,
|
|
||||||
) -> cudaError_t {
|
|
||||||
crate::unsupported()
|
|
||||||
}
|
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
pub extern "system" fn cudaProfilerStart() -> cudaError_t {
|
|
||||||
crate::unsupported()
|
|
||||||
}
|
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
pub extern "system" fn cudaProfilerStop() -> cudaError_t {
|
|
||||||
crate::unsupported()
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue