mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-12 17:26:00 +00:00
Add host API (#220)
* Add host API * manually rebase on develop * clean * manually rebase on develop * exclude tests from all target * address review comments * update client app name * fix missing lib name * clang-format update * refactor * refactor * refactor * refactor * refactor * fix test issue * refactor * refactor * refactor * upate cmake and readme Co-authored-by: Chao Liu <chao.liu2@amd.com>
This commit is contained in:
@@ -38,8 +38,8 @@ int profile_gemm(int argc, char* argv[])
|
||||
printf(" 3: A[k, m] * B[n, k] = C[m, n])\n");
|
||||
printf("arg4: verification (0: no; 1: yes)\n");
|
||||
printf("arg5: initialization (0: no init; 1: integer value; 2: decimal value)\n");
|
||||
printf("arg8: print tensor value (0: no; 1: yes)\n");
|
||||
printf("arg7: run kernel # of times (>1)\n");
|
||||
printf("arg6: print tensor value (0: no; 1: yes)\n");
|
||||
printf("arg7: time kernel (0=n0, 1=yes)\n");
|
||||
printf("arg8 to 13: M, N, K, StrideA, StrideB, StrideC\n");
|
||||
printf("arg14: split k into mulitiple batch\n");
|
||||
exit(1);
|
||||
@@ -50,7 +50,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
const bool do_verification = std::stoi(argv[4]);
|
||||
const int init_method = std::stoi(argv[5]);
|
||||
const bool do_log = std::stoi(argv[6]);
|
||||
const int nrepeat = std::stoi(argv[7]);
|
||||
const bool time_kernel = std::stoi(argv[7]);
|
||||
|
||||
const int M = std::stoi(argv[8]);
|
||||
const int N = std::stoi(argv[9]);
|
||||
@@ -74,7 +74,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -94,7 +94,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -114,7 +114,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -134,7 +134,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -154,7 +154,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -174,7 +174,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -194,7 +194,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -214,7 +214,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -234,7 +234,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -254,7 +254,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -274,7 +274,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -294,7 +294,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -314,7 +314,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -334,7 +334,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -354,7 +354,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
@@ -374,7 +374,7 @@ int profile_gemm(int argc, char* argv[])
|
||||
do_verification,
|
||||
init_method,
|
||||
do_log,
|
||||
nrepeat,
|
||||
time_kernel,
|
||||
M,
|
||||
N,
|
||||
K,
|
||||
|
||||
Reference in New Issue
Block a user