-
Notifications
You must be signed in to change notification settings - Fork 175
Set gpu tpb #736
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
base: devel
Are you sure you want to change the base?
Set gpu tpb #736
Changes from all commits
c150e0b
9b8ddd1
680fdda
af1e5cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,9 +79,7 @@ int cpu_getAvailableNumThreads() { | |
| #if COMPILE_OPENMP | ||
| int n = -1; | ||
|
|
||
| #pragma omp parallel shared(n) | ||
| #pragma omp single | ||
| n = omp_get_num_threads(); | ||
| n = omp_get_max_threads(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this functionally wrong? We wish to return the number of available threads as set by the user, and which is the default adopted by our openmp pragmas. If you call
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From an EPCC colleague: Standards aren't immune to issues.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah as James indicates
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh nice, my brain hadn't even noticed the change of |
||
|
|
||
| return n; | ||
| #else | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: validate this is a factor of 32 (and is positive, etc etc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc to user: HIP warpsize is 64!