File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments