Class: ServerScripts::Executor::MPIProgram
- Defined in:
- lib/server_scripts/executor/mpi_program.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#npernode ⇒ Object
readonly
Returns the value of attribute npernode.
-
#nprocs ⇒ Object
readonly
Returns the value of attribute nprocs.
Instance Method Summary collapse
-
#initialize(npernode:, nprocs:, env: {}) ⇒ MPIProgram
constructor
A new instance of MPIProgram.
Methods inherited from Base
Constructor Details
#initialize(npernode:, nprocs:, env: {}) ⇒ MPIProgram
Returns a new instance of MPIProgram.
9 10 11 12 13 |
# File 'lib/server_scripts/executor/mpi_program.rb', line 9 def initialize(npernode: , nprocs:, env: {}) @npernode = npernode @nprocs = nprocs @env = env end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
7 8 9 |
# File 'lib/server_scripts/executor/mpi_program.rb', line 7 def env @env end |
#npernode ⇒ Object (readonly)
Returns the value of attribute npernode.
5 6 7 |
# File 'lib/server_scripts/executor/mpi_program.rb', line 5 def npernode @npernode end |
#nprocs ⇒ Object (readonly)
Returns the value of attribute nprocs.
6 7 8 |
# File 'lib/server_scripts/executor/mpi_program.rb', line 6 def nprocs @nprocs end |