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

hacc: fix bug where numThreads were different in places #70

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

Conversation

mattsinc
Copy link
Contributor

nthreads and numThreads are used in different places in HACC. However, it appears that numThreads > nthreads causes segfaults because the iq vector is accessed out of bounds. To resolve this, create a new global variable with the number of threads and use this for both numThreads and nthreads. I tested this worked with 4 threads.

Sidenote: although HACC refers to these as threads, they appear to actually be GPU streams.

@mattsinc mattsinc added the bug Something isn't working label Mar 22, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
nthreads and numThreads are used in different places in HACC.  However,
it appears that numThreads > nthreads causes segfaults because the iq
vector is accessed out of bounds.  To resolve this, create a new global
variable with the number of threads and use this for both numThreads and
nthreads.  I tested this worked with 4 threads.

Sidenote: although HACC refers to these as threads, they appear to
actually be GPU streams.
Copy link
Contributor

@powerjg powerjg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Harshil2107 can you update this binary too?

@Harshil2107
Copy link
Contributor

I will update the binary and upload it to the cloud bucket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants