@@ -67,6 +67,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
67
67
case UR_DEVICE_INFO_PLATFORM:
68
68
return ReturnValue (hDevice->Platform );
69
69
break ;
70
+ case UR_DEVICE_INFO_USM_DEVICE_SUPPORT:
71
+ case UR_DEVICE_INFO_USM_HOST_SUPPORT:
70
72
case UR_DEVICE_INFO_USM_SINGLE_SHARED_SUPPORT:
71
73
return ReturnValue (UR_DEVICE_USM_ACCESS_CAPABILITY_FLAG_ACCESS);
72
74
case UR_DEVICE_INFO_BUILD_ON_SUBDEVICE:
@@ -78,19 +80,35 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
78
80
return ReturnValue (uint32_t {3 });
79
81
case UR_DEVICE_INFO_COMPILER_AVAILABLE:
80
82
return ReturnValue (true );
83
+ case UR_DEVICE_INFO_SUB_GROUP_SIZES_INTEL:
84
+ // TODO: Implement subgroups in Offload
85
+ return ReturnValue (1 );
81
86
// Unimplemented features
82
87
case UR_DEVICE_INFO_PROGRAM_SET_SPECIALIZATION_CONSTANTS:
83
88
case UR_DEVICE_INFO_GLOBAL_VARIABLE_SUPPORT:
84
89
case UR_DEVICE_INFO_USM_POOL_SUPPORT:
85
90
case UR_DEVICE_INFO_COMMAND_BUFFER_SUPPORT_EXP:
86
91
case UR_DEVICE_INFO_IMAGE_SUPPORT:
87
92
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:
88
99
return ReturnValue (false );
89
100
case UR_DEVICE_INFO_USM_CROSS_SHARED_SUPPORT:
90
- case UR_DEVICE_INFO_USM_DEVICE_SUPPORT:
91
- case UR_DEVICE_INFO_USM_HOST_SUPPORT:
92
101
case UR_DEVICE_INFO_USM_SYSTEM_SHARED_SUPPORT:
93
102
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
+ }
94
112
default :
95
113
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
96
114
}
0 commit comments