You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Segmentation Fault in DGEMM with AMD BLIS Library using Flang Compiler #14
I am encountering a segmentation fault while running a DGEMM program with AMD BLIS. I am using the Flang compiler with AOCC and linking against the BLIS library. The program fails during the DGEMM operation with the following output:
Run: flang DGEMMExp.f90 -L/opt/AMD/aocl/aocl-linux-aocc-5.0.0/aocc/lib -lblis ./a.out
program DGEMMExp
implicit none
integer, parameter :: n = 2**5 + 16
double precision, dimension(n,n) :: A, At, AAt
integer(8) :: i, starttime, endtime, countrate
CALL random_number(A)
At = transpose(A)
print*, "transpose done"
call system_clock(starttime, countrate)
print*, "starting dgemm"
do i = 1, 3
call DGEMM('N', 'N', n, n, n, 1.0d0, A, n, At, n, 0.0d0, AAt, n)
end do
call system_clock(endtime, countrate)
print*, "end DGEMM"
print*, "CPU Time:", real(endtime-starttime,8) / countrate
end program DGEMMExp
@vkirangoud How to get verbose output like :
== Matrix multiplication using AMD BLIS DGEMM ==
and how to enable multithreading and specify threads for BLIS routines. and also verify the multithreading information in verbose output.
Activity
vkirangoud commentedon Nov 15, 2024
Use i8 or -fdefault-integer-8 while compiling. Thanks Harish for suggesting this fix.
AkhilAkkapelli commentedon Nov 15, 2024
@vkirangoud How to get verbose output like :
== Matrix multiplication using AMD BLIS DGEMM ==
and how to enable multithreading and specify threads for BLIS routines. and also verify the multithreading information in verbose output.
vkirangoud commentedon Nov 16, 2024