@@ -63,15 +63,15 @@ struct TestDPCTLSyclDeviceInterface
63
63
}
64
64
};
65
65
66
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_Copy )
66
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkCopy )
67
67
{
68
68
DPCTLSyclDeviceRef Copied_DRef = nullptr ;
69
69
EXPECT_NO_FATAL_FAILURE (Copied_DRef = DPCTLDevice_Copy (DRef));
70
70
EXPECT_TRUE (bool (Copied_DRef));
71
71
EXPECT_NO_FATAL_FAILURE (DPCTLDevice_Delete (Copied_DRef));
72
72
}
73
73
74
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetBackend )
74
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetBackend )
75
75
{
76
76
DPCTLSyclBackendType BTy = DPCTLSyclBackendType::DPCTL_UNKNOWN_BACKEND;
77
77
EXPECT_NO_FATAL_FAILURE (BTy = DPCTLDevice_GetBackend (DRef));
@@ -91,61 +91,61 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetBackend)
91
91
}());
92
92
}
93
93
94
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetDeviceType )
94
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetDeviceType )
95
95
{
96
96
DPCTLSyclDeviceType DTy = DPCTLSyclDeviceType::DPCTL_UNKNOWN_DEVICE;
97
97
EXPECT_NO_FATAL_FAILURE (DTy = DPCTLDevice_GetDeviceType (DRef));
98
98
EXPECT_TRUE (DTy != DPCTLSyclDeviceType::DPCTL_UNKNOWN_DEVICE);
99
99
EXPECT_TRUE (DTy != DPCTLSyclDeviceType::DPCTL_ALL);
100
100
}
101
101
102
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetDriverInfo )
102
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetDriverInfo )
103
103
{
104
104
const char *DriverInfo = nullptr ;
105
105
EXPECT_NO_FATAL_FAILURE (DriverInfo = DPCTLDevice_GetDriverInfo (DRef));
106
106
EXPECT_TRUE (DriverInfo != nullptr );
107
107
EXPECT_NO_FATAL_FAILURE (DPCTLCString_Delete (DriverInfo));
108
108
}
109
109
110
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetName )
110
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetName )
111
111
{
112
112
const char *Name = nullptr ;
113
113
EXPECT_NO_FATAL_FAILURE (Name = DPCTLDevice_GetName (DRef));
114
114
EXPECT_TRUE (Name != nullptr );
115
115
EXPECT_NO_FATAL_FAILURE (DPCTLCString_Delete (Name));
116
116
}
117
117
118
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetVendorName )
118
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetVendorName )
119
119
{
120
120
const char *VendorName = nullptr ;
121
121
EXPECT_NO_FATAL_FAILURE (VendorName = DPCTLDevice_GetVendorName (DRef));
122
122
EXPECT_TRUE (VendorName != nullptr );
123
123
EXPECT_NO_FATAL_FAILURE (DPCTLCString_Delete (VendorName));
124
124
}
125
125
126
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetMaxComputeUnits )
126
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetMaxComputeUnits )
127
127
{
128
128
size_t n = 0 ;
129
129
EXPECT_NO_FATAL_FAILURE (n = DPCTLDevice_GetMaxComputeUnits (DRef));
130
130
EXPECT_TRUE (n > 0 );
131
131
}
132
132
133
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetMaxWorkItemDims )
133
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetMaxWorkItemDims )
134
134
{
135
135
size_t n = 0 ;
136
136
EXPECT_NO_FATAL_FAILURE (n = DPCTLDevice_GetMaxWorkItemDims (DRef));
137
137
EXPECT_TRUE (n > 0 );
138
138
}
139
139
140
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetMaxWorkItemSizes )
140
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetMaxWorkItemSizes )
141
141
{
142
142
size_t *sizes = nullptr ;
143
143
EXPECT_NO_FATAL_FAILURE (sizes = DPCTLDevice_GetMaxWorkItemSizes (DRef));
144
144
EXPECT_TRUE (sizes != nullptr );
145
145
EXPECT_NO_FATAL_FAILURE (DPCTLSize_t_Array_Delete (sizes));
146
146
}
147
147
148
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetMaxWorkGroupSize )
148
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetMaxWorkGroupSize )
149
149
{
150
150
size_t n = 0 ;
151
151
EXPECT_NO_FATAL_FAILURE (n = DPCTLDevice_GetMaxWorkGroupSize (DRef));
@@ -155,7 +155,7 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetMaxWorkGroupSize)
155
155
EXPECT_TRUE (n > 0 );
156
156
}
157
157
158
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetMaxNumSubGroups )
158
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetMaxNumSubGroups )
159
159
{
160
160
size_t n = 0 ;
161
161
EXPECT_NO_FATAL_FAILURE (n = DPCTLDevice_GetMaxNumSubGroups (DRef));
@@ -165,35 +165,35 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetMaxNumSubGroups)
165
165
EXPECT_TRUE (n > 0 );
166
166
}
167
167
168
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetPlatform )
168
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetPlatform )
169
169
{
170
170
DPCTLSyclPlatformRef PRef = nullptr ;
171
171
EXPECT_NO_FATAL_FAILURE (PRef = DPCTLDevice_GetPlatform (DRef));
172
172
ASSERT_TRUE (PRef);
173
173
EXPECT_NO_FATAL_FAILURE (DPCTLPlatform_Delete (PRef));
174
174
}
175
175
176
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_IsAccelerator )
176
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkIsAccelerator )
177
177
{
178
178
EXPECT_NO_FATAL_FAILURE (DPCTLDevice_IsAccelerator (DRef));
179
179
}
180
180
181
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_IsCPU )
181
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkIsCPU )
182
182
{
183
183
EXPECT_NO_FATAL_FAILURE (DPCTLDevice_IsCPU (DRef));
184
184
}
185
185
186
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_IsGPU )
186
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkIsGPU )
187
187
{
188
188
EXPECT_NO_FATAL_FAILURE (DPCTLDevice_IsGPU (DRef));
189
189
}
190
190
191
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_IsHost )
191
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkIsHost )
192
192
{
193
193
EXPECT_NO_FATAL_FAILURE (DPCTLDevice_IsHost (DRef));
194
194
}
195
195
196
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetSubGroupIndependentForwardProgress )
196
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetSubGroupIndependentForwardProgress )
197
197
{
198
198
bool sub_group_progress = 0 ;
199
199
EXPECT_NO_FATAL_FAILURE (
@@ -205,47 +205,47 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetSubGroupIndependentForwardProgress)
205
205
EXPECT_TRUE (get_sub_group_progress == sub_group_progress);
206
206
}
207
207
208
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetPreferredVectorWidthChar )
208
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetPreferredVectorWidthChar )
209
209
{
210
210
size_t vector_width_char = 0 ;
211
211
EXPECT_NO_FATAL_FAILURE (vector_width_char =
212
212
DPCTLDevice_GetPreferredVectorWidthChar (DRef));
213
213
EXPECT_TRUE (vector_width_char != 0 );
214
214
}
215
215
216
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetPreferredVectorWidthShort )
216
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetPreferredVectorWidthShort )
217
217
{
218
218
size_t vector_width_short = 0 ;
219
219
EXPECT_NO_FATAL_FAILURE (vector_width_short =
220
220
DPCTLDevice_GetPreferredVectorWidthShort (DRef));
221
221
EXPECT_TRUE (vector_width_short != 0 );
222
222
}
223
223
224
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetPreferredVectorWidthInt )
224
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetPreferredVectorWidthInt )
225
225
{
226
226
size_t vector_width_int = 0 ;
227
227
EXPECT_NO_FATAL_FAILURE (vector_width_int =
228
228
DPCTLDevice_GetPreferredVectorWidthInt (DRef));
229
229
EXPECT_TRUE (vector_width_int != 0 );
230
230
}
231
231
232
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetPreferredVectorWidthLong )
232
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetPreferredVectorWidthLong )
233
233
{
234
234
size_t vector_width_long = 0 ;
235
235
EXPECT_NO_FATAL_FAILURE (vector_width_long =
236
236
DPCTLDevice_GetPreferredVectorWidthLong (DRef));
237
237
EXPECT_TRUE (vector_width_long != 0 );
238
238
}
239
239
240
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetPreferredVectorWidthFloat )
240
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetPreferredVectorWidthFloat )
241
241
{
242
242
size_t vector_width_float = 0 ;
243
243
EXPECT_NO_FATAL_FAILURE (vector_width_float =
244
244
DPCTLDevice_GetPreferredVectorWidthFloat (DRef));
245
245
EXPECT_TRUE (vector_width_float != 0 );
246
246
}
247
247
248
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetPreferredVectorWidthDouble )
248
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetPreferredVectorWidthDouble )
249
249
{
250
250
size_t vector_width_double = 0 ;
251
251
EXPECT_NO_FATAL_FAILURE (
@@ -260,7 +260,7 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetPreferredVectorWidthDouble)
260
260
}
261
261
}
262
262
263
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetPreferredVectorWidthHalf )
263
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetPreferredVectorWidthHalf )
264
264
{
265
265
size_t vector_width_half = 0 ;
266
266
EXPECT_NO_FATAL_FAILURE (vector_width_half =
@@ -275,7 +275,7 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetPreferredVectorWidthHalf)
275
275
}
276
276
}
277
277
278
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetImage2dMaxWidth )
278
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetImage2dMaxWidth )
279
279
{
280
280
size_t image_2d_max_width = 0 ;
281
281
EXPECT_NO_FATAL_FAILURE (image_2d_max_width =
@@ -286,7 +286,7 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetImage2dMaxWidth)
286
286
EXPECT_TRUE (image_2d_max_width >= min_val);
287
287
}
288
288
289
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetImage2dMaxHeight )
289
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetImage2dMaxHeight )
290
290
{
291
291
size_t image_2d_max_height = 0 ;
292
292
EXPECT_NO_FATAL_FAILURE (image_2d_max_height =
@@ -297,7 +297,7 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetImage2dMaxHeight)
297
297
EXPECT_TRUE (image_2d_max_height >= min_val);
298
298
}
299
299
300
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetImage3dMaxWidth )
300
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetImage3dMaxWidth )
301
301
{
302
302
size_t image_3d_max_width = 0 ;
303
303
EXPECT_NO_FATAL_FAILURE (image_3d_max_width =
@@ -308,7 +308,7 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetImage3dMaxWidth)
308
308
EXPECT_TRUE (image_3d_max_width >= min_val);
309
309
}
310
310
311
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetImage3dMaxHeight )
311
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetImage3dMaxHeight )
312
312
{
313
313
size_t image_3d_max_height = 0 ;
314
314
EXPECT_NO_FATAL_FAILURE (image_3d_max_height =
@@ -319,7 +319,7 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetImage3dMaxHeight)
319
319
EXPECT_TRUE (image_3d_max_height >= min_val);
320
320
}
321
321
322
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetImage3dMaxDepth )
322
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetImage3dMaxDepth )
323
323
{
324
324
size_t image_3d_max_depth = 0 ;
325
325
EXPECT_NO_FATAL_FAILURE (image_3d_max_depth =
@@ -330,14 +330,14 @@ TEST_P(TestDPCTLSyclDeviceInterface, Chk_GetImage3dMaxDepth)
330
330
EXPECT_TRUE (image_3d_max_depth >= min_val);
331
331
}
332
332
333
- TEST_P (TestDPCTLSyclDeviceInterface, Chk_GetParentDevice )
333
+ TEST_P (TestDPCTLSyclDeviceInterface, ChkGetParentDevice )
334
334
{
335
335
DPCTLSyclDeviceRef pDRef = nullptr ;
336
336
EXPECT_NO_FATAL_FAILURE (pDRef = DPCTLDevice_GetParentDevice (DRef));
337
337
EXPECT_TRUE (pDRef == nullptr );
338
338
}
339
339
340
- INSTANTIATE_TEST_SUITE_P (DPCTLDevice_Fns ,
340
+ INSTANTIATE_TEST_SUITE_P (DPCTLDeviceFns ,
341
341
TestDPCTLSyclDeviceInterface,
342
342
::testing::Values (" opencl" ,
343
343
" opencl:gpu" ,
0 commit comments