Skip to content

Commit 9a3c832

Browse files
authored
Merge pull request #75 from jichangjichang/develop
Correct type of hipblasHgemm's parameters.
2 parents 45a2c03 + 4931150 commit 9a3c832

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

library/include/hipblas.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ hipblasStatus_t hipblasZgemm(hipblasHandle_t handle, hipblasOperation_t transa,
254254
HIPBLAS_EXPORT hipblasStatus_t hipblasHgemm(hipblasHandle_t handle,
255255
hipblasOperation_t transa, hipblasOperation_t transb,
256256
int m, int n, int k, const hipblasHalf *alpha,
257-
hipblasHalf *A, int lda,
258-
hipblasHalf *B, int ldb, const hipblasHalf *beta,
257+
const hipblasHalf *A, int lda,
258+
const hipblasHalf *B, int ldb, const hipblasHalf *beta,
259259
hipblasHalf *C, int ldc);
260260

261261
HIPBLAS_EXPORT hipblasStatus_t hipblasSgemmStridedBatched(hipblasHandle_t handle, hipblasOperation_t transa, hipblasOperation_t transb,

library/src/hcc_detail/hipblas.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ hipblasStatus_t hipblasZgemm(hipblasHandle_t handle, hipblasOperation_t transa,
571571

572572
hipblasStatus_t hipblasHgemm(hipblasHandle_t handle, hipblasOperation_t transa, hipblasOperation_t transb,
573573
int m, int n, int k, const hipblasHalf *alpha,
574-
hipblasHalf *A, int lda,
575-
hipblasHalf *B, int ldb, const hipblasHalf *beta,
574+
const hipblasHalf *A, int lda,
575+
const hipblasHalf *B, int ldb, const hipblasHalf *beta,
576576
hipblasHalf *C, int ldc)
577577
{
578578
return rocBLASStatusToHIPStatus(rocblas_hgemm((rocblas_handle)handle,

library/src/nvcc_detail/hipblas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ hipblasStatus_t hipblasCgemm(hipblasHandle_t handle, hipblasOperation_t transa,
396396
*/
397397

398398
hipblasStatus_t hipblasHgemm(hipblasHandle_t handle, hipblasOperation_t transa, hipblasOperation_t transb,
399-
int m, int n, int k, const hipblasHalf *alpha, hipblasHalf *A, int lda, hipblasHalf *B, int ldb, const hipblasHalf *beta, hipblasHalf *C, int ldc)
399+
int m, int n, int k, const hipblasHalf *alpha, const hipblasHalf *A, int lda, const hipblasHalf *B, int ldb, const hipblasHalf *beta, hipblasHalf *C, int ldc)
400400
{
401401
return hipCUBLASStatusToHIPStatus(cublasHgemm((cublasHandle_t) handle,
402402
hipOperationToCudaOperation(transa), hipOperationToCudaOperation(transb),

0 commit comments

Comments
 (0)