Skip to content

Commit 9a5dad8

Browse files
authored
Addressing iso3dfd_dpcpp compilation error on windows with Beta09 (oneapi-src#126)
* Initial commit for iso3dfd_dpcpp code sample Signed-off-by: Gogar, Sunny L <[email protected]> * Update License.txt * Update sample.json * Adding iso3dfd_omp_offload and changing dpc++ compile for windows to dpcpp * Delete .nfs000000043228fc3f00000140 * Removing build directory accidently checked in * Update sample.json Fixing a missing comma * Adding couple of changes as per Paul's recommendation * Updating some variable names as per guidelines * Moving iso3dfd_omp_offload to C++ folder * Fixing a windows related error about missing std:: for tranform * Adding algorithm header explicity in iso3dfd.h
1 parent 0ab7d1e commit 9a5dad8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

DirectProgramming/DPC++/StructuredGrids/iso3dfd_dpcpp/include/iso3dfd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ using namespace sycl;
1212
#include <cstring>
1313
#include <ctime>
1414
#include <fstream>
15+
#include <algorithm>
1516
/*
1617
* Parameters to define coefficients
1718
* kHalfLength: Radius of the stencil

DirectProgramming/DPC++/StructuredGrids/iso3dfd_dpcpp/src/iso3dfd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ int main(int argc, char* argv[]) {
188188
// Read optional arguments to select version and device
189189
for (auto arg = 8; arg < argc; arg++) {
190190
std::string arg_value = argv[arg];
191-
transform(arg_value.begin(), arg_value.end(), arg_value.begin(), ::tolower);
191+
std::transform(arg_value.begin(), arg_value.end(), arg_value.begin(), ::tolower);
192192

193193
if (arg_value == "omp") {
194194
omp = true;

0 commit comments

Comments
 (0)