Skip to content

Commit 46ac8d9

Browse files
authored
Merge pull request #10 from EnzymeAD/wsmoses-patch-2
Update Reactant version and commit hash
2 parents 1323a5e + d00430b commit 46ac8d9

File tree

1 file changed

+31
-7
lines changed

1 file changed

+31
-7
lines changed

R/Reactant/build_tarballs.jl

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ include(joinpath(YGGDRASIL_DIR, "fancy_toys.jl"))
66

77
name = "Reactant"
88
repo = "https://github.com/EnzymeAD/Reactant.jl.git"
9-
reactant_commit = "9d0e99d266c712dd0e85b37e87ea358a585f0564"
10-
version = v"0.0.254"
9+
reactant_commit = "158b9868519639cae4c50e492b25e64ead7deda2"
10+
version = v"0.0.255"
1111

1212
sources = [
1313
GitSource(repo, reactant_commit),
@@ -334,6 +334,10 @@ elif [[ "${target}" == aarch64-* ]] && [[ "${HERMETIC_CUDA_VERSION}" == *13.* ]]
334334
$BAZEL ${BAZEL_FLAGS[@]} build ${BAZEL_BUILD_FLAGS[@]} :libReactantExtra.so || echo stage1
335335
cp /workspace/srcdir/libnvvm-linux-x86_64-*/nvvm/bin/cicc /workspace/bazel_root/*/external/cuda_nvvm/nvvm/bin/cicc
336336
$BAZEL ${BAZEL_FLAGS[@]} build ${BAZEL_BUILD_FLAGS[@]} :libReactantExtra.so
337+
elif [[ "${target}" == aarch64-* ]] && [[ "${HERMETIC_CUDA_VERSION}" == *12.* ]]; then
338+
$BAZEL ${BAZEL_FLAGS[@]} build ${BAZEL_BUILD_FLAGS[@]} :libReactantExtra.so || echo stage1
339+
cp /workspace/srcdir/cuda_nvcc-linux-sbsa*-archive/lib/*.a /workspace/bazel_root/*/external/cuda_nvcc/lib/
340+
$BAZEL ${BAZEL_FLAGS[@]} build ${BAZEL_BUILD_FLAGS[@]} :libReactantExtra.so
337341
else
338342
$BAZEL ${BAZEL_FLAGS[@]} build ${BAZEL_BUILD_FLAGS[@]} :libReactantExtra.so
339343
fi
@@ -569,15 +573,35 @@ for gpu in ("none", "cuda"), mode in ("opt", "dbg"), cuda_version in ("none", "1
569573
]
570574

571575
if gpu == "cuda"
572-
for lib in (
576+
libs = String[
573577
"libnccl",
574578
# "libcuda",
575-
"libnvrtc",
576-
"libnvrtc-builtins",
577579
"libnvshmem_host",
578580
"nvshmem_bootstrap_uid",
579581
"nvshmem_transport_ibrc"
580-
)
582+
]
583+
if VersionNumber(cuda_version) >= v"13"
584+
append!(libs, String["libcufft",
585+
"libcudnn_engines_precompiled",
586+
"libcudart",
587+
"libcublasLt",
588+
"libcudnn_heuristic",
589+
"libcudnn_cnn",
590+
"libnvrtc",
591+
"libcudnn_adv",
592+
"libcudnn",
593+
"libnvJitLink",
594+
"libcublas",
595+
"libcudnn_ops",
596+
"libnvrtc-builtins",
597+
"libcudnn_graph",
598+
"libcusolver",
599+
"libcudnn_engines_runtime_compiled",
600+
"libcusparse",
601+
]
602+
)
603+
end
604+
for lib in libs
581605
san = replace(lib, "-" => "_")
582606
push!(products,
583607
LibraryProduct([lib, lib], Symbol(san);
@@ -618,7 +642,7 @@ for (i,build) in enumerate(builds)
618642
name, version, build.sources, build.script,
619643
build.platforms, build.products, build.dependencies;
620644
preferred_gcc_version=build.preferred_gcc_version, build.preferred_llvm_version, julia_compat="1.10",
621-
# compression_format="xz",
645+
compression_format="xz",
622646
# We use GCC 13, so we can't dlopen the library during audit
623647
augment_platform_block, lazy_artifacts=true, lock_microarchitecture=false, dont_dlopen=true,
624648
# When we're running CI for Enzyme-JAX (i.e. when the commit is

0 commit comments

Comments
 (0)