Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions cscs-checks/mch/src/openacc_cuda_mpi_cppstd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ program openacc_cuda_mpi_cppstd
!$acc end host_data
!$acc end data


if(mpi_rank == 0) then

! Allocate and initialize arrays on the GPU
Expand Down Expand Up @@ -75,9 +74,9 @@ program openacc_cuda_mpi_cppstd
if (sum(f1) /= EXPECTED_CUDA_SUM) then
write (*,*) "Result : FAIL"
write (*,*) "Expected value sum(f1): ", EXPECTED_CUDA_SUM, "actual value:", sum(f1)
else if (sum(f3) /= EXPECTED_CUDA_SUM) then
else if (sum(f3) /= EXPECTED_CPP_STD_SUM) then
write (*,*) "Result : FAIL"
write (*,*) "Expected value sum(f3): ", EXPECTED_CUDA_SUM, "actual value:", sum(f3)
write (*,*) "Expected value sum(f3): ", EXPECTED_CPP_STD_SUM, "actual value:", sum(f3)
else if (data_sum(1) /= ref_val) then
write (*,*) "Result : FAIL"
write (*,*) "Expected value data_sum: ", ref_val, "actual value:", data_sum(1)
Expand All @@ -93,7 +92,6 @@ program openacc_cuda_mpi_cppstd
deallocate(f1)
deallocate(f2)
deallocate(f3)
write (*,*) "Result: OK"
end if

call MPI_Finalize(ierr);
Expand Down