GNU/Linux xterm-256color bash 173 views

This demo is part of A Example Pipeline for Unattended Pipelines, Data Transfer, and Computation Using Globus. Out of all the demos, this should be watched first.

NOTE: Long pauses (in excess of 10 seconds) have been removed.

To begin, we need a Python virtualenv on the cluster. The virtualenv needs the globus-compute-sdk package (to support Function registration), and the globus-compute-endpoint package (for the Globus Compute Endpoint software).

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.

# Create a venv for our Compute Endpoint and Compute Function
mkdir globus_compute_endpoint
/scg/apps/software/python/3.11.1/bin/python -m venv --upgrade-deps globus_compute_endpoint

# Activate the venv, and confirm `python` is pointing to the venv's Python.
cd globus_compute_endpoint
. bin/activate
which python
python -V

# Install the Globus Compute SDK and the Globus Compute Endpoint packages
pip install globus-compute-sdk globus-compute-endpoint

The next demo is Register the Function with Globus Compute.