Skip to content

Instantly share code, notes, and snippets.

@kinow
Last active June 26, 2022 05:58

Revisions

  1. kinow revised this gist Jun 26, 2022. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions FIRST_EXPERIMENT.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    Here's the step by step that I used to have a running workflow.

    1. Sync `master` branch
    2. Re-install dependencies in venv, `pip install -U -e .`
    3. Remove old files, `rm -rf ~/.autosubmit*` and `rm -rf ~/autosubmit`
    4. Configure and install Autosubmit, `autosubmit configure`, followed by `autosubmit install`
    5. Create a new dummy experiment with `autosubmit expid -H local --dummy -d DummyExp`
    1. Synced `master` branch
    2. Re-installed dependencies in venv, `pip install -U -e .`
    3. Removed old files, `rm -rf ~/.autosubmit*` and `rm -rf ~/autosubmit`
    4. Configured and installed Autosubmit, `autosubmit configure`, followed by `autosubmit install`
    5. Created a new dummy experiment with `autosubmit expid -H local --dummy -d DummyExp`
    6. Updated my experiment's platform file

    ```
  2. kinow created this gist Jun 26, 2022.
    40 changes: 40 additions & 0 deletions FIRST_EXPERIMENT.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    Here's the step by step that I used to have a running workflow.

    1. Sync `master` branch
    2. Re-install dependencies in venv, `pip install -U -e .`
    3. Remove old files, `rm -rf ~/.autosubmit*` and `rm -rf ~/autosubmit`
    4. Configure and install Autosubmit, `autosubmit configure`, followed by `autosubmit install`
    5. Create a new dummy experiment with `autosubmit expid -H local --dummy -d DummyExp`
    6. Updated my experiment's platform file

    ```
    # File: /home/kinow/autosubmit/a000/conf/platforms_a000.conf
    [local]
    TYPE = PS
    HOST = localhost
    PROJECT = local
    USER = root
    SCRATCH_DIR = /tmp
    ```
    7. Started a Docker container with SSH (didn't want to install OpenSSH), `sudo docker run -d -P --name test_sshd -p22:22 rastasheep/ubuntu-sshd:14.04` and copied my SSH pub ID there with `ssh-copy-id root@localhost` (pass is `root`)
    8. Ran the experiment `autosubmit run a000`
    9. Then monitored it, `autosubmit monitor a000`

    ![Screenshot from 2022-06-26 17-36-58](https://user-images.githubusercontent.com/304786/175800968-c7a535f8-b345-4b40-911b-264d6b8f4b3e.png)

    10. Changed the chunk size in the experiment definition file

    ```
    # File: /home/kinow/autosubmit/a000/conf/expdef_a000.conf
    #...
    NUMCHUNKS = 2
    #...
    ```

    11. Ran again, and monitored it again

    ![Screenshot from 2022-06-26 17-26-51](https://user-images.githubusercontent.com/304786/175801001-4f7c4d7e-e369-4037-9bf3-a49fdd941864.png)