@@ -159,15 +159,22 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
159159 case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_FLOAT:
160160 case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_DOUBLE:
161161 case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_HALF:
162+ // todo: how can we query vector width in a platform
163+ // indipendent way?
162164 case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_CHAR:
165+ return ReturnValue (uint32_t {32 });
163166 case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_SHORT:
167+ return ReturnValue (uint32_t {16 });
164168 case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_INT:
169+ return ReturnValue (uint32_t {8 });
165170 case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG:
171+ return ReturnValue (uint32_t {4 });
166172 case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_FLOAT:
173+ return ReturnValue (uint32_t {8 });
167174 case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_DOUBLE:
175+ return ReturnValue (uint32_t {4 });
168176 case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_HALF:
169- return ReturnValue (uint32_t {1 });
170-
177+ return ReturnValue (uint32_t {16 });
171178 // Imported from level_zero
172179 case UR_DEVICE_INFO_USM_HOST_SUPPORT:
173180 case UR_DEVICE_INFO_USM_DEVICE_SUPPORT:
@@ -214,10 +221,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
214221 return ReturnValue (uint64_t {0 });
215222 case UR_DEVICE_INFO_GLOBAL_MEM_SIZE:
216223 // TODO : CHECK
217- return ReturnValue (uint64_t {0 });
224+ return ReturnValue (uint64_t {32768 });
218225 case UR_DEVICE_INFO_LOCAL_MEM_SIZE:
219226 // TODO : CHECK
220- return ReturnValue (uint64_t {0 });
227+ return ReturnValue (uint64_t {32768 });
221228 case UR_DEVICE_INFO_MAX_CONSTANT_BUFFER_SIZE:
222229 // TODO : CHECK
223230 return ReturnValue (uint64_t {0 });
@@ -257,9 +264,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
257264 case UR_DEVICE_INFO_BUILD_ON_SUBDEVICE:
258265 return ReturnValue (bool {0 });
259266 case UR_DEVICE_INFO_ATOMIC_64:
260- return ReturnValue (bool {0 });
267+ return ReturnValue (bool {1 });
261268 case UR_DEVICE_INFO_BFLOAT16:
262- return ReturnValue (bool {0 });
269+ return ReturnValue (bool {1 });
263270 case UR_DEVICE_INFO_MEM_CHANNEL_SUPPORT:
264271 return ReturnValue (bool {0 });
265272 case UR_DEVICE_INFO_IMAGE_SRGB:
0 commit comments