📄 oper1.f
字号:
Subroutine oper1( sy, nmult, linc, hash )! -------------------------------------------------------------------! --- 'oper1' does a multiplication with a stride in the index of! array 'a ' to generate memory bank read conflicts. 'linc' is! the stride.! 'sy' is the target variable.! ------------------------------------------------------------------- Use numerics Use sizes !Defines type & size of array 'a'. Implicit None Integer :: nmult Integer*8 :: hash, linc Real(l_) :: sy Real(l_), Parameter :: sa = 0.5, sb = 0.5 Integer*8 :: i, l! -------------------------------------------------------------------!$omp parallel do Do i = 1, nmult l = Abs( Mod( i*linc, hash ) ) sy = a(l)*sa + a(l)*sb End Do! ------------------------------------------------------------------- End Subroutine oper1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -