Skip to content

Commit 8f6fcba

Browse files
authored
Statically linked cuda libs (#1516)
* Statically linked cuda libs * Update build-reactantjll.yml * fix * Update ML_TOOLCHAIN_COMMIT to new commit hash * nvperf * Update build-reactantjll.yml
1 parent 19dcb40 commit 8f6fcba

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

workspace.bzl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ JAX_SHA256 = ""
44
ENZYME_COMMIT = "63c81877e73b019745ebff33f6dc2e13a5003a17"
55
ENZYME_SHA256 = ""
66

7-
ML_TOOLCHAIN_COMMIT = "d8d8f49297a1e74fcceffc9ef6c7f8da9b0a0c53"
8-
ML_TOOLCHAIN_SHA256 = "4133c6c2045de5d7a133f6fc008ee6bd613af778f12143d09003e908dd541d8c"
7+
ML_TOOLCHAIN_COMMIT = "40e3ff3154271b5a97599e125207ca73e9eeedae"
8+
ML_TOOLCHAIN_SHA256 = ""
99

1010
# If the empty string this will automatically use the commit above
1111
# otherwise this should be a path to the folder containing the BUILD file for enzyme
@@ -15,6 +15,13 @@ HEDRON_COMPILE_COMMANDS_COMMIT = "4f28899228fb3ad0126897876f147ca15026151e"
1515
HEDRON_COMPILE_COMMANDS_SHA256 = ""
1616

1717
XLA_PATCHES = [
18+
"""
19+
sed -i.bak0 "s/return TryDlopenCUDALibraries()/LOG(INFO) << \\"GPU libraries are statically linked, skip dlopen check.\\";\\nreturn absl::OkStatus();/g" xla/tsl/platform/default/dlopen_checker.cc
20+
""",
21+
"""
22+
sed -i.bak0 "s/return TryDlopenCUDALibraries()/LOG(INFO) << \\"GPU libraries are statically linked, skip dlopen check.\\";\\nreturn absl::OkStatus();/g" n
23+
sed -i.bak0 "s/namespace/THIS_SHOULD_NEVER_BE_COMPILED/g" xla/tsl/cuda/{cublas,cublasLt,cufft,cusolver,cusparse,cudnn,cudart}_stub.cc
24+
""",
1825
"""
1926
sed -i.bak0 "/amdgpu_backend/d" xla/backends/gpu/codegen/triton/BUILD
2027
""",

0 commit comments

Comments
 (0)