A Python API for the WRENCH simulation framework
Project description
Cyberinfrastructure Simulation Workbench
UNDER DEVELOPMENT
Objective
The objective of this repo is to implement a tiny "hello world" proof-of-concept of the envisioned system architecture for the WRENCH (re-?)implementation as part of the NSF-funded CSSI grant. The key ideas are:
Current Design
- A simulation consists of a "client" (in this repo a Python client) that interacts with a "WRENCH daemon" process.
- The "WRENCH daemon" process, when asked to run a simulation starts a 2-thread process:
- A "Simulation Daemon" thread that handles all communication with the client
- A simulation thread that runs the WRENCH simulation
- The reason for the two threads is that all SimGrid calls must be placed by the same thread. So the Simulation Daemon thread, which has to acts as an HTTP server, places "please do this" requests in some thread-safe data structure that the simulation thread will then execute via WRENCH calls.
- The client, simulation daemon, and the simulation thread operate in locked-step w.r.t. the simulation clock.
How to run it
-
Start the daemon:
./wrench-daemon/build/wrench-daemon
(use--help
for all options) -
Run the Python simulator:
./python-client-demo/simulator.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wrench-api-0.1.tar.gz
(7.3 kB
view details)
File details
Details for the file wrench-api-0.1.tar.gz
.
File metadata
- Download URL: wrench-api-0.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b840a0e2a2550efac51f95e7ec0bc31fae5d0bd5036b37cf12738cbbf5d05cd |
|
MD5 | 85c0bb4d9b91e304f2b22684a152367a |
|
BLAKE2b-256 | a2100bfdc21c92f244bb7c01c410cffc7d004de8f53cb730ded10097d008930d |