Skip to content

Commit

Permalink
BUG: Remove debug console prints from GPU kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
9prady9 authored and hjmjohnson committed Jan 8, 2020
1 parent 5ae27e5 commit 8561ca0
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions Modules/Core/GPUCommon/include/itkGPUReduction.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ GPUReduction<TElement>::GetReductionKernel(int whichKernel, int blockSize, int i
defines << "#define T ";
GetTypenameInString(typeid(TElement), defines);

std::cout << "Defines: " << defines.str() << std::endl;

const char * GPUSource = GPUReduction::GetOpenCLSource();

// load and build program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ GPUDenseFiniteDifferenceImageFilter<TInputImage, TOutputImage, TParentImageFilte

// assumes input and output pixel type is same
defines << "#define PIXELDIM " << GetPixelDimension(typeid(typename TOutputImage::PixelType)) << "\n";
std::cout << "Defines: " << defines.str() << std::endl;

const char * GPUSource = GPUDenseFiniteDifferenceImageFilter::GetOpenCLSource();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ GPUGradientNDAnisotropicDiffusionFunction<TImage>::GPUGradientNDAnisotropicDiffu
#else
defines << "#define ARGTYPE " << pixeltypename << "\n";
#endif
std::cout << "Defines: " << defines.str() << std::endl;

const char * GPUSource = GPUGradientNDAnisotropicDiffusionFunction::GetOpenCLSource();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ GPUScalarAnisotropicDiffusionFunction<TImage>::GPUScalarAnisotropicDiffusionFunc
defines << "#define DIM_" << ImageDimension << "\n";

defines << "#define PIXELTYPE ";

GetTypenameInString(typeid(typename TImage::PixelType), defines);
std::cout << "Defines: " << defines.str() << std::endl;

const char * GPUSource = GPUScalarAnisotropicDiffusionFunction::GetOpenCLSource();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ GPUNeighborhoodOperatorImageFilter<TInputImage, TOutputImage, TOperatorValueType
defines << "#define OPTYPE ";
GetTypenameInString(typeid(TOperatorValueType), defines);

std::cout << "Defines: " << defines.str() << std::endl;

const char * GPUSource = GPUNeighborhoodOperatorImageFilter::GetOpenCLSource();

// load and build program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ GPUBinaryThresholdImageFilter<TInputImage, TOutputImage>::GPUBinaryThresholdImag
itkExceptionMacro(<< excpMsg.str().c_str());
}

std::cout << "Defines: " << defines.str() << std::endl;
const char * GPUSource = GPUBinaryThresholdImageFilter::GetOpenCLSource();

// load and build program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ GPUDemonsRegistrationFunction<TFixedImage, TMovingImage, TDisplacementField>::GP

defines << "#define OUTPIXELTYPE ";
GetTypenameInString(typeid(typename TDisplacementField::PixelType::ValueType), defines);
std::cout << "Defines: " << defines.str() << std::endl;

const char * GPUSource = GPUDemonsRegistrationFunction::GetOpenCLSource();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ GPUPDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField
defines << "#define OUTPIXELTYPE ";
GetTypenameInString(typeid(DeformationScalarType), defines);

std::cout << "Defines: " << defines.str() << std::endl;

using GPUCodeType = const char *;
GPUCodeType GPUSource = GPUPDEDeformableRegistrationFilter::GetOpenCLSource();

Expand Down

0 comments on commit 8561ca0

Please sign in to comment.