Skip to content

Commit 0cf242e

Browse files
authored
update AMD device attribute query enums (#125)
1 parent e4c1ccd commit 0cf242e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

intercept/src/cli_ext.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,10 @@ clEnqueueMemAdviseINTEL(
936936
#define CL_DEVICE_GFXIP_MAJOR_AMD 0x404A
937937
#define CL_DEVICE_GFXIP_MINOR_AMD 0x404B
938938
#define CL_DEVICE_AVAILABLE_ASYNC_QUEUES_AMD 0x404C
939+
#define CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_AMD 0x4030
940+
#define CL_DEVICE_MAX_WORK_GROUP_SIZE_AMD 0x4031
941+
#define CL_DEVICE_PREFERRED_CONSTANT_BUFFER_SIZE_AMD 0x4033
942+
#define CL_DEVICE_PCIE_ID_AMD 0x4034
939943

940944
// cl_amd_offline_devices
941945
#define CL_CONTEXT_OFFLINE_DEVICES_AMD 0x403F

intercept/src/enummap.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,10 @@ CEnumNameMap::CEnumNameMap()
931931
ADD_ENUM_NAME( m_cl_int, CL_DEVICE_GFXIP_MAJOR_AMD );
932932
ADD_ENUM_NAME( m_cl_int, CL_DEVICE_GFXIP_MINOR_AMD );
933933
ADD_ENUM_NAME( m_cl_int, CL_DEVICE_AVAILABLE_ASYNC_QUEUES_AMD );
934+
ADD_ENUM_NAME( m_cl_int, CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_AMD );
935+
ADD_ENUM_NAME( m_cl_int, CL_DEVICE_MAX_WORK_GROUP_SIZE_AMD );
936+
ADD_ENUM_NAME( m_cl_int, CL_DEVICE_PREFERRED_CONSTANT_BUFFER_SIZE_AMD );
937+
ADD_ENUM_NAME( m_cl_int, CL_DEVICE_PCIE_ID_AMD );
934938

935939
// cl_amd_offline_devices
936940
ADD_ENUM_NAME( m_cl_int, CL_CONTEXT_OFFLINE_DEVICES_AMD );

0 commit comments

Comments
 (0)