Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PaliC authored Oct 10, 2024
1 parent 6d87f53 commit ba5a8d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/inductor-test/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Test build/test linux gpu

on:
push:
branches: [ master, main ]
Expand All @@ -9,10 +8,12 @@ on:
description: 'Triton branch or commit to pin'
default: 'main'
required: false
type: string
pytorch_pin:
description: 'PyTorch branch or commit to pin'
default: 'main'
required: false
type: string

jobs:
build-test:
Expand All @@ -22,15 +23,14 @@ jobs:
gpu-arch-type: cuda
gpu-arch-version: "12.1"
timeout: 360
# docker-image: nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04
script: |
set -x
pushd ..
echo "Installing triton"
git clone https://github.com/triton-lang/triton.git
pushd triton
echo "Checking out triton branch or commit"
git checkout ${{ inputs.triton_pin || 'main' }}
git checkout ${{ github.event.inputs.triton_pin || 'main' }}
sudo yum install -y zlib-devel
echo "Installing build-time dependencies"
pip install ninja==1.11.1.1 cmake==3.30.2 wheel==0.44.0
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
git clone https://github.com/pytorch/pytorch.git
pushd pytorch
echo "Checking out pytorch branch or commit"
git checkout ${{ inputs.pytorch_pin || 'main' }}
git checkout ${{ github.event.inputs.pytorch_pin || 'main' }}
git submodule sync
git submodule update --init --recursive
pip install -r requirements.txt
Expand Down

0 comments on commit ba5a8d1

Please sign in to comment.