deeparg-takes-too-many-threads
0
0
Entering edit mode
2 days ago
shevch2009 ▴ 20

Hello, all!

I was trying to use deeparg for raw shotgun reads, but when it goes into Vsearch it tends to take too many threads, that we are allowed to use on the server. There are no options to put number of threads directly, it's says - unrecognized argument. Because it's in conda env, I have tried to use, -

OMP_THREAD_LIMIT=20
export OMP_THREAD_LIMIT

export OMP_NUM_THREADS=20

But, it's still running with much more threads that I can use.

I would appreciate any suggestions.

Best, Alla

shotgun deeparg raw reads • 791 views
ADD COMMENT
1
Entering edit mode

Note that vsearch uses pthreads, not OpenMP, for multithreading. Therefore setting OpenMP environment variables (e.g., OMP_NUM_THREADS) will have no effect.

ADD REPLY
0
Entering edit mode

Related past thread for reference: concoct in metawrap binning module - use all available threads instead of requested , in case you know about the programs mentioned.

ADD REPLY
0
Entering edit mode

I'm not particularly familiar with Concoct, but from glancing at the code, it does appear to use OpenMP, so I would expect that setting OMP_NUM_THREADS should work to control the number of threads produced in that case.

ADD REPLY
0
Entering edit mode

If the program is not respecting limits you are setting then you may need to dive into code to see why that is happening. It may or may not be fixable. If you are like most other users, a non-programmer, then there is not much you can do but look alternatives that may work.

Obviously you are not running this under a job scheduler, since it would not allow programs to use more resources than assigned.

ADD REPLY
0
Entering edit mode

Thanks, I will look for another tools. Yes, I am running it withing a screen session.

ADD REPLY
1
Entering edit mode

I am running it withing a screen session

If you are using screen then you may need to set the variables in a different way. Try to see which of the two works for you

https://stackoverflow.com/questions/13974069/setting-environment-variables-in-screenrc
https://stackoverflow.com/questions/1318210/gnu-screen-environment-variables

ADD REPLY

Login before adding your answer.

Traffic: 2882 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6