-
Notifications
You must be signed in to change notification settings - Fork 43
41 lines (33 loc) · 961 Bytes
/
install.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
name: Minimal Installation
on: # yamllint disable-line rule:truthy
push:
branches:
- master
pull_request:
jobs:
import:
runs-on: ubuntu-latest
strategy:
matrix:
cuda-version: ['cpu', 'cu121']
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup packages
uses: ./.github/actions/setup
with:
cuda-version: ${{ matrix.cuda-version }}
- name: Install package
run: |
source ./.github/workflows/cuda/${{ runner.os }}-env.sh ${{ matrix.cuda-version }}
pip install --verbose -e .
shell: bash
env:
TORCH_CUDA_ARCH_LIST: "5.0+PTX;6.0;7.0;7.5;8.0;8.6"
- name: Test imports
run: |
python -c 'import pyg_lib;print(pyg_lib.cuda_version())'
python -c "import pyg_lib.ops"
python -c "import pyg_lib.sampler"