Skip to content

Commit 6b7a87d

Browse files
committed
Test for full pipeline cleaned up
1 parent c10225d commit 6b7a87d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

test/FullPipelineCudaTest.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,6 @@ namespace {
294294
PixelData<ImageType> input_image = (d / 2 == 0) ? getRandInitializedMesh<ImageType>(dim, 13) :
295295
getMeshWithBlobInMiddle<ImageType>(dim);
296296

297-
// constexpr PixelDataDim dim = dim1;
298-
// PixelData<ImageType> input_image = getRandInitializedMesh<ImageType>(dim, 13);
299-
300297
int maxLevel = ceil(std::log2(dim.maxDimSize()));
301298

302299
// Initialize CPU data structures
@@ -326,7 +323,6 @@ namespace {
326323
GenInfo aprInfo(input_image.getDimension());
327324
GenInfo giGpu(input_image.getDimension());
328325

329-
// Calculate pipeline on CPU
330326
// Calculate pipeline on CPU
331327
timer.start_timer(">>>>>>>>>>>>>>>>> CPU PIPELINE");
332328
ComputeGradient().get_gradient(mCpuImage, grad_temp, local_scale_temp, par);
@@ -344,17 +340,13 @@ namespace {
344340

345341

346342
// Calculate pipeline on GPU
347-
GpuProcessingTask<ImageType> gpt(mGpuImage, local_scale_temp_GPU, par, 0, maxLevel);
348-
cudaDeviceSynchronize();
349-
350343
timer.start_timer(">>>>>>>>>>>>>>>>> GPU PIPELINE");
351-
// {
344+
GpuProcessingTask<ImageType> gpt(mGpuImage, local_scale_temp_GPU, par, 0, maxLevel);
352345
gpt.sendDataToGpu();
353346
gpt.processOnGpu();
354347
auto linearAccessGpu = gpt.getDataFromGpu();
355348
giGpu.total_number_particles = linearAccessGpu.y_vec.size();
356349
cudaDeviceSynchronize();
357-
// }
358350
timer.stop_timer();
359351

360352
// Compare GPU vs CPU - expect exactly same result

0 commit comments

Comments
 (0)