Skip to content

Commit ba5a8d1

Browse files
authored
Update action.yml
1 parent 6d87f53 commit ba5a8d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: .github/actions/inductor-test/action.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Test build/test linux gpu
2-
32
on:
43
push:
54
branches: [ master, main ]
@@ -9,10 +8,12 @@ on:
98
description: 'Triton branch or commit to pin'
109
default: 'main'
1110
required: false
11+
type: string
1212
pytorch_pin:
1313
description: 'PyTorch branch or commit to pin'
1414
default: 'main'
1515
required: false
16+
type: string
1617

1718
jobs:
1819
build-test:
@@ -22,15 +23,14 @@ jobs:
2223
gpu-arch-type: cuda
2324
gpu-arch-version: "12.1"
2425
timeout: 360
25-
# docker-image: nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04
2626
script: |
2727
set -x
2828
pushd ..
2929
echo "Installing triton"
3030
git clone https://github.com/triton-lang/triton.git
3131
pushd triton
3232
echo "Checking out triton branch or commit"
33-
git checkout ${{ inputs.triton_pin || 'main' }}
33+
git checkout ${{ github.event.inputs.triton_pin || 'main' }}
3434
sudo yum install -y zlib-devel
3535
echo "Installing build-time dependencies"
3636
pip install ninja==1.11.1.1 cmake==3.30.2 wheel==0.44.0
@@ -58,7 +58,7 @@ jobs:
5858
git clone https://github.com/pytorch/pytorch.git
5959
pushd pytorch
6060
echo "Checking out pytorch branch or commit"
61-
git checkout ${{ inputs.pytorch_pin || 'main' }}
61+
git checkout ${{ github.event.inputs.pytorch_pin || 'main' }}
6262
git submodule sync
6363
git submodule update --init --recursive
6464
pip install -r requirements.txt

0 commit comments

Comments
 (0)