Skip to content

Commit

Permalink
Merge pull request QMCPACK#4969 from ye-luo/fix-omp
Browse files Browse the repository at this point in the history
Set the number of teams as the loop bound.
  • Loading branch information
prckent authored May 4, 2024
2 parents efdf45b + 89091d6 commit 1c64105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Platforms/OMPTarget/ompBLAS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ ompBLAS_status gemv_impl(ompBLAS_handle& handle,
if (incx != 1 || incy != 1)
throw std::runtime_error("incx !=1 or incy != 1 are not implemented in ompBLAS::gemv_impl!");

PRAGMA_OFFLOAD("omp target teams distribute num_teams(n) is_device_ptr(A, x, y)")
PRAGMA_OFFLOAD("omp target teams distribute num_teams(m) is_device_ptr(A, x, y)")
for (uint32_t i = 0; i < m; i++)
{
T dot_sum(0);
Expand Down

0 comments on commit 1c64105

Please sign in to comment.