Skip to content

Commit dafceed

Browse files
committed
Perftest: prevent CUDA 13 build regressions in CI
Add an Ubuntu 24.04 GitHub Actions job that installs CUDA 13.1 and builds perftest against the CUDA headers. This keeps the CUDA loader compatibility path covered by CI after the driver API signature changes in CUDA 13. Signed-off-by: Zelong Yue <yuezelong@bytedance.com>
1 parent 678a73e commit dafceed

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build and Test perftest on Ubuntu 24.04 with CUDA 13.1
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-24.04
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Install CUDA repository
20+
run: |
21+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
22+
sudo dpkg -i cuda-keyring_1.1-1_all.deb
23+
24+
- name: Install dependencies
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y \
28+
build-essential \
29+
autoconf \
30+
automake \
31+
libtool \
32+
pkg-config \
33+
libibverbs-dev \
34+
librdmacm-dev \
35+
libibumad-dev \
36+
libpci-dev \
37+
cuda-toolkit-13-1 \
38+
cuda-drivers
39+
40+
- name: Set up CUDA environment
41+
run: |
42+
echo 'export PATH=/usr/local/cuda-13.1/bin:${PATH}' >> $GITHUB_ENV
43+
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-13.1/lib64:${LD_LIBRARY_PATH}' >> $GITHUB_ENV
44+
45+
- name: Run autogen.sh
46+
run: ./autogen.sh
47+
48+
- name: Configure the build
49+
run: ./configure CUDA_H_PATH=/usr/local/cuda/include/cuda.h
50+
51+
- name: Build perftest
52+
run: make
53+
54+
- name: Install perftest
55+
run: sudo make install

0 commit comments

Comments
 (0)