-
Notifications
You must be signed in to change notification settings - Fork 117
[test] Fix openacc_cuda_mpi_cppstd.F90 #897
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
Conversation
Replace deprecated cudaThreadSynchronize() with cudaDeviceSynchronize()
|
it was in fact already failing before the fix, and we try to correct but obviously we did it wrong |
| write (*,*) "Result : FAIL" | ||
| write (*,*) "Expected value sum(f1): ", EXPECTED_CUDA_SUM, "actual value:", sum(f1) | ||
| else if (sum(f3) /= EXPECTED_CPP_STD_SUM) then | ||
| else if (sum(f2) /= EXPECTED_CPP_STD_SUM) then |
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.
no it should be f3, but the error is on the right side
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.
like this:
else if (sum(f3) /= EXPECTED_CUDA_SUM) then
?
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.
Yes, basicall revertting the change from PR #888 only the file openacc_cuda_mpi_cppstd.F90 . I did that with Carlos, because the code was failling. But probably because we did too quickly and did not compile with the correct OpenACC flag. Note that you also need to adapt the
write (*,*) "Expected value sum(f3): ", EXPECTED_CUDA_SUM, "actual value:", sum(f3)
below
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.
sorry for messing this up
Co-Authored-By: Andreas Jocksch <andreas.jocksch@cscs.ch>
Co-Authored-By: Andreas Jocksch <andreas.jocksch@cscs.ch>
After merging the pull request #889, we are getting the following error:
I think that there is a mistake in the fix submitted by @cosunae: the array that should be checked for the
EXPECTED_CPP_STD_SUMisf2and notf3, since only the first one is called as argument incall_cpp_std. What do you think @lxavier?P.S.: I have replaced
cudaThreadSynchronize()withcudaDeviceSynchronize()incompute_cuda.cusince the first one is deprecated.