Starting in 2025 R2.3, you can checkout licenses upfront and persist them between runs in Ansys Lumerical products. These features allow you to hold onto licenses and avoid having licenses taken by other users when conducting long or resource intensive simulations.
Limitations
These features are available for enterprise and business licenses. The persistent checkout feature is available for all products.
The upfront checkout feature is unsupported in the following cases:
- Simulations using the Intel MPI on Windows.
- Single simulations running within the design environment, such as such as mode analysis within the FDE solver in Ansys Lumerical MODE™, RCWA solver in Ansys Lumerical FDTD™ when “run within design environment” is selected, or Ansys Lumerical INTERCONNECT™ running non-sweep jobs.
Overview
Persistent Checkout
The persistent checkout feature allows licenses to persist between simulation runs until the GUI is closed or after you disable this option. Instead of returning licenses after each simulation concludes. Enable this option to avoid out of license errors for sweeps and optimizations that requires many consecutive simulations, where license may be taken by other users between runs.
The number of licenses checked out matches the number of licenses estimated from the license estimation utility. Between runs, if you adjust resources such that more licenses are needed for the next run, the additional licenses will be checked out. However, if you adjust resources such that less licenses are required, extra licenses aren’t returned to the pool until you close the GUI or run another simulation after turning off the feature.
The difference in when license check out occurs is shown in the diagram below, using a parameter sweep as an example.
Turning this feature off while the application is open results in already checked out license being returned immediately.
Upfront checkout
The upfront checkout feature allows you to checkout the required licenses based on your resource configuration when you click the run button, instead of requesting for them when the simulation starts.
Enable this option to ensure that licenses are available for when the simulation starts running, which may be a long time from when the run button is clicked when using a job scheduler such as Slurm. The number of licenses checked out matches that of the license estimation utility.
A diagram of the difference between these options is shown below, using a simulation submitted to a job scheduler as an example.
License re-checkout
With these options, the product will re-checkout licenses in the following scenarios:
- If persistent checkout is switched off.
- When licenses have not been returned due to a previous persistent checkout, but upfront checkout is switched on, and the next simulation requires more resources than the previous one.
- For business/standard licensing, when license sharing is toggled due to the set resources.
GUI access
You can enable the persistent and upfront checkout feature from the GUI by checking the “Persist checkouts” button or the “Upfront Checkouts” button “Resource license settings” section of the resource configuration window.
Script access
To set persistent and upfront checkout from script, use setpersistcheckouts and setupfrontcheckouts.
Command line access
The command line flag (Windows/Linux) -persist-solve-checkout and -upfront-checkouts controls the persistent checkout feature. When the flag is present, the feature is enabled. This command line flag overrides the selection made in the GUI.
Environment variable
The environment variable (Windows/Linux) LUM_PERSIST_CHECKOUTS and LUM_UPFRONT_CHECKOUTS control the persistent and upfront checkout feature. Setting these variables to 1, for example, LUM_PERSIST_CHECKOUTS=1, enables the corresponding feature and setting them to 0, for example, LUM_PERSIST_CHECKOUTS=0, disables the feature.
This environment variable overrides selections made inside the product GUI. When this environment variable is detected, a warning is shown in the Resource Configuration window.
See Also
Ansys optics solve, accelerator, and Ansys HPC license consumption, setpersistcheckouts, setupfrontcheckouts