-
Notifications
You must be signed in to change notification settings - Fork 33
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] compat #1063
Draft
bratpiorka
wants to merge
1
commit into
oneapi-src:main
Choose a base branch
from
bratpiorka:rrudnick_compat_wflow
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[DRAFT] compat #1063
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
# TODO | ||
name: Compatibility | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
tag: | ||
description: Check backward compatibility with this tag | ||
type: string | ||
default: "0.10.1" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
ubuntu-build: | ||
name: Ubuntu | ||
strategy: | ||
matrix: | ||
# TODO other systems? | ||
os: ['ubuntu-22.04'] | ||
build_type: [Debug] | ||
compiler: [{c: gcc, cxx: g++}] | ||
shared_library: ['ON'] | ||
level_zero_provider: ['ON'] | ||
cuda_provider: ['ON'] | ||
install_tbb: ['ON'] | ||
runs-on: ${{matrix.os}} | ||
|
||
steps: | ||
# NOTE: we need jemalloc for older version of UMF | ||
- name: Install apt packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang cmake libnuma-dev libjemalloc-dev | ||
|
||
- name: Install TBB apt package | ||
if: matrix.install_tbb == 'ON' | ||
run: | | ||
sudo apt-get install -y libtbb-dev | ||
|
||
- name: Checkout "tag" UMF version | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
ref: refs/tags/${{inputs.tag}} | ||
path: ${{github.workspace}}/tag_version | ||
|
||
- name: Install libhwloc | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: .github/scripts/install_hwloc.sh | ||
|
||
- name: Get "tag" UMF version | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: | | ||
VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+') | ||
echo "tag version: $VERSION" | ||
|
||
- name: Configure "tag" UMF build | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: > | ||
cmake | ||
-B ${{github.workspace}}/tag_version/build | ||
-DCMAKE_INSTALL_PREFIX="${{github.workspace}}/tag_version/build/install" | ||
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} | ||
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} | ||
-DCMAKE_C_COMPILER=${{matrix.compiler.c}} | ||
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} | ||
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=${{matrix.level_zero_provider}} | ||
-DUMF_BUILD_CUDA_PROVIDER=${{matrix.cuda_provider}} | ||
-DUMF_FORMAT_CODE_STYLE=OFF | ||
-DUMF_DEVELOPER_MODE=ON | ||
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON | ||
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON | ||
-DUMF_TESTS_FAIL_ON_SKIP=ON | ||
|
||
- name: Build "tag" UMF | ||
working-directory: ${{github.workspace}}/tag_version | ||
run: | | ||
cmake --build ${{github.workspace}}/tag_version/build -j $(nproc) | ||
|
||
# NOTE: we need jemalloc for older version of UMF | ||
# if: startsWith(github.event.inputs.tag, '0.10.') || startsWith(github.event.inputs.tag, '0.9.') | ||
- name: Set ptrace value for IPC test | ||
run: sudo bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope" | ||
|
||
- name: Run "tag" UMF tests | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure if we need to test the tag, it was surely already tested before the merge of a commit. I think we could just build it here for the latest version tests run. |
||
working-directory: ${{github.workspace}}/tag_version/build | ||
run: | | ||
LD_LIBRARY_PATH=${{github.workspace}}/tag_version/build/lib/ ctest --output-on-failure | ||
|
||
- name: Checkout latest UMF version | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
path: ${{github.workspace}}/latest_version | ||
|
||
- name: Get latest UMF version | ||
working-directory: ${{github.workspace}}/latest_version | ||
run: | | ||
VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+') | ||
echo "checked version: $VERSION" | ||
|
||
- name: Configure latest UMF build | ||
working-directory: ${{github.workspace}}/latest_version | ||
run: > | ||
cmake | ||
-B ${{github.workspace}}/latest_version/build | ||
-DCMAKE_INSTALL_PREFIX="${{github.workspace}}/latest_version/build/install" | ||
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} | ||
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} | ||
-DCMAKE_C_COMPILER=${{matrix.compiler.c}} | ||
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} | ||
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=${{matrix.level_zero_provider}} | ||
-DUMF_BUILD_CUDA_PROVIDER=${{matrix.cuda_provider}} | ||
-DUMF_FORMAT_CODE_STYLE=OFF | ||
-DUMF_DEVELOPER_MODE=ON | ||
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON | ||
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON | ||
-DUMF_TESTS_FAIL_ON_SKIP=ON | ||
|
||
- name: Build latest UMF | ||
working-directory: ${{github.workspace}}/latest_version | ||
run: | | ||
cmake --build ${{github.workspace}}/latest_version/build -j $(nproc) | ||
|
||
# NOTE: exclude umf-provider_coarse, umf-disjointCoarseMallocPool, | ||
# umf-jemalloc_coarse_file, umf-scalable_coarse_file | ||
- name: Run "tag" UMF tests with latest UMF libs (warnigs enabled) | ||
working-directory: ${{github.workspace}}/tag_version/build | ||
run: > | ||
UMF_LOG="level:warning;flush:debug;output:stderr;pid:no" | ||
LD_LIBRARY_PATH=${{github.workspace}}/latest_version/build/lib/ | ||
ctest --output-on-failure -E "umf-provider_coarse|umf-disjointCoarseMallocPool|umf-jemalloc_coarse_file|umf-scalable_coarse_file" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that one Ubuntu and one Windows job is needed.