This document describes the process required to run Solver “manually”, via command line. It is intended to provide an overview of the process to facilitate automation of execution in HPC environments for which the native Remote Solver capability is not suitable or unavailable.
Once your Project is ready to run Sizing/Analysis, change the run mode to HyperX Solver using the Project Run Settings form.
Select the Zone(s) that are ready to run and click either Size or Analyze, depending on the setup.
Once the operation has begun, you may cancel the run via the progress bar stop button.
Note
Methods to generate these required files are also available via the HyperX Scripting API (Project.GenerateSolverInputFile).
If the Solver run is to be completed on another machine, certain files must be gathered and copied. The necessary files are:
-
Solver Input File - Located in {ProjectWorkingFolder}\Solver\solver_input.msgpack
-
Neutral Loads Data - Located in {ProjectWorkingFolder}\Fea and {ProjectWorkingFolder}\PeakLoads (if this directory exists)
-
Package Cache - Located by default in C:\HyperX\Packages\Cache
For simple testing, it may be easiest to copy the entire Project Working Folder rather than attempting to manually copy the required subdirectories. Automated routines may prefer to copy only the required files. The Project Working Folder for the active Project may be opened automatically via the button on the Database tab of the Ribbon.
In the environment where Solver will be executed, the input file and Package Cache may be located anywhere, but the (up to) two neutral loads data folders must be located in the same parent directory (i.e. preserve the {ProjectWorkingFolder} structure).
If the Solver run is on the same machine where HyperX is installed, this step may be skipped. Otherwise, the executable files need to be copied to the machine where Solver is to be run.
Linux
From a machine where HyperX was installed, copy the folder located in {InstallationDir}\Executable\Solver_x64Linux or {InstallationDir}\Executable\Solver_arm64Linux depending on the system architecture.
These executables are fully self-contained and should not require that any non-standard dependencies be installed on the target machine. In order to run Solver, you may need to call chmod +x HyperX.Solver to make it executable.
With all files in place per steps 2 and 3, you can now run Solver via console with the following argument structure (Linux syntax as an example):
./HyperX.Solver <input> <log> <output> <working_folder> <cache_folder> 3 4 0 “<run_name>” <queueing_mode> <n_threads>
Where each argument corresponds to the following:
-
<input> - Path to solver_input.msgpack (often in the Project Working Folder).
-
<log> - Desired path to log file (anywhere writable).
-
<output> - Desired path to output file (anywhere writable).
-
<working_folder> - Path to the Project Working Folder.
-
<cache_folder> - Path to the Package Cache folder (where Solver criteria are located)
-
3 4 0 – Fixed internal flags, do not modify.
-
<run_name> - A user-facing name for the run to be saved in the output file.
-
<queueing_mode> - Define the Token Queueing Mode i.e. the behavior Solver should attempt when a requested operation would exceed remaining token count (for more info see Project Run Settings).
-
0 - Immediately exit if insufficient tokens are available.
-
1 - Queue indefinitely for the specified token count.
-
2 - Run at a lower token (i.e. lower thread) count, if possible.
-
-
<n_threads> - Number of threads to use for execution.
An example of the command to execute with 6 threads where the Solver binaries folder and working folder are located in the same parent directory would read:
./HyperX.Solver ../WorkingDir/Solver/solver_input.msgpack ../WorkingDir/Solver/solver_log.txt ../WorkingDir/Solver/solver_output.sdb ../WorkingDir ../PackageCache 3 4 0 “TestRun” 0 6
Note
During the run, status information will be provided to the console.
Solver will produce an Output Database according to the <output> path provided in step 4. This file can then be copied to the source machine and imported into the original Project.
Note
The method to import the results file is also available via the HyperX Scripting API (Project.ReadSolverResultFile).