FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
unified-memory-framework/.github/workflows/weekly.yml at main · oneapi-src/unified-memory-framework · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
oneapi-src
/
unified-memory-framework
Public
Notifications
You must be signed in to change notification settings
Fork
48
Star
96
Code
Issues
54
Pull requests
7
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
unified-memory-framework
/
.github
/
workflows
/
weekly.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
76 lines (66 loc) · 2.61 KB
Breadcrumbs
unified-memory-framework
/
.github
/
workflows
/
weekly.yml
Copy path
File metadata and controls
76 lines (66 loc) · 2.61 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
Various non-standard tests, requiring e.g. very long runs or just not required to be run very often.
name
:
Weekly
#
This job is run every Saturday at 01:00 UTC or on demand.
on
:
workflow_dispatch
:
schedule
:
-
cron
:
'
0 1 * * 6
'
#
every Saturday at 01:00 UTC
env
:
BUILD_DIR
:
"
${{github.workspace}}/build
"
INSTL_DIR
:
"
${{github.workspace}}/install-dir
"
N_ITER_SAN
:
400
#
Number of iterations for sanitizers looped job
permissions
:
contents
:
read
jobs
:
#
Check code with looped compilers' sanitizers. With 1000 iterations it should take around 4,5 hours.
sanitizers-looped
:
name
:
Sanitizers looped
strategy
:
fail-fast
:
false
matrix
:
compiler
:
[{c: gcc, cxx: g++}, {c: clang, cxx: clang++}, {c: icx, cxx: icpx}]
#
TSAN is mutually exclusive with other sanitizers
sanitizers
:
[{asan: ON, ubsan: ON, tsan: OFF}, {asan: OFF, ubsan: OFF, tsan: ON}]
runs-on
:
ubuntu-22.04
steps
:
-
name
:
Checkout
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
with
:
fetch-depth
:
0
-
name
:
Install apt packages
run
:
|
sudo apt-get update
sudo apt-get install -y clang cmake libhwloc-dev libnuma-dev libtbb-dev
-
name
:
Install oneAPI basekit
if
:
matrix.compiler.cxx == 'icpx'
run
:
sudo .github/scripts/install_oneAPI.sh
-
name
:
Configure build
run
:
>
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}}
cmake
-B ${{env.BUILD_DIR}}
-DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
-DCMAKE_BUILD_TYPE=Debug
-DUMF_BUILD_SHARED_LIBRARY=OFF
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON
-DUMF_BUILD_CUDA_PROVIDER=ON
-DUMF_FORMAT_CODE_STYLE=OFF
-DUMF_DEVELOPER_MODE=OFF
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
-DUMF_USE_ASAN=${{matrix.sanitizers.asan}}
-DUMF_USE_UBSAN=${{matrix.sanitizers.ubsan}}
-DUMF_USE_TSAN=${{matrix.sanitizers.tsan}}
-DUMF_BUILD_EXAMPLES=ON
-DUMF_TESTS_FAIL_ON_SKIP=ON
-
name
:
Build UMF
run
:
|
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
cmake --build ${{env.BUILD_DIR}} -j $(nproc)
-
name
:
Run tests
working-directory
:
${{env.BUILD_DIR}}
env
:
ASAN_OPTIONS
:
allocator_may_return_null=1
TSAN_OPTIONS
:
allocator_may_return_null=1
run
:
for i in {1..${{env.N_ITER_SAN}}}; do echo ">>> ITERATION no. ${i}" ; ctest --output-on-failure || exit 1; date; done
Back
|
FazBrowse Home
|
New Git URL