add gfx1036 support

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Change-Id: I075779b1369fde759c29572fa2027a3748d6ed4c
This commit is contained in:
Yifan Zhang
2021-11-18 16:32:20 +08:00
parent 8a6954c63c
commit 2f97f17df9
7 changed files with 10 additions and 3 deletions
@@ -95,6 +95,7 @@ extern uint8_t ocl_blit_object_gfx1032[];
extern uint8_t ocl_blit_object_gfx1033[];
extern uint8_t ocl_blit_object_gfx1034[];
extern uint8_t ocl_blit_object_gfx1035[];
extern uint8_t ocl_blit_object_gfx1036[];
// Arguments inserted by OCL compiler, all zero here.
struct OCLHiddenArgs {
@@ -1022,6 +1023,8 @@ hsa_status_t BlitKernel::GetPatchedBlitObject(const char* agent_name,
*blit_code_object = ocl_blit_object_gfx1034;
} else if (sname == "gfx1035") {
*blit_code_object = ocl_blit_object_gfx1035;
} else if (sname == "gfx1036") {
*blit_code_object = ocl_blit_object_gfx1036;
} else {
return HSA_STATUS_ERROR_INVALID_ISA_NAME;
}
@@ -74,7 +74,7 @@ endif()
# Determine the target devices if not specified
if (NOT DEFINED TARGET_DEVICES)
set (TARGET_DEVICES "gfx700;gfx701;gfx702;gfx801;gfx802;gfx803;gfx805;gfx810;gfx900;gfx902;gfx904;gfx906;gfx908;gfx909;gfx90a;gfx90c;gfx1010;gfx1011;gfx1012;gfx1013;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035")
set (TARGET_DEVICES "gfx700;gfx701;gfx702;gfx801;gfx802;gfx803;gfx805;gfx810;gfx900;gfx902;gfx904;gfx906;gfx908;gfx909;gfx90a;gfx90c;gfx1010;gfx1011;gfx1012;gfx1013;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036")
endif()
set( TARGET_DEVICES ${TARGET_DEVICES} CACHE STRING "Build targets" FORCE )
@@ -188,6 +188,7 @@ uint32_t DevIDToAddrLibFamily(uint32_t dev_id) {
case 3:
case 4:
case 5:
case 6:
return FAMILY_NV;
default: