@@ -159,15 +159,22 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
159
159
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_FLOAT:
160
160
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_DOUBLE:
161
161
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_HALF:
162
+ // todo: how can we query vector width in a platform
163
+ // indipendent way?
162
164
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_CHAR:
165
+ return ReturnValue (uint32_t {32 });
163
166
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_SHORT:
167
+ return ReturnValue (uint32_t {16 });
164
168
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_INT:
169
+ return ReturnValue (uint32_t {8 });
165
170
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG:
171
+ return ReturnValue (uint32_t {4 });
166
172
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_FLOAT:
173
+ return ReturnValue (uint32_t {8 });
167
174
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_DOUBLE:
175
+ return ReturnValue (uint32_t {4 });
168
176
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_HALF:
169
- return ReturnValue (uint32_t {1 });
170
-
177
+ return ReturnValue (uint32_t {16 });
171
178
// Imported from level_zero
172
179
case UR_DEVICE_INFO_USM_HOST_SUPPORT:
173
180
case UR_DEVICE_INFO_USM_DEVICE_SUPPORT:
@@ -214,10 +221,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
214
221
return ReturnValue (uint64_t {0 });
215
222
case UR_DEVICE_INFO_GLOBAL_MEM_SIZE:
216
223
// TODO : CHECK
217
- return ReturnValue (uint64_t {0 });
224
+ return ReturnValue (uint64_t {32768 });
218
225
case UR_DEVICE_INFO_LOCAL_MEM_SIZE:
219
226
// TODO : CHECK
220
- return ReturnValue (uint64_t {0 });
227
+ return ReturnValue (uint64_t {32768 });
221
228
case UR_DEVICE_INFO_MAX_CONSTANT_BUFFER_SIZE:
222
229
// TODO : CHECK
223
230
return ReturnValue (uint64_t {0 });
@@ -257,9 +264,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
257
264
case UR_DEVICE_INFO_BUILD_ON_SUBDEVICE:
258
265
return ReturnValue (bool {0 });
259
266
case UR_DEVICE_INFO_ATOMIC_64:
260
- return ReturnValue (bool {0 });
267
+ return ReturnValue (bool {1 });
261
268
case UR_DEVICE_INFO_BFLOAT16:
262
- return ReturnValue (bool {0 });
269
+ return ReturnValue (bool {1 });
263
270
case UR_DEVICE_INFO_MEM_CHANNEL_SUPPORT:
264
271
return ReturnValue (bool {0 });
265
272
case UR_DEVICE_INFO_IMAGE_SRGB:
0 commit comments