Skip to content

Commit b5768b1

Browse files
author
wanglei07
committed
[CI] Copy pre-installed MACA torch packages and install tilelang-metax
1 parent 801ce23 commit b5768b1

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/gpu-smoke.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,6 @@ jobs:
423423
# PR would otherwise reuse.
424424
skip-atomic-age-trim: "true"
425425

426-
- name: Set up Python
427-
uses: actions/setup-python@v5
428-
with:
429-
python-version: "3.11"
430-
431426
- name: Resolve runtime state
432427
env:
433428
IS_FORK: ${{ needs.security-policy.outputs.is_fork }}
@@ -632,7 +627,26 @@ jobs:
632627
python -m venv "${VENV_PATH}"
633628
# shellcheck source=/dev/null
634629
source "${VENV_PATH}/bin/activate"
630+
631+
# Copy pre-installed MACA torch packages from conda to venv
632+
mkdir -p "${VENV_PATH}/lib/python3.12/site-packages/"
633+
cp -rf /opt/conda/lib/python3.12/site-packages/* "${VENV_PATH}/lib/python3.12/site-packages/"
634+
635635
python -m pip install --upgrade pip setuptools wheel --no-user
636+
637+
# Install test dependencies
638+
pip install --no-cache-dir \
639+
einops numpy "tqdm>=4.62.3" "typing_extensions>=4.10.0" \
640+
cloudpickle ml_dtypes psutil Cython \
641+
setuptools wheel ninja
642+
pip install --no-cache-dir \
643+
"pytest==9.0.2" \
644+
"pytest-xdist>=3.0" \
645+
"pyyaml>=6.0"
646+
647+
# Install TileLang (MACA version)
648+
pip install --no-cache-dir git+https://github.com/tile-ai/tilelang-metax.git@1efc3ba8a7c48bc97047e562223538d2dcb2222d
649+
636650
if [[ "$IS_FORK" == "true" ]]; then
637651
FIND_LINKS_FLAG=""
638652
if [[ -d "${WHEEL_DIR}" ]] && ls "${WHEEL_DIR}"/*.whl >/dev/null 2>&1; then

0 commit comments

Comments
 (0)