Skip to content

Commit 2930436

Browse files
authored
ZLUDA 3.8.5 (#56)
* Enable runtime compiler for PyTorch support on Windows. * Bump version.
1 parent 1b6e012 commit 2930436

File tree

13 files changed

+482
-491
lines changed

13 files changed

+482
-491
lines changed

Cargo.lock

+3-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ members = [
1414
"hipblaslt-sys",
1515
"hipfft-sys",
1616
"hiprt-sys",
17-
"hiprtc-sys",
1817
"miopen-sys",
1918
"offline_compiler",
2019
"optix_base",

README.md

+1-10
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,7 @@ Performance is currently much lower than the native HIP backend, see the discuss
239239
torch.backends.cuda.enable_mem_efficient_sdp(False)
240240
```
241241

242-
If you are getting an error about nvrtc/hiprtc, insert
243-
244-
```py
245-
def jit_script(f, *_, **__):
246-
f.graph = torch._C.Graph() # pylint: disable=protected-access
247-
return f
248-
torch.jit.script = jit_script
249-
```
250-
251-
You may have an issue while running `torch.topk`. If so, insert
242+
If you have an issue while running `torch.topk`, insert the codes below
252243

253244
```py
254245
_topk = torch.topk

hiprtc-sys/Cargo.toml

-8
This file was deleted.

hiprtc-sys/README

-1
This file was deleted.

hiprtc-sys/build.rs

-14
This file was deleted.

hiprtc-sys/src/hiprtc.rs

-360
This file was deleted.

hiprtc-sys/src/lib.rs

-3
This file was deleted.

zluda_inject/src/bin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub fn main_impl() -> Result<(), Box<dyn Error>> {
8383
match argument.to_str() {
8484
Some(argument) => match argument {
8585
"--version" => {
86-
println!("ZLUDA 3.8.4");
86+
println!("ZLUDA 3.8.5");
8787
process::exit(0);
8888
}
8989
"--" => break,

zluda_rtc/Cargo.toml

+2-5
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ edition = "2018"
88
name = "nvrtc"
99
crate-type = ["cdylib"]
1010

11-
[features]
12-
rocm5 = ["hip_common/rocm5"]
13-
1411
[dependencies]
15-
hip_common = { path = "../hip_common" }
16-
hiprtc-sys = { path = "../hiprtc-sys" }
12+
libloading = "0.8"
13+
lazy_static = "1.4"
1714

1815
[package.metadata.zluda]
1916
linux_names = ["libnvrtc.so.10", "libnvrtc.so.11"]

zluda_rtc/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
bindgen include/nvrtc.h -o src/nvrtc.rs --allowlist-function="^nvrtc.*" --default-enum-style=newtype --no-layout-tests --no-derive-debug -- -Iinclude
1+
bindgen include/nvrtc.h -o src/nvrtc.rs --allowlist-function="^nvrtc.*" --default-enum-style=newtype --no-layout-tests --no-derive-debug --dynamic-loading LibNvrtc --dynamic-link-require-all -- -Iinclude
22
sed -i -e 's/extern "C" {//g' -e 's/-> nvrtcResult;/-> nvrtcResult { crate::unsupported()/g' -e 's/pub fn /#[no_mangle] pub extern "system" fn /g' src/nvrtc.rs
33
rustfmt src/nvrtc.rs

0 commit comments

Comments
 (0)