Skip to content

Commit 6d11892

Browse files
committed
Fix HIP compilation issue (use statement placement).
1 parent c767d0e commit 6d11892

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/subs/mat_dgemm.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
subroutine MAT_DGEMM(TRANSA, TRANSB, M, N, K, ALPHA, A, LDA, B, LDB, BETA, &
1212
C, LDC)
13+
#if defined(HIP) || defined(HIP_MPIV)
14+
use quick_rocblas_module, only: rocDGEMM
15+
#endif
16+
1317
implicit none
1418

1519
double precision, intent(in) :: ALPHA, BETA
@@ -18,10 +22,6 @@ subroutine MAT_DGEMM(TRANSA, TRANSB, M, N, K, ALPHA, A, LDA, B, LDB, BETA, &
1822
double precision, intent(in) :: A(LDA,*), B(LDB,*)
1923
double precision, intent(out) :: C(LDC,*)
2024

21-
#if defined(HIP) || defined(HIP_MPIV)
22-
use quick_rocblas_module, only: rocDGEMM
23-
#endif
24-
2525
#if defined(GPU) || defined(MPIV_GPU)
2626
call GPU_DGEMM(TRANSA, TRANSB, M, N, K, ALPHA, A, LDA, B, LDB, BETA, C, LDC)
2727
#else

0 commit comments

Comments
 (0)