Skip to content

Commit 98fd72d

Browse files
author
Diptorup Deb
committed
Fix device selector test case.
1 parent 29b5774 commit 98fd72d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

dpctl-capi/tests/test_sycl_device_selector_interface.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include "Support/CBindingWrapping.h"
2828
#include "dpctl_sycl_device_interface.h"
29+
#include "dpctl_sycl_device_manager.h"
2930
#include "dpctl_sycl_device_selector_interface.h"
3031
#include <CL/sycl.hpp>
3132
#include <gtest/gtest.h>
@@ -98,7 +99,7 @@ TEST_F(TestDeviceSelectorInterface, Chk_DPCTLAcceleratorSelector_Create)
9899
DPCTLSyclDeviceRef DRef = nullptr;
99100
EXPECT_NO_FATAL_FAILURE(DRef = DPCTLDevice_CreateFromSelector(DSRef));
100101
ASSERT_TRUE(DRef != nullptr);
101-
EXPECT_NO_FATAL_FAILURE(DPCTLDevice_DumpInfo(DRef));
102+
EXPECT_NO_FATAL_FAILURE(DPCTLDeviceMgr_PrintDeviceInfo(DRef));
102103
EXPECT_TRUE(DPCTLDevice_IsAccelerator(DRef));
103104
EXPECT_NO_FATAL_FAILURE(DPCTLDevice_Delete(DRef));
104105
}
@@ -113,7 +114,7 @@ TEST_F(TestDeviceSelectorInterface, Chk_DPCTLDefaultSelector_Create)
113114
DPCTLSyclDeviceRef DRef = nullptr;
114115
EXPECT_NO_FATAL_FAILURE(DRef = DPCTLDevice_CreateFromSelector(DSRef));
115116
ASSERT_TRUE(DRef != nullptr);
116-
EXPECT_NO_FATAL_FAILURE(DPCTLDevice_DumpInfo(DRef));
117+
EXPECT_NO_FATAL_FAILURE(DPCTLDeviceMgr_PrintDeviceInfo(DRef));
117118
EXPECT_NO_FATAL_FAILURE(DPCTLDevice_Delete(DRef));
118119
}
119120
EXPECT_NO_FATAL_FAILURE(DPCTLDeviceSelector_Delete(DSRef));
@@ -127,7 +128,7 @@ TEST_F(TestDeviceSelectorInterface, Chk_DPCTLCPUSelector_Create)
127128
DPCTLSyclDeviceRef DRef = nullptr;
128129
EXPECT_NO_FATAL_FAILURE(DRef = DPCTLDevice_CreateFromSelector(DSRef));
129130
ASSERT_TRUE(DRef != nullptr);
130-
EXPECT_NO_FATAL_FAILURE(DPCTLDevice_DumpInfo(DRef));
131+
EXPECT_NO_FATAL_FAILURE(DPCTLDeviceMgr_PrintDeviceInfo(DRef));
131132
EXPECT_TRUE(DPCTLDevice_IsCPU(DRef));
132133
EXPECT_NO_FATAL_FAILURE(DPCTLDevice_Delete(DRef));
133134
}
@@ -142,7 +143,7 @@ TEST_F(TestDeviceSelectorInterface, Chk_DPCTLGPUSelector_Create)
142143
DPCTLSyclDeviceRef DRef = nullptr;
143144
EXPECT_NO_FATAL_FAILURE(DRef = DPCTLDevice_CreateFromSelector(DSRef));
144145
ASSERT_TRUE(DRef != nullptr);
145-
EXPECT_NO_FATAL_FAILURE(DPCTLDevice_DumpInfo(DRef));
146+
EXPECT_NO_FATAL_FAILURE(DPCTLDeviceMgr_PrintDeviceInfo(DRef));
146147
EXPECT_TRUE(DPCTLDevice_IsGPU(DRef));
147148
EXPECT_NO_FATAL_FAILURE(DPCTLDevice_Delete(DRef));
148149
}
@@ -157,7 +158,7 @@ TEST_F(TestDeviceSelectorInterface, Chk_DPCTLHostSelector_Create)
157158
DPCTLSyclDeviceRef DRef = nullptr;
158159
EXPECT_NO_FATAL_FAILURE(DRef = DPCTLDevice_CreateFromSelector(DSRef));
159160
ASSERT_TRUE(DRef != nullptr);
160-
EXPECT_NO_FATAL_FAILURE(DPCTLDevice_DumpInfo(DRef));
161+
EXPECT_NO_FATAL_FAILURE(DPCTLDeviceMgr_PrintDeviceInfo(DRef));
161162
// FIXME: DPCPP's host_selector returns a CPU device for some reason.
162163
// EXPECT_TRUE(DPCTLDevice_IsHost(DRef));
163164
EXPECT_NO_FATAL_FAILURE(DPCTLDevice_Delete(DRef));

0 commit comments

Comments
 (0)