@@ -122,22 +122,22 @@ TEST_P(dgmm_gtest, dgmm_gtest_float)
122122 // The Arguments data struture have physical meaning associated.
123123 // while the tuple is non-intuitive.
124124
125- // Arguments arg = setup_dgmm_arguments(GetParam());
126-
127- // hipblasStatus_t status = testing_dgmm<float>(arg);
128-
129- // // if not success, then the input argument is problematic, so detect the error message
130- // if(status != HIPBLAS_STATUS_SUCCESS)
131- // {
132- // if(arg.M < 0 || arg.N < 0 || arg.lda < arg.M || arg.ldc < arg.M || arg.incx == 0 )
133- // {
134- // EXPECT_EQ(HIPBLAS_STATUS_INVALID_VALUE, status);
135- // }
136- // else
137- // {
138- // EXPECT_EQ(HIPBLAS_STATUS_SUCCESS, status); // fail
139- // }
140- // }
125+ Arguments arg = setup_dgmm_arguments (GetParam ());
126+
127+ hipblasStatus_t status = testing_dgmm<float >(arg);
128+
129+ // if not success, then the input argument is problematic, so detect the error message
130+ if (status != HIPBLAS_STATUS_SUCCESS)
131+ {
132+ if (arg.M < 0 || arg.N < 0 || arg.lda < arg.M || arg.ldc < arg.M )
133+ {
134+ EXPECT_EQ (HIPBLAS_STATUS_INVALID_VALUE, status);
135+ }
136+ else
137+ {
138+ EXPECT_EQ (HIPBLAS_STATUS_SUCCESS, status); // fail
139+ }
140+ }
141141}
142142
143143TEST_P (dgmm_gtest, dgmm_gtest_float_complex)
@@ -147,22 +147,22 @@ TEST_P(dgmm_gtest, dgmm_gtest_float_complex)
147147 // The Arguments data struture have physical meaning associated.
148148 // while the tuple is non-intuitive.
149149
150- // Arguments arg = setup_dgmm_arguments(GetParam());
151-
152- // hipblasStatus_t status = testing_dgmm<hipblasComplex>(arg);
153-
154- // // if not success, then the input argument is problematic, so detect the error message
155- // if(status != HIPBLAS_STATUS_SUCCESS)
156- // {
157- // if(arg.M < 0 || arg.N < 0 || arg.lda < arg.M || arg.ldc < arg.M || arg.incx == 0 )
158- // {
159- // EXPECT_EQ(HIPBLAS_STATUS_INVALID_VALUE, status);
160- // }
161- // else
162- // {
163- // EXPECT_EQ(HIPBLAS_STATUS_SUCCESS, status); // fail
164- // }
165- // }
150+ Arguments arg = setup_dgmm_arguments (GetParam ());
151+
152+ hipblasStatus_t status = testing_dgmm<hipblasComplex>(arg);
153+
154+ // if not success, then the input argument is problematic, so detect the error message
155+ if (status != HIPBLAS_STATUS_SUCCESS)
156+ {
157+ if (arg.M < 0 || arg.N < 0 || arg.lda < arg.M || arg.ldc < arg.M )
158+ {
159+ EXPECT_EQ (HIPBLAS_STATUS_INVALID_VALUE, status);
160+ }
161+ else
162+ {
163+ EXPECT_EQ (HIPBLAS_STATUS_SUCCESS, status); // fail
164+ }
165+ }
166166}
167167
168168TEST_P (dgmm_gtest, dgmm_batched_gtest_float)
0 commit comments