Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C ComputationalKernelAnalysisTool
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Oriol Tintó-Prims
  • ComputationalKernelAnalysisTool
  • Wiki
  • how to run the ComputationalKernelAnalysisTool

how to run the ComputationalKernelAnalysisTool · Changes

Page history
how-to-run modified authored Sep 15, 2016 by otintopr's avatar otintopr
Show whitespace changes
Inline Side-by-side
how-to-run-the-ComputationalKernelAnalysisTool.md
View page @ e4855531
...@@ -27,16 +27,19 @@ module kernels ...@@ -27,16 +27,19 @@ module kernels
! Double Precision ----------------------------------------------------- ! Double Precision -----------------------------------------------------
INTEGER,PARAMETER :: wp = selected_real_kind(12, 307) INTEGER,PARAMETER :: wp = selected_real_kind(12, 307)
contains contains
subroutine kernel(A,B,C,D,pa,pb,pc,pd,asiz) subroutine kernel(A,B,C,D,pa,pb,pc,pd,sizex,sizey)
integer :: ii,jj integer :: ii,jj,kk
integer :: asiz integer :: sizex,sizey
real(wp) , allocatable, dimension(:) :: A,B,C,D ! Arrays real(wp) , allocatable, dimension(:,:) :: A,B,C,D ! Arrays
real(wp) :: pa,pb,pc,pd ! Parameters real(wp) :: pa,pb,pc,pd ! Parameters
do ii=1,100 do ii=1,100
!dir$ vector aligned !dir$ vector aligned
do jj=1,asiz do kk=1,sizex
!dir$ vector aligned
do jj=1,sizey
!Simple kernel !Simple kernel
a(jj) = pa*(pb+b(jj))+pc+pd*c(jj) ! Line (do not remove this comment ) a(jj,kk) = pa+a(jj,kk)*b(jj,kk)+c(jj,kk)*d(jj,kk)*pb ! Line (do not remove this comment )
end do
end do end do
end do end do
end subroutine end subroutine
......
Clone repository
  • Home
  • how to run the ComputationalKernelAnalysisTool
  • issues with PAPI counters
  • issues with align arrays