No project description provided
Project description
Description
This project has utilities meant to be used in IHEP. They are site-specific and not useful for anyone outside IHEP.
Submit jobs from lists of commands
One can submit jobs to the cluster by doing:
job_run_commands -f jobs.txt -e my_env
where jobs.txt is a file with the commands to be ran, one per job, e.g.:
run_calculation -i 0
run_calculation -i 1
run_calculation -i 2
run_calculation -i 3
would run in parallel run_calculation for different arguments. The flag -e
specifies the virtual environment where this needs to be executed.
Modify memory from jobs that are held
To modify the amount of memory used by the held jobs and release them do:
jmanager -m 8000 -t 0
-t 1 will do a test run.
Job sumission
To submit arrays of jobs to HTCondor in IHEP do:
from ihep_utilities import JobSubmitter
d_job = {
'j1' : ['echo 1', 'echo 2', 'echo 3'],
'j2' : ['echo a', 'echo b', 'echo c'],
}
sbt = JobSubmitter(jobs=d_job, environment='None')
sbt.run(skip_submit=False)
Where
- The
j1,j2, etc can be replaced with the user's commands environmentis the user's conda environment where this will runskip_submitcan beTruefor dry runs.
The outputs will go to:
/publicfs/ucas/user/campoverde/Jobs/run_commands
but this can be changed with JobsSubmitter._log_root
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ihep_utilities-0.0.3.tar.gz.
File metadata
- Download URL: ihep_utilities-0.0.3.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be6d0b7cb536315581deca2a44817e188e3c82c9314d246d76f7de720a1cd8e0
|
|
| MD5 |
5aeb3e585092e14391586f11b4df7307
|
|
| BLAKE2b-256 |
991942c03bcc8da8db556b2eec9d7326dfdfb5bde3a192a526636502b41bd721
|
File details
Details for the file ihep_utilities-0.0.3-py3-none-any.whl.
File metadata
- Download URL: ihep_utilities-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
243ac7c2bf19ae122db2335d039e8fd68462f0bd5760d705545faf9ec6f47307
|
|
| MD5 |
0a768fbe49f19cc42938e9d95e7be407
|
|
| BLAKE2b-256 |
adc1a8fa7753d63a09c9308daea67474de64f3ee7cfb8fa1378f7335cafbede6
|