Multithreading in Spectre FX
Spectre FX supports multithreading on multi-core computer platforms. The default behavior is to use a single thread. You can enable the multithreading feature by using the +mt=N command-line option to specify the number of threads to be used, as shown below.
spectrefx +mt=8 ...
Spectre FX enables High Performance Computing (HPC) by default, therefore, it automatically adds multithreading jobs to the CPU cores from the same socket. This enhances the performance of multithreading.
When multithreading and HPC are enabled, the Spectre FX log file displays the following information:
HPC is enabled
Binding to socket 1
8 threads are started.
Enabling Distributed Mode with Multithreading
If multiple computer hosts are available, you can use the LSF model to run multi-core simulations on multiple hosts by using the +mt option to enable distributed mode with multithreading.
The following examples shows that each job runs with mt=4 on one host:
%bsub –R "(OSNAME==Linux) span[hosts=1]" -n 4 "spectrefx +mt=lsf"
Related Topics
Command-Line Options for Spectre FX
Return to top