@@ -105,104 +105,3 @@ jobs:
105105 - name : Run examples
106106 working-directory : ${{env.BUILD_DIR}}
107107 run : ctest --output-on-failure --test-dir examples -C ${{matrix.build_type}}
108-
109- - name : Run benchmarks
110- working-directory : ${{env.BUILD_DIR}}
111- run : ctest --output-on-failure --test-dir benchmark -C ${{matrix.build_type}} --exclude-regex umf-bench-multithreaded
112-
113- - name : Check coverage
114- if : ${{ matrix.build_type == 'Debug' && matrix.os == 'Ubuntu' }}
115- working-directory : ${{env.BUILD_DIR}}
116- run : |
117- export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-shared-${{matrix.shared_library}}
118- echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME"
119- ../scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME
120- mkdir -p ${{env.COVERAGE_DIR}}
121- mv ./$COVERAGE_FILE_NAME ${{env.COVERAGE_DIR}}
122-
123- - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
124- if : ${{ matrix.build_type == 'Debug' && matrix.os == 'Ubuntu' }}
125- with :
126- name : ${{env.COVERAGE_NAME}}-shared-${{matrix.shared_library}}
127- path : ${{env.COVERAGE_DIR}}
128-
129- gpu-CUDA :
130- name : CUDA
131- env :
132- COVERAGE_NAME : " exports-coverage-gpu-CUDA"
133- # run only on upstream; forks will not have the HW
134- if : github.repository == 'oneapi-src/unified-memory-framework'
135- strategy :
136- matrix :
137- shared_library : ['ON', 'OFF']
138- build_type : ['Debug', 'Release']
139- # TODO add windows
140- os : ['Ubuntu']
141- include :
142- - os : ' Ubuntu'
143- compiler : {c: gcc, cxx: g++}
144- number_of_processors : ' $(nproc)'
145-
146- runs-on : ["DSS-CUDA", "DSS-${{matrix.os}}"]
147- steps :
148- - name : Checkout
149- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
150- with :
151- fetch-depth : 0
152-
153- - name : Get information about platform
154- if : matrix.os == 'Ubuntu'
155- run : .github/scripts/get_system_info.sh
156-
157- - name : Configure build for Ubuntu
158- if : matrix.os == 'Ubuntu'
159- run : >
160- cmake -B ${{env.BUILD_DIR}}
161- -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
162- -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
163- -DCMAKE_C_COMPILER=${{matrix.compiler.c}}
164- -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
165- -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
166- -DUMF_BUILD_BENCHMARKS=ON
167- -DUMF_BUILD_TESTS=ON
168- -DUMF_BUILD_GPU_TESTS=ON
169- -DUMF_BUILD_GPU_EXAMPLES=ON
170- -DUMF_FORMAT_CODE_STYLE=OFF
171- -DUMF_DEVELOPER_MODE=ON
172- -DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
173- -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
174- -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
175- -DUMF_BUILD_CUDA_PROVIDER=ON
176- -DUMF_TESTS_FAIL_ON_SKIP=ON
177- ${{ matrix.build_type == 'Debug' && '-DUMF_USE_COVERAGE=ON' || '' }}
178-
179- - name : Build UMF
180- run : cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j ${{matrix.number_of_processors}}
181-
182- - name : Run tests
183- working-directory : ${{env.BUILD_DIR}}
184- run : ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
185-
186- - name : Run examples
187- working-directory : ${{env.BUILD_DIR}}
188- run : ctest --output-on-failure --test-dir examples -C ${{matrix.build_type}}
189-
190- - name : Run benchmarks
191- working-directory : ${{env.BUILD_DIR}}
192- run : ctest --output-on-failure --test-dir benchmark -C ${{matrix.build_type}} --exclude-regex umf-bench-multithreaded
193-
194- - name : Check coverage
195- if : ${{ matrix.build_type == 'Debug' && matrix.os == 'Ubuntu' }}
196- working-directory : ${{env.BUILD_DIR}}
197- run : |
198- export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-shared-${{matrix.shared_library}}
199- echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME"
200- ../scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME
201- mkdir -p ${{env.COVERAGE_DIR}}
202- mv ./$COVERAGE_FILE_NAME ${{env.COVERAGE_DIR}}
203-
204- - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
205- if : ${{ matrix.build_type == 'Debug' && matrix.os == 'Ubuntu' }}
206- with :
207- name : ${{env.COVERAGE_NAME}}-shared-${{matrix.shared_library}}
208- path : ${{env.COVERAGE_DIR}}
0 commit comments