Skip to content

Commit

Permalink
update static slm sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikvn committed May 17, 2024
1 parent e1c5d71 commit 6509465
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dpcpp/solver/batch_bicgstab_kernels.dp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ class kernel_caller {
static_cast<int>(max_group_size));

// reserve 5 for intermediate rho-s, norms,
// alpha, omega, temp and for reduce_over_group
// alpha, omega, temp
// If the value available is negative, then set it to 0
const int static_var_mem =
(group_size + 5) * sizeof(ValueType) + 2 * sizeof(real_type);
5 * sizeof(ValueType) + 2 * sizeof(real_type);
int shmem_per_blk = std::max(
static_cast<int>(
device.get_info<sycl::info::device::local_mem_size>()) -
Expand Down
4 changes: 2 additions & 2 deletions dpcpp/solver/batch_cg_kernels.dp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ class kernel_caller {
static_cast<int>(max_group_size));

// reserve 3 for intermediate rho,
// alpha, reduce_over_group, and two norms
// alpha and two norms
// If the value available is negative, then set it to 0
const int static_var_mem =
(group_size + 3) * sizeof(ValueType) + 2 * sizeof(real_type);
3 * sizeof(ValueType) + 2 * sizeof(real_type);
int shmem_per_blk = std::max(
static_cast<int>(
device.get_info<sycl::info::device::local_mem_size>()) -
Expand Down

0 comments on commit 6509465

Please sign in to comment.