-
Notifications
You must be signed in to change notification settings - Fork 66
Create Memory Prefetch data verification tests for system allocator #257
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
johntfalk
wants to merge
13
commits into
oneapi-src:master
Choose a base branch
from
johntfalk:prefetch_verify
base: master
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.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
88511a6
Create Memory Prefetch data verification tests for system allocator
johntfalk 1a2258b
Create Memory Prefetch data verification tests for system allocator
johntfalk 868e32b
Create Memory Prefetch data verification tests for system allocator
johntfalk 426c013
Create Memory Prefetch data verification tests for system allocator
johntfalk c8e4057
Create Memory Prefetch data verification tests for system allocator
johntfalk 6b8ccba
Create Memory Prefetch data verification tests for system allocator
johntfalk 04e8658
Create Memory Prefetch data verification tests for system allocator
johntfalk 63eeb77
Create Memory Prefetch data verification tests for system allocator
johntfalk 581e31e
Create Memory Prefetch data verification tests for system allocator
johntfalk 2edf44f
Create Memory Prefetch data verification tests for system allocator
johntfalk f83b2bc
Create Memory Prefetch data verification tests for system allocator
johntfalk 9b1d7cc
Create Memory Prefetch data verification tests for system allocator
johntfalk 17774f3
Create Memory Prefetch data verification tests for system allocator
johntfalk 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 hidden or 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 hidden or 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,15 @@ | ||
# Copyright (C) 2019 Intel Corporation | ||
# SPDX-License-Identifier: MIT | ||
|
||
add_lzt_test( | ||
NAME test_prefetch | ||
GROUP "/conformance_tests/core" | ||
SOURCES | ||
src/test_prefetch.cpp | ||
src/main.cpp | ||
LINK_LIBRARIES | ||
level_zero_tests::logging | ||
level_zero_tests::image | ||
level_zero_tests::utils | ||
level_zero_tests::utils | ||
) |
This file contains hidden or 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,4 @@ | ||
# test_prefetch | ||
|
||
## Description | ||
test_prefetch is a conformance test which validates Memory Prefetch Operation features in a oneAPI Level Zero driver as described in https://oneapi-src.github.io/level-zero-spec/level-zero/latest/core/api.html#zeCommandListAppendMemoryPrefetch |
This file contains hidden or 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,28 @@ | ||
/* | ||
* | ||
* Copyright (C) 2025 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
*/ | ||
|
||
#include "gmock/gmock.h" | ||
#include "logging/logging.hpp" | ||
#include "utils/utils.hpp" | ||
|
||
int main(int argc, char **argv) { | ||
::testing::InitGoogleMock(&argc, argv); | ||
std::vector<std::string> command_line(argv + 1, argv + argc); | ||
level_zero_tests::init_logging(command_line); | ||
static char enable_metrics[] = "PrintXeLogs=1"; | ||
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 think this PR can't be merged in the CTS repository. The test code has Intel KMD centric expectations. The CTS is supposed to be vendor neutral. Perhaps the L0 benchmarks repository might be a better venue if it has a notion of vendor centric benchmarks. |
||
putenv(enable_metrics); | ||
ze_result_t result = zeInit(0); | ||
if (result) { | ||
throw std::runtime_error("zeInit failed: " + | ||
level_zero_tests::to_string(result)); | ||
} | ||
LOG_TRACE << "Driver initialized"; | ||
level_zero_tests::print_platform_overview(); | ||
|
||
return RUN_ALL_TESTS(); | ||
} |
Oops, something went wrong.
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.
Please put the correct year 2025