mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-16 02:54:21 +00:00
ckProfiler for layernorm (#330)
* Refine parameter
* Add base class for layernorm
* Add layernorm instance
* Add layernorm to ckProfiler
* Remove redundant
* Add verification
* Fix compile error due to merge
[ROCm/composable_kernel commit: fdfd7eb597]
This commit is contained in:
@@ -19,6 +19,7 @@ int profile_conv_bwd_data(int, char*[]);
|
||||
int profile_conv_bwd_weight(int, char*[]);
|
||||
int profile_grouped_conv_fwd(int, char*[]);
|
||||
int profile_normalization(int, char*[]);
|
||||
int profile_layernorm(int, char*[]);
|
||||
int profile_reduce(int, char*[]);
|
||||
|
||||
static void print_helper_message()
|
||||
@@ -115,11 +116,14 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
return profile_reduce(argc, argv);
|
||||
}
|
||||
else if(strcmp(argv[1], "batchnorm") == 0 || strcmp(argv[1], "layernorm") == 0 ||
|
||||
strcmp(argv[1], "softmax") == 0)
|
||||
else if(strcmp(argv[1], "batchnorm") == 0 || strcmp(argv[1], "softmax") == 0)
|
||||
{
|
||||
return profile_normalization(argc, argv);
|
||||
}
|
||||
else if(strcmp(argv[1], "layernorm") == 0)
|
||||
{
|
||||
return profile_layernorm(argc, argv);
|
||||
}
|
||||
else
|
||||
{
|
||||
print_helper_message();
|
||||
|
||||
Reference in New Issue
Block a user