Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions .github/workflows/run_tests_against_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,23 +153,9 @@ jobs:
export MAXTEXT_ASSETS_ROOT=$(pwd)/src/maxtext/assets
export MAXTEXT_TEST_ASSETS_ROOT=$(pwd)/tests/assets
export MAXTEXT_PKG_DIR=$(pwd)/src/maxtext
# omit this libtpu init args for gpu tests
if [ "${INPUTS_DEVICE_TYPE}" != "cuda12" ]; then
export LIBTPU_INIT_ARGS='--xla_tpu_scoped_vmem_limit_kib=65536'
else
# For cuda12, explicitly point to the pip-installed CUDA libraries
# to avoid conflicts with system-level installations on the runner.
# Dynamically discover the 'nvidia' folder and prepend all its sub-library
# directories (including nccl, cublas, cudnn) to LD_LIBRARY_PATH to prevent
# JAX from partially loading incompatible system-level CUDA libraries.
NVIDIA_DIR=$(find .venv/lib/ -maxdepth 3 -name "nvidia" -type d 2>/dev/null | head -n 1)
if [ -n "${NVIDIA_DIR}" ]; then
for dir in "${NVIDIA_DIR}"/*; do
if [ -d "$dir/lib" ]; then
export LD_LIBRARY_PATH=$(pwd)/$dir/lib:${LD_LIBRARY_PATH}
fi
done
fi
echo "DEBUG: Set LIBTPU_INIT_ARGS for non-cuda12"
fi
if [ "${INPUTS_TOTAL_WORKERS}" -gt 1 ]; then
$PYTHON_EXE -m pip install --quiet pytest-split pytest-xdist
Expand Down
Loading