Add gfx1100 support
Signed-off-by: Graham Sider <Graham.Sider@amd.com> Change-Id: Ic5d5559e43df5c73409ba900a42c6901aabae661
This commit is contained in:
committed by
David Yat Sin
parent
710adcc252
commit
446c5e9672
@@ -96,6 +96,7 @@ 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[];
|
||||
extern uint8_t ocl_blit_object_gfx1100[];
|
||||
|
||||
// Arguments inserted by OCL compiler, all zero here.
|
||||
struct OCLHiddenArgs {
|
||||
@@ -1025,6 +1026,8 @@ hsa_status_t BlitKernel::GetPatchedBlitObject(const char* agent_name,
|
||||
*blit_code_object = ocl_blit_object_gfx1035;
|
||||
} else if (sname == "gfx1036") {
|
||||
*blit_code_object = ocl_blit_object_gfx1036;
|
||||
} else if (sname == "gfx1100") {
|
||||
*blit_code_object = ocl_blit_object_gfx1100;
|
||||
} else {
|
||||
return HSA_STATUS_ERROR_INVALID_ISA_NAME;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ find_package(Clang REQUIRED HINTS ${CMAKE_PREFIX_PATH}/llvm PATHS /opt/rocm/llvm
|
||||
|
||||
# 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;gfx1036")
|
||||
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;gfx1100")
|
||||
endif()
|
||||
set( TARGET_DEVICES ${TARGET_DEVICES} CACHE STRING "Build targets" FORCE )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user