2.1. Activating Parallel Processing in a Shared-Memory Architecture

  1. Shared-memory ANSYS uses two cores by default and does not require any HPC licenses. Additional HPC licenses are required to run with more than two cores. Several HPC license options are available. See HPC Licensing for more information.

  2. Open the Mechanical APDL Product Launcher:

    Windows:

    Start >Programs >ANSYS 18.2 >Mechanical APDL Product Launcher

    Linux:
    launcher182
  3. Select the correct environment and license.

  4. Go to the High Performance Computing Setup tab. Select Use Shared-Memory Parallel (SMP). Specify the number of cores to use.

  5. Alternatively, you can specify the number of cores to use via the -np command line option:

    ansys182 -np N

    where N represents the number of cores to use.

    For large multiprocessor servers, ANSYS, Inc. recommends setting N to a value no higher than the number of available cores minus one. For example, on an eight-core system, set N to 7. However, on multiprocessor workstations, you may want to use all available cores to minimize the total solution time. The program automatically limits the maximum number of cores used to be less than or equal to the number of physical cores on the machine. This is done to avoid running the program on virtual cores (e.g., by means of hyperthreading), which typically results in poor per-core performance. For optimal performance, consider closing down all other applications before launching ANSYS.

    If you have more than one HPC license feature, you can use the -ppf command line option to specify which HPC license to use for the parallel run. See HPC Licensing for more information.

  6. If working from the launcher, click Run to launch ANSYS.

  7. Set up and run your analysis as you normally would.

2.1.1. System-Specific Considerations

For shared-memory parallel processing, the number of cores that the program uses is limited to the lesser of one of the following:

  • The number of ANSYS Mechanical HPC licenses available (plus the first two cores which do not require any licenses)

  • The number of cores indicated via the -np command line argument

  • The actual number of cores available

You can specify multiple settings for the number of cores to use during a session. However, ANSYS, Inc. recommends that you issue the /CLEAR command before resetting the number of cores for subsequent analyses.


Release 18.2 - © ANSYS, Inc. All rights reserved.