forked from gpufit/Gpufit
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.21 KB
/
Copy pathc-cpp.yml
File metadata and controls
46 lines (36 loc) · 1.21 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
name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download and install Boost
uses: MarkusJx/install-boost@v2.3.0
id: install-boost
with:
# REQUIRED: Specify the required boost version
# A list of supported versions can be found here:
# https://github.com/actions/boost-versions/blob/main/versions-manifest.json
boost_version: 1.73.0
# OPTIONAL: Specify a platform version
# platform_version: 22.04
# OPTIONAL: Specify a toolset
# toolset: gcc
# OPTIONAL: Specify an architecture
# arch: x86
# NOTE: If a boost version matching all requirements cannot be found,
# this build step will fail
- name: cuda-toolkit
uses: Jimver/cuda-toolkit@v0.2.8
- name: build
run: whoami |
cmake -S . -B Gpufit-build/ -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
- name: make
run: cmake --build Gpufit-build/ --target all
- name: Performance test
run: ./Gpufit-build/Gpufit_Cpufit_Performance_Comparison