You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
io/nrn_setup.cpp has the longstanding comment and code line
// temporary bug work around. If any process has multiple threads, no
// process can have a single thread. So, for now, if one thread, make two.
// Fortunately, empty threads work fine.
// Allocate NrnThread* nrn_threads of size ngroup (minimum 2)
// Note that rank with 0 dataset/cellgroup works fine
nrn_threads_create(userParams.ngroup <= 1 ? 2 : userParams.ngroup);
Is that still an issue? Is so, is the best solution is to have an empty thread on processes needing only one thread?
It does make it a bit more difficult to decide if it is necessary to use a nrn_multithread_job when a direct call to the function will do. (though I suppose userParams.ngroup is an alternative to nrn_nthread in those circumstances.)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
io/nrn_setup.cpp has the longstanding comment and code line
Is that still an issue? Is so, is the best solution is to have an empty thread on processes needing only one thread?
It does make it a bit more difficult to decide if it is necessary to use a
nrn_multithread_job
when a direct call to the function will do. (though I suppose userParams.ngroup is an alternative to nrn_nthread in those circumstances.)The text was updated successfully, but these errors were encountered: