-
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
OpenMP Test should set omp_set_num_threads to 1 #4
Comments
OpenMP 4.0 standard, Section 3.2.1 (omp_set_num_threads) says that "[t]he value of the argument passed to this routine must evaluate to a positive integer, or else the behavior of this routine is implementation defined." Thus, this is not a valid test. Does it work when the input argument is 1? mfh On 4/16/15, 2:37 PM, "mcolg" <notifications@github.commailto:notifications@github.com> wrote: When testing Kokkos with pgc++, the following test case fails: static void TearDownTestCase() PGI returns "0" from omp_get_max_threads since that is what is set. If the expected result is "1", shouldn't omp_set_num_threads be set to "1"? Reply to this email directly or view it on GitHubhttps://github.com//issues/4. |
Yeah we tested it. Doing omp_set_num_threads(1) should work. We'll fix that asap. |
I pushed a fix. Can you please test and confirm that it works for you? |
I close this for now since I believe its fixed. Please let me know if that is not true. |
Added trivial check define to Kokkos_SYCL.hpp and call from Kernel La…
* Add test for backwards compatible join() detection * Remove names of unused parameters to quiet warnings * Mark as device/inline to be right-er and maybe suppress unused function warning
- resize the DynamicView to the current test size - fix verification calculation
- resize the DynamicView to the current test size - fix verification calculation
- resize the DynamicView to the current test size - fix verification calculation
When testing Kokkos with pgc++, the following test case fails:
static void TearDownTestCase()
{
Kokkos::OpenMP::finalize();
omp_set_num_threads(0);
ASSERT_EQ( 1 , omp_get_max_threads() );
}
PGI returns "0" from omp_get_max_threads since that is what is set. If the expected result is "1", shouldn't omp_set_num_threads be set to "1"?
The text was updated successfully, but these errors were encountered: