Skip to content

Use main thread to communicate with SQL database and run passed functions on worker threads.

License

Notifications You must be signed in to change notification settings

Awallace3/hrcl_jobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hierarchical Python Jobs (hrcl_jobs)

This package provides a simple way to run hierarchical jobs in Python. Leveraging a SQL or PostgreSQL database, it allows users to create MPI jobs that distribute tasks from a main thread to multiple worker threads for high-throughput computation.

Installation

pip install hrcl-jobs

NOTE if you are using macos, you might need to do the following to install with pip

brew install mpich
sudo find / -name mpicc

And then run the pip install with the path to your mpicc

env MPICC=/yourpath/mpicc pip3 install hrcl-jobs

Example Usage