Skip to content

Commit 0823bae

Browse files
committed
iso3dfd hotfix
1 parent 9be9a70 commit 0823bae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DirectProgramming/C++SYCL/StructuredGrids/iso3dfd_dpcpp/src/iso3dfd_kernels.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ void Iso3dfdIterationSLM(sycl::nd_item<3> it, float *next, float *prev,
186186
*
187187
*/
188188
void Iso3dfdIterationGlobal(sycl::nd_item<3> it, float *next, float *prev,
189-
float *vel, const float *coeff, int nx, int nxy,
189+
multi_ptr<const float, access::address_space::global_space, (sycl::access::decorated)2> vel,
190+
const float *coeff, int nx, int nxy,
190191
int bx, int by, int z_offset, int full_end_z) {
191192
// We compute the start and the end position in the grid
192193
// for each work-item.

DirectProgramming/C++SYCL/StructuredGrids/iso3dfd_dpcpp/src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ bool WithinEpsilon(float* output, float* reference, const size_t dim_x,
159159
}
160160

161161
error_file.close();
162-
norm2 = sqrt(norm2);
162+
norm2 = std::sqrt(norm2);
163163
if (error) std::cout << "error (Euclidean norm): " << norm2 << "\n";
164164
return error;
165165
}

0 commit comments

Comments
 (0)