class ServerScripts::Executor::IntelMPI

Attributes

enable_itac[RW]
vtune_fname[RW]

Public Class Methods

new(*args) click to toggle source
# File lib/server_scripts/executor/mpi_program.rb, line 37
def initialize(*args)
  super
  @vtune_fname = "DEFAULT_VTUNE"
end

Public Instance Methods

run_cmd() click to toggle source
# File lib/server_scripts/executor/mpi_program.rb, line 42
def run_cmd
  hydra = @enable_itac ? "mpiexec.hydra -trace" : "mpiexec.hydra"
  cmd = "#{hydra} -ppn #{@npernode} -np #{@nprocs} "
  if @enable_itac
    cmd += "amplxe-cl -trace-mpi –collect hpc-performance –r #{@vtune_fname} "
  end

  cmd
end