Skip to content

Commit

Permalink
Merge pull request #381 from kokkos/issue-368
Browse files Browse the repository at this point in the history
Fix GEMM scratch memory size
  • Loading branch information
srajama1 committed Jan 30, 2019
2 parents 52a6ba2 + 1767da4 commit 67af7da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blas/impl/KokkosBlas3_gemm_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,9 @@ struct GEMMImpl {
void run(int team_size, int vector_length, int scr_level) {
scratch_level = scr_level;
int scratch_memory_size =
ViewTypeAScratch::required_allocation_size() +
ViewTypeBScratch::required_allocation_size() +
ViewTypeCScratch::required_allocation_size();
ViewTypeAScratch::shmem_size() +
ViewTypeBScratch::shmem_size() +
ViewTypeCScratch::shmem_size();

Kokkos::TeamPolicy<ExecSpace,Kokkos::LaunchBounds<384,2>> policy(num_blocks_0*num_blocks_1,team_size,vector_length);

Expand Down

0 comments on commit 67af7da

Please sign in to comment.