Force rocrtsts to use Code Object V4
Temporarily force rocrtsts to use Code Object V4 while compiler team is about to switch the default Code Object to V5. Will switch back to using default compiler setting once everything is tested/fixed. Change-Id: I18e5c6771fffd8c60792fc197501d373c7ec22f3
This commit is contained in:
@@ -280,7 +280,7 @@ function(build_kernel S_NAME TARG_DEV)
|
||||
set(HSACO_TARG_LIST ${HSACO_TARG_LIST} "${KERNEL_DIR}/${SNAME_KERNEL}" PARENT_SCOPE)
|
||||
string(SUBSTRING ${TARG_DEV} 3 -1 gfxNum)
|
||||
separate_arguments(CLANG_ARG_LIST UNIX_COMMAND
|
||||
"-D ROCRTST_GPU=0x${gfxNum} -x cl -target amdgcn-amd-amdhsa -include ${OPENCL_INC_DIR}opencl-c.h -mcpu=${TARG_DEV} ${BITCODE_ARGS} -cl-std=CL${OPENCL_VER} ${CL_FILE_LIST} -o ${KERNEL_DIR}/${SNAME_KERNEL}")
|
||||
"-D ROCRTST_GPU=0x${gfxNum} -x cl -target amdgcn-amd-amdhsa -include ${OPENCL_INC_DIR}opencl-c.h -mcpu=${TARG_DEV} ${BITCODE_ARGS} -cl-std=CL${OPENCL_VER} -mcode-object-version=4 ${CL_FILE_LIST} -o ${KERNEL_DIR}/${SNAME_KERNEL}")
|
||||
add_custom_command(OUTPUT "${KERNEL_DIR}/${SNAME_KERNEL}" COMMAND ${CLANG} ${CLANG_ARG_LIST} DEPENDS ${CL_FILE_LIST} ${CLANG} COMMENT "BUILDING ${KERNEL_DIR}/${SNAME_KERNEL}" VERBATIM)
|
||||
endfunction(build_kernel)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user