Skip to content
New issue

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

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

Already on GitHub? # to your account

spatial_autocorr uses all the cores #957

Open
GloriaLiu28 opened this issue Feb 18, 2025 · 1 comment
Open

spatial_autocorr uses all the cores #957

GloriaLiu28 opened this issue Feb 18, 2025 · 1 comment

Comments

@GloriaLiu28
Copy link

Hi,
when I run squidpy.gr.spatial_autocorr to calculate moran, it used all the 112 cores of my server, even the n_jobs were set to n_jobs=8, how to limit the number of cores it uses ? I find the old issues about occurence also talked about this. Could you please also set numba_parallell = False to squidpy.gr.spatial_autocorr function?

@maltekuehl
Copy link

For a quick fix, you should be able to set the environment variable NUMBA_NUM_THREADS.

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

No branches or pull requests

2 participants