mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-12 01:10:17 +00:00
Gemm+layernorm instance, ckProfiler, client example (#568)
* Add gemm + layernorm instance * Add ckProfiler * Add test * Add client example * Detect if user forger to set the workrspace * Use literal in the example * [What] use builtin function for sqrt [Why] compiler will not use v_sqrt_f64_e64 if we use ::sqrt() * check gemm vaildity in IsSupportedArgument * Add more testcases * Merge duplicated folder in client example * Print more infomation * Use better kernel parameter for MS problem size * clang format * Add constexpr for if condition and remove redundant include * Remove cstdlib and add constexpr
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
add_custom_target(test_layernorm)
|
||||
add_custom_target(test_normalization)
|
||||
|
||||
add_gtest_executable(test_layernorm2d_fp32 test_layernorm2d_fp32.cpp)
|
||||
add_gtest_executable(test_layernorm2d_fp16 test_layernorm2d_fp16.cpp)
|
||||
add_gtest_executable(test_groupnorm_fp16 test_groupnorm_fp16.cpp)
|
||||
add_gtest_executable(test_groupnorm_fp32 test_groupnorm_fp32.cpp)
|
||||
|
||||
add_gtest_executable(test_groupnorm_fp32 test_groupnorm_fp32.cpp)
|
||||
|
||||
target_link_libraries(test_layernorm2d_fp32 PRIVATE utility device_normalization_instance)
|
||||
target_link_libraries(test_layernorm2d_fp16 PRIVATE utility device_normalization_instance)
|
||||
target_link_libraries(test_groupnorm_fp16 PRIVATE utility device_normalization_instance)
|
||||
target_link_libraries(test_groupnorm_fp32 PRIVATE utility device_normalization_instance)
|
||||
|
||||
add_dependencies(test_layernorm test_layernorm2d_fp32)
|
||||
add_dependencies(test_layernorm test_layernorm2d_fp16)
|
||||
add_dependencies(test_layernorm test_groupnorm_fp16)
|
||||
add_dependencies(test_layernorm test_groupnorm_fp32)
|
||||
add_dependencies(test_normalization test_layernorm2d_fp32)
|
||||
add_dependencies(test_normalization test_layernorm2d_fp16)
|
||||
add_dependencies(test_normalization test_groupnorm_fp16)
|
||||
add_dependencies(test_normalization test_groupnorm_fp32)
|
||||
|
||||
Reference in New Issue
Block a user