Skip to content

Commit

Permalink
Set the number of teams as the loop bound.
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo committed May 4, 2024
1 parent efdf45b commit 89091d6
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 89091d6

Please sign in to comment.