Diamond
Tutorial
Set up globus compute endpoint
Before we start, we need to create a globus compute endpoint in a HPC. Config samples can be find in endpoint_configs.
Run the following commands in target HPC to initialize the endpoint
pip install globus-compute-endpoint
globus-compute-endpoint configure {{ endpoint_name }} Diamond/endpoint_configs/{{ HPC }}/{{ config_file }}
globus-compute-endpoint start endpoint_name
Run scripts in remote hpc via diamond
login
Run
diamond-hpc get-oauth2-url-and-login
This cli will return an oauth2 url and wait for the user input, open the url in your broswer and follow the authorization process, finally you will get a token. Copy the token and input it back to the terminal, finish the authorization process
register container
- create an container build endpoint by configure and start custom-image-builder-config.yaml in the globus endpoint server
- run the following command(substitude the relevent text with your config)
diamond-hpc register-container --endpoint_id e099b614-c95e-4148-8ed9-6bd4684b92bc --work_path /work/09912/haotianxie/frontera --image_file_name
openfold --base_image gcyang/openfold:0.1
This process may take a long time.
submit task via script file
- create an container build endpoint by start endpoint in the globus endpoint server
- run the following command(substitude the relevent text with your config)
diamond-hpc run-task-from-script --cmd_script /home/hotine/work/Diamond/example/sample_task/openfold_single_node_task --endpoint_id fb1ffeec-aa63-4136-8a49-f3f24608d36f --container_id a20b806c-29a8-44b4-97b6-591434ca9365 --log_path /work/09912/haotianxie/frontera/openfold_demo_single_node.log
Metadata
Release files for diamond-hpc 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diamond_hpc-0.0.8.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| diamond_hpc-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.6 kB
Release files / diamond_hpc-0.0.8.tar.gz
| Download URL | diamond_hpc-0.0.8.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ebb6bebac4a618aec6df11a7a7b26d3d985050b4b621915969fdf5db2196845
|
|
BLAKE2b-256 checksum How to use checksums |
d439f08170d413341de985d69ca9c64ded0cae7cbcfc02b63ebc73a24dd882d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / diamond_hpc-0.0.8-py3-none-any.whl
| Download URL | diamond_hpc-0.0.8-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15151e758362eab1b29acd848453c163bd0f94d1f7fc8b3766e579250f5c1882
|
|
BLAKE2b-256 checksum How to use checksums |
b0cc8b4b5c7506d699d80a83bcb99ba7ef0d75e189d70dc26a7c726f2280195c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|