Skip to content

[SYCL] Fixes AtomicMemoryScopeCapabilities unittest issue in Windows. #8749

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

Merged
Merged
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
7 changes: 1 addition & 6 deletions sycl/unittests/SYCL2020/AtomicMemoryScopeCapabilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ namespace {

thread_local bool deviceGetInfoCalled;

pi_platform PiPlatform = nullptr;

pi_result redefinedDeviceGetInfoAfter(pi_device device,
pi_device_info param_name,
size_t param_value_size,
Expand All @@ -39,10 +37,7 @@ pi_result redefinedDeviceGetInfoAfter(pi_device device,
TEST(AtomicMemoryScopeCapabilitiesCheck, CheckAtomicMemoryScopeCapabilities) {
sycl::unittest::PiMock Mock;
sycl::platform Plt = Mock.getPlatform();

PiPlatform = detail::getSyclObjImpl(Plt)->getHandleRef();
context DefaultCtx = Plt.ext_oneapi_get_default_context();
device Dev = DefaultCtx.get_devices()[0];
device Dev = Plt.get_devices()[0];

deviceGetInfoCalled = false;

Expand Down