Add gfx1031 support

Change-Id: I855f7fe8d096331d0c1da10b10adf6b1e75a527f
This commit is contained in:
Chris Freehill
2020-07-20 22:54:17 -05:00
committed by Sean Keely
parent 2a0c6774fb
commit 4944c74189
9 changed files with 18 additions and 4 deletions
@@ -84,6 +84,7 @@ extern uint8_t ocl_blit_object_gfx1010[];
extern uint8_t ocl_blit_object_gfx1011[];
extern uint8_t ocl_blit_object_gfx1012[];
extern uint8_t ocl_blit_object_gfx1030[];
extern uint8_t ocl_blit_object_gfx1031[];
// Arguments inserted by OCL compiler, all zero here.
struct OCLHiddenArgs {
@@ -1009,6 +1010,9 @@ hsa_status_t BlitKernel::GetPatchedBlitObject(const char* agent_name,
case 1030:
*blit_code_object = ocl_blit_object_gfx1030;
break;
case 1031:
*blit_code_object = ocl_blit_object_gfx1031;
break;
default:
return HSA_STATUS_ERROR_INVALID_ISA_NAME;
}
@@ -75,7 +75,7 @@ set( XNACK_DEVS ${XNACK_DEVS} CACHE STRING "XNACK targets" FORCE )
# Determine the target devices if not specified
if (NOT DEFINED TARGET_DEVICES)
set (TARGET_DEVICES "gfx700;gfx701;gfx702;gfx801;gfx802;gfx803;gfx900;gfx902;gfx904;gfx906;gfx908;gfx1010;gfx1011;gfx1012;gfx1030")
set (TARGET_DEVICES "gfx700;gfx701;gfx702;gfx801;gfx802;gfx803;gfx900;gfx902;gfx904;gfx906;gfx908;gfx1010;gfx1011;gfx1012;gfx1030;gfx1031")
endif()
set( TARGET_DEVICES ${TARGET_DEVICES} CACHE STRING "Build targets" FORCE )