-
Notifications
You must be signed in to change notification settings - Fork 407
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
Error out when the number of threads is modified after kokkos is initialized #104
Comments
I think the lightest overhead way to do this is put the error checking into a KokkosP tool and have it do that if s problem exists? This would mean we don't need constant queries of the runtime that may prevent optimization. Thoughts? Si Hammond From: mrtupek notifications@github.com In openmp, if the calling code changes the number of threads after initializing kokkos, we'd like the next parallel dispatch to throw an error notifying that the number of threads was changed and that this is not allowed by kokkos. Reply to this email directly or view it on GitHubhttps://github.com//issues/104. |
Do we have an estimate on what the cost for that call is? We could also have it as a debugging option in Kokkos. |
Will vary by runtime. Its not the call overhead thats the problem, its that there is an external function call in the middle of something we want optimized :-(. |
Plus, I think recompiling for this is nuts and a waste of time when we can literally set an environment variables and run the detect. |
Sure it is certainly a viable option. Might actually be a sensible way to push more debugging options into such external tools. |
Me or Nathan is gonna check the overhead for doing the test (how is the empty kernel launch rate changed). If it is negligible add the check directly in Kokkos, alternatively add a tool. |
Fixed by adding verification that thread count is unchanged when verifying that OpenMP backend is initialized. |
In openmp, if the calling code changes the number of threads after initializing kokkos, we'd like the next parallel dispatch to throw an error notifying that the number of threads was changed and that this is not allowed by kokkos.
The text was updated successfully, but these errors were encountered: