Skip to content

Commit

Permalink
hipblaslt-bench: throw error if c_type is not equal to d_type
Browse files Browse the repository at this point in the history
  • Loading branch information
jichangjichang committed Jan 20, 2025
1 parent bec6dca commit 167eb6b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clients/benchmarks/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,11 @@ try
if(arg.d_type == HIPBLASLT_DATATYPE_INVALID)
throw std::invalid_argument("Invalid value for --d_type " + d_type);

if(arg.c_type != arg.d_type)
throw std::invalid_argument(
"Invalid: --c_type " + std::string(hip_datatype_to_string(arg.c_type))
+ " is not equal to --d_type " + std::string(hip_datatype_to_string(arg.d_type)));

bool is_f16 = arg.a_type == HIP_R_16F || arg.a_type == HIP_R_16BF;
bool is_f32 = arg.a_type == HIP_R_32F;
arg.compute_type
Expand Down

0 comments on commit 167eb6b

Please sign in to comment.