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

📄 oper1.f

📁 网络带宽测试工具
💻 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 + -