Skip to content

Commit 9569a3f

Browse files
committed
Perftest: Add GitHub actions support
Add GitHub actions support. Add a test to build perftest on top of ubuntu24.04 and cuda12.9 to verify build process. Signed-off-by: Shmuel Shaul <[email protected]>
1 parent abc99f2 commit 9569a3f

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
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 12.9
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-12-9 \
38+
cuda-drivers
39+
40+
- name: Set up CUDA environment
41+
run: |
42+
echo 'export PATH=/usr/local/cuda-12.9/bin:${PATH}' >> $GITHUB_ENV
43+
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-12.9/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)