Skip to content

Commit 3a2c4b7

Browse files
committed
fixup
1 parent faed0fc commit 3a2c4b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/container/install-nsys-jax.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22
set -exo pipefail
33

4-
SHA="$1"
5-
if [[ ! $SHA =~ ^[0-9a-f]{40}$ ]]; then
6-
echo "$0: <SHA of JAX-Toolbox>"
4+
REF="$1"
5+
if [[ -z "${REF}" ]]; then
6+
echo "$0: <git ref of JAX-Toolbox>"
77
exit 1
88
fi
99

@@ -15,7 +15,7 @@ ln -s ${NSYS_DIR}/python/packages/nsys_recipe/requirements/common.txt /opt/pip-t
1515
# Install the nsys-jax package, which includes nsys-jax, nsys-jax-combine,
1616
# install-protoc (called from pip-finalize.sh), and nsys-jax-patch-nsys as well as the
1717
# nsys_jax Python library.
18-
URL="git+https://github.com/NVIDIA/JAX-Toolbox.git@${SHA}#subdirectory=.github/container/nsys_jax&egg=nsys-jax"
18+
URL="git+https://github.com/NVIDIA/JAX-Toolbox.git@${REF}#subdirectory=.github/container/nsys_jax&egg=nsys-jax"
1919
echo "-e '${URL}'" > /opt/pip-tools.d/requirements-nsys-jax.in
2020

2121
# protobuf will be installed at least as a dependency of nsys_jax in the base

0 commit comments

Comments
 (0)