Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

control/query thread limit #66

Closed
ereming opened this issue Jul 13, 2015 · 5 comments
Closed

control/query thread limit #66

ereming opened this issue Jul 13, 2015 · 5 comments

Comments

@ereming
Copy link

ereming commented Jul 13, 2015

Hi, apologies if this is already addressed elsewhere. I'm running phy/kk2 on a SLURM computing cluster. I'd like to be able to know how many cores kk2 (and in the future, SpikeDetekt2) will be using so that I can make the appropriate resource request. Is that possible? Is it adjustable?

@thesamovar
Copy link
Contributor

It uses OpenMP so you can set the OMP_NUM_THREADS environment variable to whatever number of cores you like (otherwise it will by default use the maximum number available).

@rossant
Copy link
Member

rossant commented Jul 14, 2015

SpikeDetekt will use a different mechanism: you'll use IPython.parallel to set up the engines, either on the same computer, or on different computers. It should also work with cloud architectures like Spark.

@nippoo
Copy link
Contributor

nippoo commented Jul 14, 2015

Some hybrid of both will probably occur for KK2. I think the plan is to support the current shared-memory multithreading as well as distributed memory multiprocessing through IPython.parallel, but only the former is currently available.

As for the ideal optimum number of cores to use: this probably depends on the size of your dataset; we'd welcome feedback on what you've found works best for you!

@ereming
Copy link
Author

ereming commented Jul 17, 2015

This is probably my mistake, but I'm not having luck with the OMP_NUM_THREADS variable. I'm not sure if you guys are familiar with SLURM, but my script is along the lines of:

#SBATCH <params>
export OMP_NUM_THREADS=1
phy cluster-auto kwik_file.kwik

Which isn't successful in limiting phy to one thread.

@thesamovar
Copy link
Contributor

HI,

Not your fault: KK2 ignores the OMP_NUM_THREADS argument. I have fixed
this in the current master version of KK2 by adding a new parameter
num_cpus which you can set to whatever value you like.

Dan

On 17/07/2015 20:32, ereming wrote:

This is probably my mistake, but I'm not having luck with the
|OMP_NUM_THREADS| variable. I'm not sure if you guys are familiar with
SLURM, but my script is along the lines of:

|#SBATCH |
|export OMP_NUM_THREADS=1|
|phy cluster-auto kwik_file.kwik|

Which isn't successful in limiting phy to one thread.


Reply to this email directly or view it on GitHub
#66 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants