Using File Elements to Support Distributed Processing

The most common use of a File element is to ensure all necessary support files are passed to Slaves when using the GoldSim Distributed Processing Module.

The Distributed Processing Module allows you to use multiple computers connected over a network to share the computational burden of a Monte Carlo simulation. This is accomplished by having a Master (server) GoldSim executable connect to multiple Slave (client) GoldSim executables.

The first step in such a simulation is for the Master to transfer the necessary files (the model files and any support files) to the Slaves.

 If the model uses any External or Spreadsheet elements, the Master automatically transfers the DLLs and spreadsheet file, respectively, to the Slaves. If, however, these elements reference any other files (e.g., if the DLL reads in a separate data file the first time it is called), GoldSim has no way of knowing this, and could not send the required files to the Slaves.

The File element can be used to overcome this problem. Any file referenced by a File element is automatically sent to Slaves in a distributed processing simulation.

Hence, when using the Distributed Processing Module with external function elements that reference other files, a File element should be created for each file.

The file name should be entered in the Local file name field of the File element, and the Database checkbox should be cleared.  If no path is provided, the file should be placed in the same directory as the model file, and if the file cannot be found locally, the Status area displays “Local file missing”, and the simulation is not allowed to proceed.

Related Topics…

Learn more about: