Skip to content

Commit 838594a

Browse files
authored
Merge pull request #2491 from nawalcopty/development
Fix compilation failures after math builtin API updates (ONSAM-1948).
2 parents a03ed48 + ddf29b0 commit 838594a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DirectProgramming/C++SYCL/StructuredGrids/iso2dfd_dpcpp/src/iso2dfd.cpp

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

151151
err_file.close();
152-
norm2 = sqrt(norm2);
152+
norm2 = 1/rsqrt(norm2);
153153
if (error) printf("error (Euclidean norm): %.9e\n", norm2);
154154
return error;
155155
}

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 = 1/rsqrt(norm2);
163163
if (error) std::cout << "error (Euclidean norm): " << norm2 << "\n";
164164
return error;
165165
}

0 commit comments

Comments
 (0)