⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oper2.f

📁 网络带宽测试工具
💻 F
字号:
      Subroutine oper2( nmult, linc, hash )! -------------------------------------------------------------------! --- 'oper2' does a multiplication with a stride in the index of!     array 'a 'to generate memory bank write conflicts. 'linc' is!     the stride.!     'a' is it's own target array; 'sb' is the scalar multiplier.! -------------------------------------------------------------------      Use                    numerics      Use                    sizes !Defines type & size of array 'a'.      Implicit               None                 Integer              :: nmult      Integer*8            :: hash, linc      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 ) )         a(l) = a(i)*sa + a(i+1)*sb      End Do! -------------------------------------------------------------------      End Subroutine oper2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -