forked from SparseBLAS/spblas-reference
-
Notifications
You must be signed in to change notification settings - Fork 1
152 lines (143 loc) · 4.03 KB
/
ci.yml
File metadata and controls
152 lines (143 loc) · 4.03 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: "CI"
on:
push:
branches:
- main
pull_request:
jobs:
checks:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
- run: pip install -r requirements.txt
- name: Checks
uses: pre-commit/action@v3.0.0
gcc:
runs-on: 'ubuntu-latest'
strategy:
matrix:
cxx: [g++-14, g++-13, g++-12, g++-11]
name: ${{ matrix.cxx }}
env:
CXX: ${{ matrix.cxx }}
steps:
- uses: actions/checkout@v4
- name: CMake
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo apt-get install g++-11 g++-12 g++-13 g++-14
cmake -B build
- name: Build
run: make -C build -j `nproc`
- name: Test
run: ./build/test/gtest/spblas-tests
intel-llvm:
runs-on: 'ubuntu-latest'
strategy:
matrix:
mkl: [OFF, ON]
name: intel-llvm${{ matrix.mkl == 'ON' && '-mkl' || '' }}
env:
CXX: icpx
steps:
- uses: actions/checkout@v4
- name: Set up Intel
run: |
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update -y
sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mkl-devel
- name: CMake
run: |
source /opt/intel/oneapi/setvars.sh
cmake -B build -DENABLE_ONEMKL_SYCL=${{ matrix.mkl }}
- name: Build
run: |
source /opt/intel/oneapi/setvars.sh
make -C build -j `nproc`
- name: Test
run: |
source /opt/intel/oneapi/setvars.sh
./build/test/gtest/spblas-tests
macos:
runs-on: 'macos-latest'
strategy:
matrix:
armpl: [OFF, ON]
name: macos${{ matrix.armpl == 'ON' && '-armpl' || '' }}
steps:
- uses: actions/checkout@v4
- name: Set up ArmPL
run: |
brew install --cask arm-performance-libraries
ARMPL_PATH=$(echo /opt/arm/armpl*)
echo "ARMPL_DIR=$ARMPL_PATH" >> $GITHUB_ENV
- name: CMake
run: |
cmake -B build -DENABLE_ARMPL=${{ matrix.armpl }}
- name: Build
run: |
make -C build -j 3
- name: Test
run: |
./build/test/gtest/spblas-tests
aocl:
runs-on: 'cpu_amd'
steps:
- uses: actions/checkout@v4
- name: Add AOCL-Sparse to Environment
run: |
source /apps/spacks/current/share/spack/setup-env.sh
echo "AOCLSPARSE_DIR=$(spack location -i aocl-sparse)" >> $GITHUB_ENV
echo "AOCLUTILS_DIR=$(spack location -i aocl-utils)" >> $GITHUB_ENV
- name: CMake
run: |
source /apps/spacks/current/share/spack/setup-env.sh
spack load /ia2365b
cmake -B build -DENABLE_AOCLSPARSE=ON
- name: Build
run: |
make -C build -j `nproc`
- name: Test
run: |
./build/test/gtest/spblas-tests
rocsparse:
runs-on: 'gpu_amd'
steps:
- uses: actions/checkout@v4
- name: CMake
shell: bash -l {0}
run: |
module load cmake
cmake -B build -DENABLE_ROCSPARSE=ON -DCMAKE_PREFIX_PATH=/opt/rocm
- name: Build
shell: bash -l {0}
run: |
make -C build -j `nproc`
- name: Test
shell: bash -l {0}
run: |
./build/test/gtest/spblas-tests
cusparse:
runs-on: 'gpu_nvidia'
steps:
- uses: actions/checkout@v4
- name: CMake
shell: bash -l {0}
run: |
module load cmake
cmake -B build -DENABLE_CUSPARSE=ON -DCMAKE_PREFIX_PATH=/usr/local/cuda/targets/x86_64-linux/lib/cmake
- name: Build
shell: bash -l {0}
run: |
make -C build -j `nproc`
- name: Test
shell: bash -l {0}
run: |
./build/test/gtest/spblas-tests