Closed pegahtak closed 3 years ago
I believe the cores has to be set via the compute namespace in looper, rather than as a sample attribute, because it's a looper parameter.
Can you try using looper run ... --compute cores=5
, or adding this to your project config:
looper:
compute:
cores: 5
since you already have a looper section in the config it would look like this:
looper:
output_dir: "pepatac_Neutrophil/"
pipeline_interfaces: "../../project_pipeline_interface.yaml"
compute:
cores: 5
@nsheff thank you for your response. when I added
compute:
cores: 5
to my config file I get the following error:
Looper version: 1.3.0
Command: run
Traceback (most recent call last):
File "/home/ptaklifi/.local/bin/looper", line 8, in <module>
sys.exit(main())
File "/home/ptaklifi/.local/lib/python3.6/site-packages/looper/looper.py", line 742, in main
compute_kwargs = _proc_resources_spec(args)
File "/home/ptaklifi/.local/lib/python3.6/site-packages/looper/looper.py", line 653, in _proc_resources_spec
"Correct format: " + EXAMPLE_COMPUTE_SPEC_FMT)
ValueError: Could not correctly parse itemized compute specification. Correct format: k1=v1 k2=v2
but using looper run ... --compute cores=5
pipeline works correctly with specified number of cores
thank you
Looks like the correct syntax for the config file is this:
compute:
- "cores=5"
A better way to do this is to use the resources-sample.tsv
file to change this and have it adjust based on input file size.
https://github.com/databio/pepatac/blob/master/resources-sample.tsv
In your pepatac folder you should find that. that's where the 32 comes from. You must have a very large file. You can there adjust the cores for different sizes of files.
Thank you @nsheff . This works correctly .
Hello and thank you for great work! I am trying to run pipeline for my dataset with the following
config file
as you can see I tried to only use 5 cores, however the pipeline is using 32 cores.
how can I set the number of cores I want the pipeline to use ? Thank you PEPATAC_N1.log