Diamond is a Python package for running tasks on HPC.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
diamond_hpc-0.0.8.tar.gz
(11.3 kB
view details)
Built Distribution
File details
Details for the file diamond_hpc-0.0.8.tar.gz
.
File metadata
- Download URL: diamond_hpc-0.0.8.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ebb6bebac4a618aec6df11a7a7b26d3d985050b4b621915969fdf5db2196845 |
|
MD5 | 774dad0a8f4c75a52f80d3abfe9641f3 |
|
BLAKE2b-256 | d439f08170d413341de985d69ca9c64ded0cae7cbcfc02b63ebc73a24dd882d1 |
File details
Details for the file diamond_hpc-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: diamond_hpc-0.0.8-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15151e758362eab1b29acd848453c163bd0f94d1f7fc8b3766e579250f5c1882 |
|
MD5 | 0de0bc1c3ae59e098a0c767e4fe09c8f |
|
BLAKE2b-256 | b0cc8b4b5c7506d699d80a83bcb99ba7ef0d75e189d70dc26a7c726f2280195c |