Skip to content

Test repo #3

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: print repo
run: |
if [ pull_request = 'pull_request' ]; then
CI_REPO="igchor/unified-memory-framework"
else
CI_REPO="$GITHUB_REPOSITORY"
fi
echo "BUILDING $CI_REPO"
- name: Initialize CodeQL
uses: github/codeql-action/init@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
# TODO: add support for Windows
ubuntu-build:
name: Build - Ubuntu
# run only on upstream; forks will not have the HW
if: github.repository == 'oneapi-src/unified-memory-framework'

strategy:
matrix:
Expand Down
5 changes: 5 additions & 0 deletions test/memspaces/memspace_host_all.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,14 @@ TEST_F(memspaceHostAllProviderTest, memoryPolicyOOM) {
UT_ASSERTeq(umf_ret, UMF_RESULT_SUCCESS);
}

// TODO: we want to enable this check only when tests are running under QEMU.
// Otherwise it might sporadically fail on a real system where other processes
// occupied all memory from a aparticular NUMA node.
#if 0
// Confirm that all the NUMA nodes bound to 'HOST ALL' memspace were exhausted.
for (auto &id : nodeIds) {
auto it = std::find(allocNodeIds.begin(), allocNodeIds.end(), id);
UT_ASSERT(it != allocNodeIds.end());
}
#endif
}