Skip to content

Commit 31cc9db

Browse files
Use full qualifier sycl::device to fix compilation error
1 parent 81c6b57 commit 31cc9db

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libsyclinterface/tests/test_sycl_device_aspects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ struct TestDPCTLSyclDeviceInterfaceAspects
163163
EXPECT_NO_FATAL_FAILURE(DRef = DPCTLDevice_CreateFromSelector(DSRef));
164164
if (!DRef)
165165
GTEST_SKIP_("Device not found");
166-
auto D = unwrap<device>(DRef);
166+
auto D = unwrap<sycl::device>(DRef);
167167
auto syclAspect = GetParam().second.second;
168168
try {
169169
hasAspect = D->has(syclAspect);

libsyclinterface/tests/test_sycl_device_manager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
///
2525
//===----------------------------------------------------------------------===//
2626

27+
#include "dpctl_device_selection.hpp"
2728
#include "dpctl_sycl_device_interface.h"
2829
#include "dpctl_sycl_device_manager.h"
2930
#include "dpctl_sycl_device_selector_interface.h"
@@ -32,6 +33,8 @@
3233
#include <gtest/gtest.h>
3334
#include <string>
3435

36+
using dpctl::syclinterface::dpctl_default_selector;
37+
3538
struct TestDPCTLDeviceManager : public ::testing::TestWithParam<const char *>
3639
{
3740
DPCTLSyclDeviceSelectorRef DSRef = nullptr;

0 commit comments

Comments
 (0)