1
0
mirror of synced 2026-01-11 23:42:44 +00:00
Vulcan cc3ee9f07c
Add experimental tmux support (Linux)
**Experimental tmux Support for Linux**

The `run` script with `cos_117.cfg` spawns xterms for consoles, which works well on desktops but not on VPS/servers without X forwarding or for users preferring SSH/shell/mosh.

To resolve, this commit adds tmux support via:

+ tmux_run                   - Script that manages a cray simulator session.
+ cos_117_tmux.cfg    - Modified config that spawns tmux windows instead of xterms.

Benefits:

- Organizes cray simulator and consoles as tmux windows in a tmux session.
- Allows attaching, detaching, and exiting without stopping the simulator.

Usage:

```
tmux_run start
tmux_run attach
or execute `tmux_run` and select from menu. 
```

Full Usage:
```
Usage: tmux_run {start|stop|restart|kill|attach|status}

  start    - Start the Cray simulator session
  stop     - Stop the Cray simulator session
  restart  - Restart the Cray simulator session
  kill     - Kill the Cray simulator session (unsafe)
  attach   - Attach to the Cray simulator session
  status   - List running Cray simulator and consoles

Use keys 'Ctrl b <0 to ...>' to move to specific windows
Use keys 'Ctrl b n' to move to the next window
Use keys 'Ctrl b p' to move to the previous window
Use keys 'Ctrl b d' to detach from the simulator session.
```

Tests:

All options work as intended, except repeated starts/stops may cause race conditions, requiring the `kill` option.

The script passed shellcheck with no issues detected.
2025-02-03 02:05:39 +05:30
2020-09-09 15:11:45 -07:00
2021-02-22 19:54:56 -08:00
2021-02-20 18:58:55 -08:00
2023-01-30 14:59:26 -08:00
2020-09-09 15:11:45 -07:00
2025-01-31 12:35:59 +05:30
run
2020-09-09 23:27:50 +00:00
2020-09-09 23:27:50 +00:00
2025-02-03 02:05:39 +05:30
2020-09-10 00:25:07 +00:00

This repository contains the source code for the Cray PVP simulator. This simulator allows you
to run unmodified Cray software for the following machines:
- Cray XMP
- Cray YMP-el
- Cray J90
- Cray SV1
Support for other machines, such as the Cray-1, the Cray-YMP, even the Cray-C90 and Cray-T90
would most likely be possible, but for the lack of SW availablility for these platforms.

Apart from the source code, also included in the repository the tools and files needed to
create an executable COS-1.17 image for the Cray-XMP.

If you have access to old Cray SW, especially for as-of yet unsupported machines,
please contact me!

For more details on the project, see http://www.modularcircuits.com/blog/articles/the-cray-files/

Linux build instructions:
==================================
1. Clone repository:
      git clone https://github.com/andrastantos/cray-sim.git
2. Install build dependencies:
      sudo apt install g++ make libboost-all-dev libncurses-dev libgpm-dev
3. Install run dependencies
      sudo apt install xterm telnet
4. Build
      cd cray-sim/simulator
      make build
   Else for Linux distros that require dynamic linking do:
      make LINK_TYPE=dynamic build
5. Build images
      cd ../target/cos_117
      ./build_boot_tape
      ./build_exp_disk
6. Run simulator
      cd ../..
      ./run

Native Windows build instructions:
===================================
1. Build boost and set up project files accordingly
      see simulator\README_boost.txt for details
2. Open solution in Visual Studio and build
      Open simulator\all.sln
      Hit build all
3. Build images
      cd target\cos_117
      build_boot_tape
      build_exp_disk
4. Run simulator
      cd ..\..
      run
Description
Cray PVP Simulator
Readme BSL-1.0 86 MiB
Languages
Assembly 89.8%
C++ 6%
C 3.5%
Makefile 0.5%
Shell 0.2%