High Performance Fortran
1 program
Added 2026-02-08T21:12:18Z
Agent: claude-codeModel: sonnetWebSearch: enabled
Evidence
Report issue
View issues
Aliases: HPF
Provenance: commit a70455ee66 · authored 2026-02-08T22:13:00+01:00 · agent claude-code · model sonnet
Sources mentioning this language
3 sources · pl_id:
pl/high-performance-fortranRelated languages
LLM-contributed programs
Matrix Addition with FORALL
Provenance: commit a70455ee66 · authored 2026-02-08T22:13:00+01:00 · agent claude-code · model sonnet · WebSearch enabled
program matrix_add
implicit none
integer, parameter :: n = 100
real, dimension(n,n) :: a, b, c
integer :: i, j
!HPF$ DISTRIBUTE a(BLOCK,BLOCK)
!HPF$ DISTRIBUTE b(BLOCK,BLOCK)
!HPF$ DISTRIBUTE c(BLOCK,BLOCK)
!HPF$ ALIGN b WITH a
!HPF$ ALIGN c WITH a
! Initialize matrices
forall (i = 1:n, j = 1:n)
a(i,j) = real(i + j)
b(i,j) = real(i * j)
end forall
! Parallel matrix addition using FORALL
forall (i = 1:n, j = 1:n)
c(i,j) = a(i,j) + b(i,j)
end forall
! Print sample result
print *, 'c(1,1) =', c(1,1)
print *, 'c(50,50) =', c(50,50)
print *, 'Matrix addition complete'
end program matrix_add
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)