-
Notifications
You must be signed in to change notification settings - Fork 13
54 lines (51 loc) · 1.56 KB
/
inductor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test build/test linux gpu
on:
pull_request:
jobs:
build-test:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.4xlarge.nvidia.gpu
gpu-arch-type: cuda
gpu-arch-version: "12.1"
timeout: 240
script: |
pushd ..
# install triton
git clone [email protected]:triton-lang/triton.git
pushd triton
pip install ninja cmake wheel; # build-time dependencies
pip install -e python
git clone [email protected]:pytorch/pytorch.git
pushd pytorch
git submodule sync
git submodule update --init --recursive
pip install -r requirements.txt
pip install mkl-static mkl-include
# CUDA only: Add LAPACK support for the GPU if needed
conda install -c pytorch magma-cuda121
python setup.py install
pytest test/inductor
build-test-cpu:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
timeout: 240
script: |
pushd ..
echo "Installing triton..." "hello"
# install triton
git clone [email protected]:pytorch/pytorch.git
echo "Checking directory..." "hello"
ls
pushd pytorch
echo "Checking submodule..." "hello"
ls
git submodule sync
echo "Updating submodule..." "hello"
ls
git submodule update --init --recursive
echo "Installing requirements..." "hello"
ls
pip install -r requirements.txt
python setup.py install
# pytest test/inductor