Shared Memory Parallelization (SMP)
Shared Memory Parallelization (SMP) is a parallelization technique that incorporates the usage of multiple threads (or logical processors) in a node to solve problems.
SMP involves the utilization of a Shared Memory paradigm wherein, multiple threads communicate with each other and use a single shared memory space.
Implementation
Shared Memory Parallelization in OptiStruct does not require different executables or the installation of separate components for message passing.
Syntax
The standard OptiStruct executable can be used for SMP runs.
The OptiStruct script picks the required executable for the run,
and simultaneously sets all the required environment variables. Therefore, it is recommended
to use the script instead of directly calling the executable. The SMP runs can be activated
using the -cpu/-proc/-nproc/-ncpu/-nt/-nthread
OptiStruct run options for the HyperWorks Solver Run Manager or the script via the Command Line.
Launch OptiStruct SMP
To launch OptiStruct SMP runs, initially investigate the hardware availability for your run.
If you have multiple nodes within a cluster, it is more efficient to take advantage of the OptiStruct SPMD-Hybrid capabilities, instead of only using OptiStruct SMP.
- There is no restriction on the minimum number of threads for OptiStruct SMP.
- OptiStruct SMP (non-hybrid) are typically recommended on single node workstations.
[optistruct@host]$ $ALTAIR_HOME/scripts/optistruct [INPUTDECK] -nt [NLPROC] [OS_ARGS]
[optistruct@host]$ $ALTAIR_HOME/hwsolvers/scripts/optistruct.bat [INPUTDECK] -nt [NLPROC] [OS_ARGS]
- [INPUTDECK]
- Input deck file name
- [NLPROC]
- Number of logical processors
- [OS_ARGS]
- Lists the arguments to OptiStruct (Optional, refer to Run Options for further information).
1. OptiStruct SMP can also be launched using the Run Manager GUI. (Refer to HyperWorks Solver Run Manager).
2. Arguments for the SMP run options are mandatory, there is no default.