/*************************************************************************** Copyright (c) 2022-2023, Advanced Micro Devices, Inc. All rights reserved. ***************************************************************************/ #include "Jacobi.hpp" // AU_i,j = (-U_i+1,j + 2U_i,j - U_i-1,j)/dx^2 + // (-U_i,j+1 + 2U_i,j - U_i,j-1)/dy^2 __global__ void LocalLaplacianKernel(const int localNx, const int localNy, const int stride, const dfloat dx, const dfloat dy, const dfloat *__restrict__ U, dfloat *__restrict__ AU) { const int i = threadIdx.x+blockIdx.x*blockDim.x; const int j = threadIdx.y+blockIdx.y*blockDim.y; if ((i