Skip to content

Commit bb34f53

Browse files
committed
DEBUG CI
1 parent 9f681b4 commit bb34f53

File tree

4 files changed

+11
-89
lines changed

4 files changed

+11
-89
lines changed

.github/workflows/pr_push.yml

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -16,75 +16,8 @@ permissions:
1616
contents: read
1717

1818
jobs:
19-
CodeChecks:
20-
uses: ./.github/workflows/reusable_checks.yml
21-
DocsBuild:
22-
uses: ./.github/workflows/reusable_docs_build.yml
23-
FastBuild:
24-
name: Fast builds
25-
needs: [CodeChecks, DocsBuild]
26-
uses: ./.github/workflows/reusable_fast.yml
27-
Build:
28-
name: Basic builds
29-
needs: [FastBuild]
30-
uses: ./.github/workflows/reusable_basic.yml
31-
DevDax:
32-
needs: [FastBuild]
33-
uses: ./.github/workflows/reusable_dax.yml
34-
MultiNuma:
35-
needs: [FastBuild]
36-
uses: ./.github/workflows/reusable_multi_numa.yml
3719
L0:
38-
needs: [Build]
3920
uses: ./.github/workflows/reusable_gpu.yml
4021
with:
4122
name: "LEVEL_ZERO"
4223
shared_lib: "['ON']"
43-
CUDA:
44-
needs: [Build]
45-
uses: ./.github/workflows/reusable_gpu.yml
46-
with:
47-
name: "CUDA"
48-
shared_lib: "['ON']"
49-
Sanitizers:
50-
needs: [FastBuild]
51-
uses: ./.github/workflows/reusable_sanitizers.yml
52-
QEMU:
53-
needs: [FastBuild]
54-
uses: ./.github/workflows/reusable_qemu.yml
55-
with:
56-
short_run: true
57-
Benchmarks:
58-
needs: [Build]
59-
uses: ./.github/workflows/reusable_benchmarks.yml
60-
ProxyLib:
61-
needs: [Build]
62-
uses: ./.github/workflows/reusable_proxy_lib.yml
63-
Valgrind:
64-
needs: [Build]
65-
uses: ./.github/workflows/reusable_valgrind.yml
66-
Coverage:
67-
# total coverage (on upstream only)
68-
if: github.repository == 'oneapi-src/unified-memory-framework'
69-
needs: [Build, DevDax, L0, CUDA, MultiNuma, QEMU, ProxyLib]
70-
uses: ./.github/workflows/reusable_coverage.yml
71-
secrets: inherit
72-
with:
73-
trigger: "${{github.event_name}}"
74-
Coverage_partial:
75-
# partial coverage (on forks)
76-
if: github.repository != 'oneapi-src/unified-memory-framework'
77-
needs: [Build, QEMU, ProxyLib]
78-
uses: ./.github/workflows/reusable_coverage.yml
79-
CodeQL:
80-
needs: [Build]
81-
permissions:
82-
contents: read
83-
security-events: write
84-
uses: ./.github/workflows/reusable_codeql.yml
85-
Trivy:
86-
needs: [Build]
87-
permissions:
88-
contents: read
89-
security-events: write
90-
uses: ./.github/workflows/reusable_trivy.yml

.github/workflows/reusable_gpu.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ on:
1212
os:
1313
description: A list of OSes
1414
type: string
15-
default: "['Ubuntu', 'Windows']"
15+
default: "['Ubuntu']"
1616
build_type:
1717
description: A list of build types
1818
type: string
19-
default: "['Debug', 'Release']"
19+
default: "['Debug']"
2020
shared_lib:
2121
description: A list of options for building shared library
2222
type: string
@@ -49,9 +49,6 @@ jobs:
4949
- os: 'Ubuntu'
5050
compiler: {c: gcc, cxx: g++}
5151
number_of_processors: '$(nproc)'
52-
- os: 'Windows'
53-
compiler: {c: cl, cxx: cl}
54-
number_of_processors: '$Env:NUMBER_OF_PROCESSORS'
5552

5653
runs-on: ["DSS-${{inputs.name}}", "DSS-${{matrix.os}}"]
5754
steps:
@@ -112,21 +109,8 @@ jobs:
112109
run: ctest --output-on-failure --test-dir examples -C ${{matrix.build_type}}
113110

114111
- name: Run benchmarks
115-
working-directory: ${{env.BUILD_DIR}}
116-
run: ctest --output-on-failure --test-dir benchmark -C ${{matrix.build_type}} --exclude-regex umf-bench-multithreaded
117-
118-
- name: Check coverage
119-
if: ${{ matrix.build_type == 'Debug' && matrix.os == 'Ubuntu' }}
120112
working-directory: ${{env.BUILD_DIR}}
121113
run: |
122-
export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-shared-${{matrix.shared_library}}
123-
echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME"
124-
../scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME
125-
mkdir -p ${{env.COVERAGE_DIR}}
126-
mv ./$COVERAGE_FILE_NAME ${{env.COVERAGE_DIR}}
127-
128-
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
129-
if: ${{ matrix.build_type == 'Debug' && matrix.os == 'Ubuntu' }}
130-
with:
131-
name: ${{env.COVERAGE_NAME}}-${{matrix.os}}-${{matrix.build_type}}-shared-${{matrix.shared_library}}
132-
path: ${{env.COVERAGE_DIR}}
114+
ldd benchmark/umf-bench-ubench
115+
benchmark/umf-bench-ubench
116+
ctest -V --test-dir benchmark -C ${{matrix.build_type}} --exclude-regex umf-bench-multithreaded

apt-run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sudo date
2+
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse
3+
deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse
4+
deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | \
5+
sudo tee -a /etc/apt/sources.list.d/ddebs.list

benchmark/ubench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ UBENCH_EX(ipc, disjoint_pool_with_level_zero_provider) {
516516
}
517517

518518
umf_result = umfLevelZeroMemoryProviderParamsSetMemoryType(
519-
level_zero_params, UMF_MEMORY_TYPE_DEVICE);
519+
level_zero_params, UMF_MEMORY_TYPE_HOST);
520520
if (umf_result != UMF_RESULT_SUCCESS) {
521521
fprintf(
522522
stderr,

0 commit comments

Comments
 (0)