Skip to content

Commit

Permalink
trying this instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kab163 committed Oct 7, 2024
1 parent 4f3bb3b commit bb767a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/umpire/resource/SyclPinnedMemoryResourceFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ std::unique_ptr<resource::MemoryResource> SyclPinnedMemoryResourceFactory::creat
}
};

sycl::platform platform(sycl::gpu_selector{});
sycl::platform platform(sycl::gpu_selector_v());

int device_count = 0; // SYCL multi.device count
auto const& devices = platform.get_devices();
Expand Down
4 changes: 2 additions & 2 deletions src/umpire/resource/SyclUnifiedMemoryResourceFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ std::unique_ptr<resource::MemoryResource> SyclUnifiedMemoryResourceFactory::crea
}
};

sycl::platform platform(sycl::gpu_selector_v{});
sycl::platform platform(sycl::gpu_selector_v());

int device_count = 0; // SYCL multi.device count
auto const& devices = platform.get_devices();
Expand Down Expand Up @@ -76,7 +76,7 @@ MemoryResourceTraits SyclUnifiedMemoryResourceFactory::getDefaultTraits()
{
MemoryResourceTraits traits;

sycl::device syclDev(sycl::gpu_selector_v{});
sycl::device syclDev(sycl::gpu_selector_v());
if (syclDev.is_gpu()) {
if (syclDev.get_info<sycl::info::device::partition_max_sub_devices>() > 0) {
auto subDevicesDomainNuma =
Expand Down

0 comments on commit bb767a2

Please sign in to comment.