GNU/Linux xterm-256color bash 194 views

This demo is part of A Example Pipeline for Unattended Pipelines, Data Transfer, and Computation Using Globus. This demo should be watched after Register the Function with Globus Compute.

Now, we configure the Globus Compute Endpoint. This involves telling the Compute Endpoint about our job scheduler, and how jobs should be submitted.

The demonstration assumes that you just logged in to SCG, and that you are a member of the Full-Tier ruthm Lab. You should change the SLURM account to your own PI’s SUNetID; and if your Lab is a Free-Tier Lab, you should change the SLURM partition from batch to nih_s10.

The demo stores the Compute Endpoint configuration in the globus_compute_demo directory. Normally configuration is stored in the hidden .globus_compute directory in your home directory; the explicit configuration path makes cleanup easier.

Here are the commands to run, to reproduce the demo in your own session:

NOTE: On SCG, Python versions are provided through Lmod modules. Every example assumes that you have already loaded the python/3.11.1 module.

# If needed, activate the venv
cd globus_compute_endpoint
. bin/activate
which python
python -V

# Create a new Compute Endpoint
globus-compute-endpoint \
--config-dir=/home/akkornel/globus_compute_demo/config \
configure --display-name "Globus Flow Demo on SCG" globus_flow_demo

# Edit the file at path `config/globus_flow_demo/config.yaml`,
# configuring the provider as follows:

provider:
  type: SlurmProvider
  partition: batch
  account: ruthm
  launcher:
    type: SrunLauncher

# After saving the `config.yaml` file, start the Endpoint
globus-compute-endpoint --config-dir=/home/akkornel/globus_compute_demo/config start globus_flow_demo

# List all endpoints, confirming that the Endpoint is started
globus-compute-endpoint --config-dir=/home/akkornel/globus_compute_demo/config list

In the above example, the Compute Endpoint has been registered and assigned UUID b72ee151-a5d9-4cfc-97b3-86e0664730b2.

The next demo is Run the Flow.