@@ -67,6 +67,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
6767 case UR_DEVICE_INFO_PLATFORM:
6868 return ReturnValue (hDevice->Platform );
6969 break ;
70+ case UR_DEVICE_INFO_USM_DEVICE_SUPPORT:
71+ case UR_DEVICE_INFO_USM_HOST_SUPPORT:
7072 case UR_DEVICE_INFO_USM_SINGLE_SHARED_SUPPORT:
7173 return ReturnValue (UR_DEVICE_USM_ACCESS_CAPABILITY_FLAG_ACCESS);
7274 case UR_DEVICE_INFO_BUILD_ON_SUBDEVICE:
@@ -78,19 +80,35 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
7880 return ReturnValue (uint32_t {3 });
7981 case UR_DEVICE_INFO_COMPILER_AVAILABLE:
8082 return ReturnValue (true );
83+ case UR_DEVICE_INFO_SUB_GROUP_SIZES_INTEL:
84+ // TODO: Implement subgroups in Offload
85+ return ReturnValue (1 );
8186 // Unimplemented features
8287 case UR_DEVICE_INFO_PROGRAM_SET_SPECIALIZATION_CONSTANTS:
8388 case UR_DEVICE_INFO_GLOBAL_VARIABLE_SUPPORT:
8489 case UR_DEVICE_INFO_USM_POOL_SUPPORT:
8590 case UR_DEVICE_INFO_COMMAND_BUFFER_SUPPORT_EXP:
8691 case UR_DEVICE_INFO_IMAGE_SUPPORT:
8792 case UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT:
93+ case UR_DEVICE_INFO_MEM_CHANNEL_SUPPORT:
94+ // TODO: Atomic queries in Offload
95+ case UR_DEVICE_INFO_ATOMIC_64:
96+ case UR_DEVICE_INFO_IMAGE_SRGB:
97+ case UR_DEVICE_INFO_HOST_UNIFIED_MEMORY:
98+ case UR_DEVICE_INFO_LINKER_AVAILABLE:
8899 return ReturnValue (false );
89100 case UR_DEVICE_INFO_USM_CROSS_SHARED_SUPPORT:
90- case UR_DEVICE_INFO_USM_DEVICE_SUPPORT:
91- case UR_DEVICE_INFO_USM_HOST_SUPPORT:
92101 case UR_DEVICE_INFO_USM_SYSTEM_SHARED_SUPPORT:
93102 return ReturnValue (uint32_t {0 });
103+ case UR_DEVICE_INFO_QUEUE_PROPERTIES:
104+ case UR_DEVICE_INFO_KERNEL_LAUNCH_CAPABILITIES:
105+ return ReturnValue (0 );
106+ case UR_DEVICE_INFO_SUPPORTED_PARTITIONS: {
107+ if (pPropSizeRet) {
108+ *pPropSizeRet = 0 ;
109+ }
110+ return UR_RESULT_SUCCESS;
111+ }
94112 default :
95113 return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
96114 }
0 commit comments