Skip to content

Run benchmark on ubicloud #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
30 changes: 20 additions & 10 deletions .github/workflows/cmake-cuda-multi-compiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ name: CUDA build

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "main" ]
branches: [
# "dev"
"ubicloud"
]
# pull_request:
# branches: [ "main" ]

jobs:
build:
Expand All @@ -16,16 +19,20 @@ jobs:
fail-fast: false

matrix:
os: [ubuntu-latest]
os: ["ubicloud-gpu"]
build_type: [Debug]
cpp_compiler: [g++, clang++]

steps:
- uses: Jimver/[email protected]
id: cuda-toolkit
with:
method: 'network'
sub-packages: '["toolkit"]'
# - uses: Jimver/[email protected]
# id: cuda-toolkit
# with:
# method: 'network'
# sub-packages: '["toolkit"]'
- name: Install cmake and clang
run: |
sudo apt-get update
sudo apt-get install -y cmake clang
- uses: actions/checkout@v4
with:
submodules: 'recursive'
Expand Down Expand Up @@ -54,4 +61,7 @@ jobs:

- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} -- -j 6

- name: Run benchmark
run: build/benchmarks/vector_add_bench 256 8 1000000000
Loading