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
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
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