Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions HydroC/oclHydroC_2D/Src/oclInit.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ oclInitCode(const int nproc, const int mype)
if (mype == 0) fprintf(stderr, "Building a GPU version\n");
if (nproc == 1) {
devselected = oclGetGpuDev(platformselected, gpuSel);
} else {
} else {/*
if (nbgpu > 1) gpuSel = GetDevice(nbgpu);
devselected = oclGetGpuDev(platformselected, gpuSel);
if (devselected == -1) {
Expand All @@ -207,7 +207,7 @@ oclInitCode(const int nproc, const int mype)
exit(9);
#endif
}
}
*/}
fprintf(stdout, "Hydro: %03d uses GPU %d\n", mype, gpuSel);
fflush(stdout);
break;
Expand All @@ -220,10 +220,10 @@ oclInitCode(const int nproc, const int mype)
if (mype == 0) fprintf(stderr, "Building an ACC version\n");
if (nproc == 1) {
devselected = oclGetAccDev(platformselected, accSel);
} else {
} else {/*
if (nbacc > 1) accSel = GetDevice(nbacc);
devselected = oclGetAccDev(platformselected, accSel);
}
*/}
fprintf(stdout, "Hydro: %03d uses ACC %d\n", mype, accSel);
fflush(stdout);
break;
Expand Down