File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed
projects/hipblaslt/device-library/extops Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ set(ops_dir "${CMAKE_CURRENT_SOURCE_DIR}/../../tensilelite")
99set (output_dir "${CMAKE_CURRENT_BINARY_DIR} " )
1010string (REGEX MATCHALL "gfx[a-z0-9]+" archs "${GPU_TARGETS} " )
1111list (REMOVE_DUPLICATES archs)
12- set (extop_stamps "" )
13- set (extop_targets "" )
12+ set (extop_cp_depends "" )
1413
1514foreach (arch IN LISTS archs)
1615 set (WAVEFRONT "-mwavefrontsize64" )
@@ -74,26 +73,14 @@ foreach(arch IN LISTS archs)
7473 COMMAND_EXPAND_LISTS
7574 )
7675
77- add_custom_command (
76+ add_custom_target (extop-library- ${arch} ALL
7877 DEPENDS
7978 "${output_code_object_file} "
8079 ${HIPBLASLT_PYTHON_DEPS}
81- OUTPUT " ${HIPBLASLT_TENSILE_LIBPATH} /library"
80+ ${extop_cp_depends}
8281 COMMAND ${HIPBLASLT_PYTHON_COMMAND} "${ops_dir} /ExtOpCreateLibrary.py" --src=${CMAKE_CURRENT_BINARY_DIR} --co=${output_code_object_file} --output =${output_dir} --arch=${arch}
8382 COMMAND ${CMAKE_COMMAND} -E copy "${output_dir} /hipblasltExtOpLibrary.dat" "${HIPBLASLT_TENSILE_LIBPATH} /library"
84- COMMAND ${CMAKE_COMMAND} -E touch "${CMAKE_CURRENT_BINARY_DIR} /extop_${arch} .stamp"
8583 COMMENT "Creating hipblasltExtOpLibrary.dat for ${arch} "
8684 )
87-
88- add_custom_target (
89- extop-library-${arch} ALL
90- DEPENDS ${extop_stamps}
91- )
92- list (APPEND extop_stamps "${CMAKE_CURRENT_BINARY_DIR} /extop_${arch} .stamp" )
93- list (APPEND extop_targets "extop-library-${arch} " )
85+ list (APPEND extop_cp_depends "extop-library-${arch} " )
9486endforeach ()
95-
96- add_custom_target (
97- extop-libraries ALL
98- DEPENDS ${extop_targets}
99- )
You can’t perform that action at this time.
0 commit comments