-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rearchitect and Reinstate GPU #1
base: master
Are you sure you want to change the base?
Conversation
…ient() of *Compute classes
…Gradient() to handle optimise* parameters
- Ditch old texture objects and use up-to-date ones - Make texture objects managed - Ditch CUDA symbols and pass them as kernel function parameters - Extend reg_updateControlPointPosition_gpu() to handle optimise* parameters
- Rename CudaContextSingleton as CudaContext, and move it into NiftyReg namespace - Rename NiftyReg_CudaBlock100 as BlockSize, and move it into NiftyReg namespace - Move BlockSize implementation into the header - Change the type of BlockSize members as unsigned - Move BlockSize instance into CudaContext - Use unsigned instead of size_t in CUDA kernels - Initialise the CUDA or OpenCL device in Platform's constructor - Rename `unsigned int`s as `unsigned`
⚡ Code Analysis Results ⚡ 🔴 cppcheck found 122 issues! Click here to see details.niftyreg/reg-io/png/lpng1510/png.c Lines 77 to 82 in aac260c
!Line: 77 - warning: Either the condition 'png_ptr==NULL' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck]
!Line: 80 - note: Assuming that condition 'png_ptr==NULL' is not redundant
!Line: 76 - note: p is assigned '(struct png_struct_def*)png_ptr' here.
!Line: 77 - note: Null pointer dereference niftyreg/reg-io/niftilib/nifti1_io.c Lines 6347 to 6352 in aac260c
!Line: 6347 - error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc]
niftyreg/reg-io/niftilib/nifti1_io.c Lines 3220 to 3225 in aac260c
!Line: 3220 - warning: Either the condition '!test_ext' is redundant or there is possible null pointer dereference: test_ext. [nullPointerRedundantCheck]
!Line: 3224 - note: Assuming that condition '!test_ext' is not redundant
!Line: 3220 - note: Null pointer dereference niftyreg/reg-io/niftilib/nifti1_io.c Lines 3220 to 3225 in aac260c
!Line: 3220 - warning: Either the condition '!known_ext' is redundant or there is possible null pointer dereference: known_ext. [nullPointerRedundantCheck]
!Line: 3224 - note: Assuming that condition '!known_ext' is not redundant
!Line: 3220 - note: Null pointer dereference niftyreg/reg-io/niftilib/nifti1_io.c Lines 3245 to 3250 in aac260c
!Line: 3245 - warning: Either the condition '!test_ext' is redundant or there is possible null pointer dereference: test_ext. [nullPointerRedundantCheck]
!Line: 3249 - note: Assuming that condition '!test_ext' is not redundant
!Line: 3245 - note: Null pointer dereference niftyreg/reg-io/niftilib/nifti1_io.c Lines 3245 to 3250 in aac260c
!Line: 3245 - warning: Either the condition '!known_ext' is redundant or there is possible null pointer dereference: known_ext. [nullPointerRedundantCheck]
!Line: 3249 - note: Assuming that condition '!known_ext' is not redundant
!Line: 3245 - note: Null pointer dereference niftyreg/reg-io/png/lpng1510/pngread.c Lines 1104 to 1109 in aac260c
!Line: 1104 - error: Uninitialized variable: tmp_jmp [uninitvar]
niftyreg/reg-io/png/lpng1510/pngwrite.c Lines 1017 to 1022 in aac260c
!Line: 1017 - error: Uninitialized variable: tmp_jmp [uninitvar]
niftyreg/reg-io/png/reg_png.cpp Lines 131 to 136 in aac260c
!Line: 131 - error: Memory is allocated but not initialized: row_pointers [uninitdata]
!Line: 657 - error: #error Please tell me what is the equivalent of __attribute__((aligned(n))) for your compiler [preprocessorErrorDirective]
niftyreg/reg-lib/cpu/_reg_localTrans.cpp Lines 1821 to 1826 in aac260c
!Line: 1821 - warning: Either the condition 'splineControlPoint->data!=nullptr' is redundant or there is possible null pointer dereference: gridPtrX. [nullPointerRedundantCheck]
!Line: 1822 - note: Assuming that condition 'splineControlPoint->data!=nullptr' is not redundant
!Line: 1820 - note: gridPtrX is assigned 'static_cast<float*>(splineControlPoint->data)' here.
!Line: 1821 - note: Null pointer dereference niftyreg/reg-lib/cpu/_reg_localTrans.cpp Lines 1728 to 1733 in aac260c
!Line: 1728 - warning: Either the condition 'splineControlPoint->data!=nullptr' is redundant or there is possible null pointer dereference: gridPtrX. [nullPointerRedundantCheck]
!Line: 1729 - note: Assuming that condition 'splineControlPoint->data!=nullptr' is not redundant
!Line: 1727 - note: gridPtrX is assigned 'static_cast<float*>(splineControlPoint->data)' here.
!Line: 1728 - note: Null pointer dereference niftyreg/reg-lib/cpu/_reg_localTrans.cpp Lines 1112 to 1117 in aac260c
!Line: 1112 - style: Same expression 'gridVoxelSpacing[0]==5.' found multiple times in chain of '&&' operators. [duplicateExpression]
niftyreg/reg-lib/cpu/_reg_localTrans.cpp Lines 3756 to 3761 in aac260c
!Line: 3756 - error: Memory is allocated but not initialized: jacImg1[i].m[0][0] [uninitdata]
niftyreg/reg-lib/cpu/_reg_localTrans.cpp Lines 3782 to 3787 in aac260c
!Line: 3782 - error: Memory is allocated but not initialized: jacImg1[i].m[0][0] [uninitdata]
niftyreg/reg-lib/cpu/_reg_localTrans.cpp Lines 3752 to 3757 in aac260c
!Line: 3752 - error: Memory is allocated but not initialized: jacImg2[i].m[0][0] [uninitdata]
niftyreg/reg-lib/cpu/_reg_localTrans.cpp Lines 3779 to 3784 in aac260c
!Line: 3779 - error: Memory is allocated but not initialized: jacImg2[i].m[0][0] [uninitdata]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::referenceImage' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::referenceMask' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::warpedImage' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::warpedGradient' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::voxelBasedGradient' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::localWeightSim' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::isSymmetric' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::floatingImage' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::floatingMask' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::warpedImageBw' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::warpedGradientBw' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::voxelBasedGradientBw' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_measure.h Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_measure::referenceTimePoints' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_nmi.cpp Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_nmi::totalBinNumber' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 111 to 116 in aac260c
!Line: 111 - warning: Member variable 'SafeArray::data' is not assigned a value in 'SafeArray::operator='. [operatorEqVarError]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 112 to 117 in aac260c
!Line: 112 - warning: Member variable 'SafeArray::data' is not initialized in the copy constructor. [uninitMemberVarPrivate]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 211 to 216 in aac260c
!Line: 211 - warning: Member variable 'reg_multichannel_nmi::referenceBinNumber' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 211 to 216 in aac260c
!Line: 211 - warning: Member variable 'reg_multichannel_nmi::floatingBinNumber' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 211 to 216 in aac260c
!Line: 211 - warning: Member variable 'reg_multichannel_nmi::totalBinNumber' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 211 to 216 in aac260c
!Line: 211 - warning: Member variable 'reg_multichannel_nmi::jointHistogramProp' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 211 to 216 in aac260c
!Line: 211 - warning: Member variable 'reg_multichannel_nmi::jointHistogramLog' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 211 to 216 in aac260c
!Line: 211 - warning: Member variable 'reg_multichannel_nmi::entropyValues' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 211 to 216 in aac260c
!Line: 211 - warning: Member variable 'reg_multichannel_nmi::jointHistogramPropBw' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 211 to 216 in aac260c
!Line: 211 - warning: Member variable 'reg_multichannel_nmi::jointHistogramLogBw' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_nmi.h Lines 211 to 216 in aac260c
!Line: 211 - warning: Member variable 'reg_multichannel_nmi::entropyValuesBw' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_dti.cpp Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_dti::dtIndicies' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_dti.cpp Lines 16 to 21 in aac260c
!Line: 16 - warning: Member variable 'reg_dti::currentValue' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_mind.cpp Lines 285 to 290 in aac260c
!Line: 285 - warning: Member variable 'reg_mind::descriptorNumber' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_blockMatching.h Lines 60 to 65 in aac260c
!Line: 60 - warning: Member variable '_reg_blockMatchingParam::blockNumber' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cpu/_reg_blockMatching.h Lines 60 to 65 in aac260c
!Line: 60 - warning: Member variable '_reg_blockMatchingParam::definedActiveBlockNumber' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/AladinContent.cpp Lines 19 to 24 in aac260c
!Line: 19 - warning: Class 'AladinContent' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor]
niftyreg/reg-lib/AladinContent.cpp Lines 19 to 24 in aac260c
!Line: 19 - warning: Class 'AladinContent' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq]
niftyreg/reg-lib/Optimiser.cpp Lines 179 to 184 in aac260c
!Line: 179 - warning: Member variable 'ConjugateGradient < float >::firstCall' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/Optimiser.cpp Lines 179 to 184 in aac260c
!Line: 179 - warning: Member variable 'ConjugateGradient < double >::firstCall' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/AffineDeformationFieldKernel.h Lines 7 to 12 in aac260c
!Line: 7 - warning: The class 'AffineDeformationFieldKernel' defines member function with name 'GetName' also defined in its parent class 'Kernel'. [duplInheritedMember]
!Line: 11 - note: Parent function 'Kernel::GetName'
!Line: 7 - note: Derived function 'AffineDeformationFieldKernel::GetName' niftyreg/reg-lib/ConvolutionKernel.h Lines 8 to 13 in aac260c
!Line: 8 - warning: The class 'ConvolutionKernel' defines member function with name 'GetName' also defined in its parent class 'Kernel'. [duplInheritedMember]
!Line: 11 - note: Parent function 'Kernel::GetName'
!Line: 8 - note: Derived function 'ConvolutionKernel::GetName' niftyreg/reg-lib/BlockMatchingKernel.h Lines 7 to 12 in aac260c
!Line: 7 - warning: The class 'BlockMatchingKernel' defines member function with name 'GetName' also defined in its parent class 'Kernel'. [duplInheritedMember]
!Line: 11 - note: Parent function 'Kernel::GetName'
!Line: 7 - note: Derived function 'BlockMatchingKernel::GetName' niftyreg/reg-lib/ResampleImageKernel.h Lines 8 to 13 in aac260c
!Line: 8 - warning: The class 'ResampleImageKernel' defines member function with name 'GetName' also defined in its parent class 'Kernel'. [duplInheritedMember]
!Line: 11 - note: Parent function 'Kernel::GetName'
!Line: 8 - note: Derived function 'ResampleImageKernel::GetName' Lines 7 to 12 in aac260c
!Line: 7 - warning: The class 'LtsKernel' defines member function with name 'GetName' also defined in its parent class 'Kernel'. [duplInheritedMember]
!Line: 11 - note: Parent function 'Kernel::GetName'
!Line: 7 - note: Derived function 'LtsKernel::GetName' niftyreg/reg-lib/_reg_aladin.cpp Lines 5 to 10 in aac260c
!Line: 5 - warning: Member variable 'reg_aladin < float >::captureRangeVox' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/_reg_aladin.cpp Lines 282 to 287 in aac260c
!Line: 282 - error: Uninitialized variable: floCOM [legacyUninitvar]
niftyreg/reg-lib/_reg_aladin_sym.cpp Lines 111 to 116 in aac260c
!Line: 111 - error: Uninitialized variable: floCOG [legacyUninitvar]
niftyreg/reg-lib/_reg_base.cpp Lines 17 to 22 in aac260c
!Line: 17 - warning: Member variable 'reg_base < float >::bestWMeasure' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/_reg_base.cpp Lines 17 to 22 in aac260c
!Line: 17 - warning: Member variable 'reg_base < float >::currentWMeasure' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/_reg_base.cpp Lines 17 to 22 in aac260c
!Line: 17 - warning: Member variable 'reg_base < float >::currentWLand' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/_reg_base.cpp Lines 17 to 22 in aac260c
!Line: 17 - warning: Member variable 'reg_base < float >::bestWLand' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/_reg_base.cpp Lines 17 to 22 in aac260c
!Line: 17 - warning: Member variable 'reg_base < float >::funcProgressCallback' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/_reg_base.cpp Lines 17 to 22 in aac260c
!Line: 17 - warning: Member variable 'reg_base < float >::paramsProgressCallback' is not initialized in the constructor. [uninitMemberVar]
Lines 144 to 149 in aac260c
!Line: 144 - style: Virtual function 'SetPlatformType' is called from constructor 'reg_base < float >(int refTimePoints,int floTimePoints)' at line 18. Dynamic binding is not used. [virtualCallInConstructor]
!Line: 18 - note: Calling SetPlatformType
!Line: 144 - note: SetPlatformType is a virtual function Lines 18 to 23 in aac260c
!Line: 18 - warning: Member variable 'reg_f3d < float >::currentWJac' is not initialized in the constructor. [uninitMemberVar]
Lines 18 to 23 in aac260c
!Line: 18 - warning: Member variable 'reg_f3d < float >::currentWBE' is not initialized in the constructor. [uninitMemberVar]
Lines 18 to 23 in aac260c
!Line: 18 - warning: Member variable 'reg_f3d < float >::currentWLE' is not initialized in the constructor. [uninitMemberVar]
Lines 18 to 23 in aac260c
!Line: 18 - warning: Member variable 'reg_f3d < float >::bestWJac' is not initialized in the constructor. [uninitMemberVar]
Lines 18 to 23 in aac260c
!Line: 18 - warning: Member variable 'reg_f3d < float >::bestWBE' is not initialized in the constructor. [uninitMemberVar]
Lines 18 to 23 in aac260c
!Line: 18 - warning: Member variable 'reg_f3d < float >::bestWLE' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cl/ClContextSingleton.cpp Lines 16 to 21 in aac260c
!Line: 16 - warning: Obsolete function 'alloca' called. [allocaCalled]
niftyreg/reg-lib/cl/ClContextSingleton.cpp Lines 57 to 62 in aac260c
!Line: 57 - warning: Obsolete function 'alloca' called. [allocaCalled]
niftyreg/reg-lib/cl/ClContextSingleton.cpp Lines 78 to 83 in aac260c
!Line: 78 - warning: Obsolete function 'alloca' called. [allocaCalled]
niftyreg/reg-lib/cl/ClContextSingleton.cpp Lines 86 to 91 in aac260c
!Line: 86 - warning: Obsolete function 'alloca' called. [allocaCalled]
niftyreg/reg-lib/cl/ClContextSingleton.cpp Lines 93 to 98 in aac260c
!Line: 93 - warning: Obsolete function 'alloca' called. [allocaCalled]
niftyreg/reg-lib/cl/ClContextSingleton.cpp Lines 113 to 118 in aac260c
!Line: 113 - warning: Obsolete function 'alloca' called. [allocaCalled]
niftyreg/reg-lib/cl/ClContextSingleton.cpp Lines 124 to 129 in aac260c
!Line: 124 - warning: Obsolete function 'alloca' called. [allocaCalled]
niftyreg/reg-lib/cl/ClContextSingleton.cpp Lines 131 to 136 in aac260c
!Line: 131 - warning: Obsolete function 'alloca' called. [allocaCalled]
niftyreg/reg-lib/cl/ClAladinContent.cpp Lines 5 to 10 in aac260c
!Line: 5 - warning: Member variable 'ClAladinContent::referenceDims' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cl/ClAladinContent.cpp Lines 5 to 10 in aac260c
!Line: 5 - warning: Member variable 'ClAladinContent::floatingDims' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cl/ClAladinContent.cpp Lines 5 to 10 in aac260c
!Line: 5 - warning: Member variable 'ClAladinContent::nVoxels' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cl/ClAladinContent.cpp Lines 157 to 162 in aac260c
!Line: 157 - warning: Either the condition 'warped!=nullptr' is redundant or there is possible null pointer dereference: warped. [nullPointerRedundantCheck]
!Line: 154 - note: Assuming that condition 'warped!=nullptr' is not redundant
!Line: 157 - note: Null pointer dereference niftyreg/reg-lib/cl/ClAffineDeformationFieldKernel.cpp Lines 70 to 75 in aac260c
!Line: 70 - warning: Obsolete function 'alloca' called. [allocaCalled]
niftyreg/reg-lib/cl/InfoDevice.h Lines 29 to 34 in aac260c
!Line: 29 - warning: Obsolete function 'alloca' called. [allocaCalled]
niftyreg/reg-apps/reg_average.cpp Lines 231 to 236 in aac260c
!Line: 231 - warning: Uninitialized variable: average_matrix [uninitvar]
!Line: 135 - note: Assuming condition is false
!Line: 231 - note: Uninitialized variable: average_matrix niftyreg/reg-apps/reg_transform.cpp Lines 374 to 379 in aac260c
!Line: 374 - warning: Possible null pointer dereference: inputTransformationImage [nullPointer]
!Line: 324 - note: Assignment 'inputTransformationImage=nullptr', assigned value is 0
!Line: 327 - note: Assuming condition is false
!Line: 374 - note: Null pointer dereference niftyreg/reg-apps/reg_transform.cpp Lines 541 to 546 in aac260c
!Line: 541 - warning: Either the condition 'outputTransformationImage!=nullptr' is redundant or there is possible null pointer dereference: outputTransformationImage. [nullPointerRedundantCheck]
!Line: 560 - note: Assuming that condition 'outputTransformationImage!=nullptr' is not redundant
!Line: 541 - note: Null pointer dereference niftyreg/reg-apps/reg_transform.cpp Lines 924 to 929 in aac260c
!Line: 924 - warning: Possible null pointer dereference: inputTransformationImage [nullPointer]
!Line: 874 - note: Assignment 'inputTransformationImage=nullptr', assigned value is 0
!Line: 877 - note: Assuming condition is false
!Line: 924 - note: Null pointer dereference niftyreg/reg-lib/cl/blockMatchingKernel.cl Lines 139 to 144 in aac260c
!Line: 139 - error: Signed integer overflow for expression 'y*4'. [integerOverflow]
!Line: 138 - note: Assignment 'y=-1', assigned value is -1
!Line: 139 - note: Integer overflow niftyreg/reg-lib/cl/blockMatchingKernel.cl Lines 141 to 146 in aac260c
!Line: 141 - error: Signed integer overflow for expression 'x*4'. [integerOverflow]
!Line: 140 - note: Assignment 'x=-1', assigned value is -1
!Line: 141 - note: Integer overflow niftyreg/reg-lib/cl/blockMatchingKernel.cl Lines 295 to 300 in aac260c
!Line: 295 - error: Signed integer overflow for expression 'n*4'. [integerOverflow]
!Line: 294 - note: Assignment 'n=-1', assigned value is -1
!Line: 295 - note: Integer overflow niftyreg/reg-lib/cl/blockMatchingKernel.cl Lines 297 to 302 in aac260c
!Line: 297 - error: Signed integer overflow for expression 'm*4'. [integerOverflow]
!Line: 296 - note: Assignment 'm=-1', assigned value is -1
!Line: 297 - note: Integer overflow niftyreg/reg-lib/cl/blockMatchingKernel.cl Lines 299 to 304 in aac260c
!Line: 299 - error: Signed integer overflow for expression 'l*4'. [integerOverflow]
!Line: 298 - note: Assignment 'l=-1', assigned value is -1
!Line: 299 - note: Integer overflow niftyreg/reg-lib/cl/resampleKernel.cl Lines 86 to 91 in aac260c
!Line: 86 - error: Array index out of bounds; 'basis' buffer size is 8 and it is accessed at offset 8. [ctuArrayIndex]
!Line: 255 - note: Calling function interpLinearKernel, 2nd argument is uninitialized
!Line: 86 - note: Using argument basis niftyreg/reg-lib/cuda/optimizeKernel.cu Lines 50 to 55 in aac260c
!Line: 50 - error: Shifting by a negative value is undefined behaviour [shiftNegative]
niftyreg/reg-lib/cuda/optimizeKernel.cu Lines 294 to 299 in aac260c
!Line: 294 - error: Shifting 32-bit value by 512 bits is undefined behaviour [shiftTooManyBits]
niftyreg/reg-lib/cuda/optimizeKernel.cu Lines 326 to 331 in aac260c
!Line: 326 - error: Shifting 32-bit value by 512 bits is undefined behaviour [shiftTooManyBits]
niftyreg/reg-lib/cuda/optimizeKernel.cu Lines 348 to 353 in aac260c
!Line: 348 - error: Shifting 32-bit value by 512 bits is undefined behaviour [shiftTooManyBits]
niftyreg/reg-lib/cuda/optimizeKernel.cu Lines 387 to 392 in aac260c
!Line: 387 - error: Shifting 32-bit value by 512 bits is undefined behaviour [shiftTooManyBits]
niftyreg/reg-lib/cuda/CudaToolsKernels.cu Lines 79 to 84 in aac260c
!Line: 79 - error: Uninitialized variable: realGradient.w [uninitvar]
niftyreg/reg-lib/cuda/CudaToolsKernels.cu Lines 79 to 84 in aac260c
!Line: 79 - error: Uninitialized struct member: realGradient.w [uninitStructMember]
niftyreg/reg-lib/cuda/CudaTools.cu Lines 406 to 410 in aac260c
!Line: 406 - error: Uninitialized variable: setGradientToZero [legacyUninitvar]
niftyreg/reg-lib/cuda/CudaCompute.cu Lines 126 to 131 in aac260c
!Line: 126 - warning: Unused variable value 'scale' [constStatement]
niftyreg/reg-lib/cuda/blockMatchingKernel.cu Lines 126 to 131 in aac260c
!Line: 126 - error: Signed integer overflow for expression 'y*4'. [integerOverflow]
!Line: 125 - note: Assignment 'y=-1', assigned value is -1
!Line: 126 - note: Integer overflow niftyreg/reg-lib/cuda/blockMatchingKernel.cu Lines 128 to 133 in aac260c
!Line: 128 - error: Signed integer overflow for expression 'x*4'. [integerOverflow]
!Line: 127 - note: Assignment 'x=-1', assigned value is -1
!Line: 128 - note: Integer overflow niftyreg/reg-lib/cuda/blockMatchingKernel.cu Lines 236 to 241 in aac260c
!Line: 236 - error: Signed integer overflow for expression 'z*4'. [integerOverflow]
!Line: 235 - note: Assignment 'z=-1', assigned value is -1
!Line: 236 - note: Integer overflow niftyreg/reg-lib/cuda/blockMatchingKernel.cu Lines 238 to 243 in aac260c
!Line: 238 - error: Signed integer overflow for expression 'y*4'. [integerOverflow]
!Line: 237 - note: Assignment 'y=-1', assigned value is -1
!Line: 238 - note: Integer overflow niftyreg/reg-lib/cuda/blockMatchingKernel.cu Lines 240 to 245 in aac260c
!Line: 240 - error: Signed integer overflow for expression 'x*4'. [integerOverflow]
!Line: 239 - note: Assignment 'x=-1', assigned value is -1
!Line: 240 - note: Integer overflow niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::referenceImageCuda' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::floatingImageCuda' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::referenceMaskCuda' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::activeVoxelNumber' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::warpedImageCuda' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::warpedGradientCuda' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::voxelBasedGradientCuda' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::localWeightSimCuda' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::floatingMaskCuda' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::warpedImageBwCuda' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::warpedGradientBwCuda' is not initialized in the constructor. [uninitMemberVar]
niftyreg/reg-lib/cuda/_reg_measure_gpu.h Lines 20 to 25 in aac260c
!Line: 20 - warning: Member variable 'reg_measure_gpu::voxelBasedGradientBwCuda' is not initialized in the constructor. [uninitMemberVar]
|
No description provided.