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

made OMP_PER_READ_THREADS configurable and default to 1 #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wresch
Copy link

@wresch wresch commented Oct 24, 2024

This deals with the overloading observed in issue #30 where the total number of threads was the number of ptreads defined with -t times OMP_PER_READ_THREADS. In my tests, given a fixed number of CPUs, there was no difference in runtime between OMP_PER_READ_THREADS=3 and OMP_PER_READ_THREADS=1.

  • made OMP_PER_READ_THREADS a compile-time configurable with a make argument with a default to 1
  • used CPU affinity from sched.h to correctly detect the number of allocated/available CPUs in, for example, SLURM jobs rather than all CPUs available on a system
  • considered OMP threads when calculating total threads

- used CPU affinity from sched.h to correctly detect the number
  of allocated/available CPUs in, for example, SLURM jobs
- considered OMP threads when calculating total threads
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

Successfully merging this pull request may close these issues.

1 participant