File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -184,3 +184,31 @@ TEST_F(TestHelperFns, SyclDeviceTypeToDPCTLDeviceType)
184
184
sycl::info::device_type::custom));
185
185
ASSERT_TRUE (DTy == DPCTLSyclDeviceType::DPCTL_CUSTOM);
186
186
}
187
+
188
+ TEST_F (TestHelperFns, ChkDPCTLPeerAccessTypeToSycl)
189
+ {
190
+ sycl::ext::oneapi::peer_access peer_type;
191
+
192
+ EXPECT_NO_FATAL_FAILURE (peer_type = DPCTL_DPCTLPeerAccessTypeToSycl (
193
+ DPCTLPeerAccessType::access_supported));
194
+ ASSERT_TRUE (peer_type == sycl::ext::oneapi::peer_access::access_supported);
195
+
196
+ EXPECT_NO_FATAL_FAILURE (peer_type = DPCTL_DPCTLPeerAccessTypeToSycl (
197
+ DPCTLPeerAccessType::atomics_supported));
198
+ ASSERT_TRUE (peer_type == sycl::ext::oneapi::peer_access::atomics_supported);
199
+ }
200
+
201
+ TEST_F (TestHelperFns, ChkSyclPeerAccessToDPCTLType)
202
+ {
203
+ DPCTLPeerAccessType PTy;
204
+
205
+ EXPECT_NO_FATAL_FAILURE (
206
+ PTy = DPCTL_SyclPeerAccessToDPCTLType (
207
+ sycl::ext::oneapi::peer_access::access_supported));
208
+ ASSERT_TRUE (PTy == DPCTLPeerAccessType::access_supported);
209
+
210
+ EXPECT_NO_FATAL_FAILURE (
211
+ PTy = DPCTL_SyclPeerAccessToDPCTLType (
212
+ sycl::ext::oneapi::peer_access::atomics_supported));
213
+ ASSERT_TRUE (PTy == DPCTLPeerAccessType::atomics_supported);
214
+ }
You can’t perform that action at this time.
0 commit comments