mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-20 04:49:54 +00:00
* fix compile error
* fix typo of padding
* Add smoothquant op
* Add smoothquant instance library
* refine type
* add test script
* Re-generate smoothquant.hpp
* Always use 'current year' in copyright
* use Generic2dBlockShape instead
* Add vector = 8 instance back
* Find exe path automatically
* Simplify the api condition
* Remove debugging code
* update year
* Add blank line between function declaration
* explicitly cast return value to dim3
* refine return value
* Fix default warmup and repeat value
* Add comment
* refactor sommthquant cmake
* Add README
* Fix typo
---------
Co-authored-by: Po Yen, Chen <PoYen.Chen@amd.com>
[ROCm/composable_kernel commit: fbd654545a]
25 lines
1.1 KiB
CMake
25 lines
1.1 KiB
CMake
function (add_smoothquant_example TARGET_NAME MAIN_SRC)
|
|
message("adding ${TARGET_NAME}")
|
|
# not using add_example_executable() to add target, since we don't want this to have
|
|
# to be included in "make all/install/check"
|
|
add_executable(${TARGET_NAME} EXCLUDE_FROM_ALL ${MAIN_SRC})
|
|
target_include_directories(${TARGET_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
foreach(source IN LISTS ARGN)
|
|
list(APPEND INSTANCE_SRCS ${source})
|
|
endforeach()
|
|
|
|
target_sources(${TARGET_NAME} PRIVATE ${INSTANCE_SRCS})
|
|
|
|
set(COMPILE_OPTIONS)
|
|
# NOTE: we turn off undefined-func-template to let source compile without explicit declare function specializations
|
|
list(APPEND COMPILE_OPTIONS -Wno-undefined-func-template -Wno-float-equal)
|
|
|
|
target_compile_options(${TARGET_NAME} PRIVATE ${COMPILE_OPTIONS})
|
|
endfunction(add_smoothquant_example TARGET_NAME MAIN_SRC)
|
|
|
|
file(GLOB INSTANCE_SRCS instances/*.cpp)
|
|
|
|
add_smoothquant_example(tile_smoothquant smoothquant.cpp ${INSTANCE_SRCS})
|
|
add_smoothquant_example(tile_example_smoothquant example_smoothquant.cpp)
|