Skip to content

Commit e941cb1

Browse files
committed
t
1 parent f0842ca commit e941cb1

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

.github/workflows/run_tests_against_package.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -153,23 +153,9 @@ jobs:
153153
export MAXTEXT_ASSETS_ROOT=$(pwd)/src/maxtext/assets
154154
export MAXTEXT_TEST_ASSETS_ROOT=$(pwd)/tests/assets
155155
export MAXTEXT_PKG_DIR=$(pwd)/src/maxtext
156-
# omit this libtpu init args for gpu tests
157156
if [ "${INPUTS_DEVICE_TYPE}" != "cuda12" ]; then
158157
export LIBTPU_INIT_ARGS='--xla_tpu_scoped_vmem_limit_kib=65536'
159-
else
160-
# For cuda12, explicitly point to the pip-installed CUDA libraries
161-
# to avoid conflicts with system-level installations on the runner.
162-
# Dynamically discover the 'nvidia' folder and prepend all its sub-library
163-
# directories (including nccl, cublas, cudnn) to LD_LIBRARY_PATH to prevent
164-
# JAX from partially loading incompatible system-level CUDA libraries.
165-
NVIDIA_DIR=$(find .venv/lib/ -maxdepth 3 -name "nvidia" -type d 2>/dev/null | head -n 1)
166-
if [ -n "${NVIDIA_DIR}" ]; then
167-
for dir in "${NVIDIA_DIR}"/*; do
168-
if [ -d "$dir/lib" ]; then
169-
export LD_LIBRARY_PATH=$(pwd)/$dir/lib:${LD_LIBRARY_PATH}
170-
fi
171-
done
172-
fi
158+
echo "DEBUG: Set LIBTPU_INIT_ARGS for non-cuda12"
173159
fi
174160
if [ "${INPUTS_TOTAL_WORKERS}" -gt 1 ]; then
175161
$PYTHON_EXE -m pip install --quiet pytest-split pytest-xdist

0 commit comments

Comments
 (0)