RTKConsortium / RTK

Reconstruction Toolkit
Apache License 2.0
244 stars 144 forks source link

ITK-master/Modules/Remote/RTK/src/rtkCudaFFTProjectionsConvolutionImageFilter.cu:83: itk::ERROR: CUDA ERROR: out of memory #557

Open jxhno1 opened 1 year ago

jxhno1 commented 1 year ago

I used "CudaScatterGlareCorrectionImageFilter" to do some scatter glare correction test, but with a projection file, I met the error as title described. the projection size is 768768396, when i used a projection file which size is 768768132, it worked fine! by the way when error took place, the GPU memory was sufficent! image

SimonRit commented 1 year ago

Thanks for the report. This seems to be a very large projection file but I agree that with 25 GB GPU memory it should not be a problem. Can you please provide more information to reproduce the issue? e.g., the header of the projection file.

jxhno1 commented 1 year ago

Thank you for your reply in a short time! I can send the dicom tags here. (0002,0000) UL 188 # 1, 4 File Meta Information Group Length (0002,0001) OB 00 01 # 1, 2 File Meta Information Version (0002,0002) UI 1.2.840.10008.5.1.4.1.1.12.1 # 1, 28 Media Storage SOP Class UID (0002,0003) UI 1.2.840.123456.990001.9350005.201111281423560001.17.41 # 1, 54 Media Storage SOP Instance UID (0002,0010) UI Explicit VR Little Endian [1.2.840.10008.1.2.1] # 1, 20 Transfer Syntax UID (0002,0012) UI 1.2.840.123456.2.6 # 1, 18 Implementation Class UID (0002,0013) SH Impl Ver Name # 1, 14 Implementation Version Name (0008,0005) CS ISO_IR 192 # 1, 10 Specific Character Set (0008,0008) CS ORIGINAL\PRIMARY # 2, 16 Image Type (0008,0016) UI 1.2.840.10008.5.1.4.1.1.12.1 # 1, 28 SOP Class UID (0008,0018) UI 1.2.840.123.2.101.176156463505045.40.20230627142448829 # 1, 54 SOP Instance UID (0008,0020) DA 20230627 # 1, 8 Study Date (0008,0021) DA 20230627 # 1, 8 Series Date (0008,0023) DA 20230627 # 1, 8 Content Date (0008,002A) DT 20230627142448.829 # 1, 18 Acquisition DateTime (0008,0030) TM 140529.236 # 1, 10 Study Time (0008,0031) TM 142448.829 # 1, 10 Series Time (0008,0033) TM 142448.829 # 1, 10 Content Time (0008,0050) SH # 0, 0 Accession Number (0008,0060) CS XA # 1, 2 Modality (0008,0070) LO WeMed.Co.Ltd # 1, 12 Manufacturer (0008,0080) LO Hospital Name # 1, 14 Institution Name (0008,0090) PN # 0, 0 Referring Physician's Name (0008,1010) SH Image Acquition Station # 1, 24 Station Name (0008,1030) LO cardiac # 1, 8 Study Description (0008,103E) LO cardiac # 1, 8 Series Description (0008,1050) PN # 0, 0 Performing Physician's Name (0008,1090) LO PrecisionView II # 1, 16 Manufacturer's Model Name (0008,1110) SQ # 0, 0 Referenced Study Sequence (FFFE,E000) # 1, Undefined Item (0008,1150) UI 1.2.3.4.5.6 # 1, 12 Referenced SOP Class UID (0008,1155) UI 6.5.4.3.2.1 # 1, 12 Referenced SOP Instance UID (FFFE,E00D) # 0, 0 Item Delimitation Item (FFFE,E0DD) # 0, 0 Sequence Delimitation Item (0008,1111) SQ # 0, 0 Referenced Performed Procedure Step Sequence (FFFE,E000) # 1, Undefined Item (0008,1150) UI 1.2.840.10008.5.1.4.1.1.12.1 # 1, 28 Referenced SOP Class UID (0008,1155) UI 1.2.840.123456.390001.5640005.201111281423560001.17.44 # 1, 54 Referenced SOP Instance UID (FFFE,E00D) # 0, 0 Item Delimitation Item (FFFE,E0DD) # 0, 0 Sequence Delimitation Item (0008,2142) IS 0 # 1, 2 Start Trim (0008,2143) IS 1 # 1, 2 Stop Trim (0008,3010) UI 1.2.840.123456.2.2.2.3 # 1, 22 Irradiation Event UID (0010,0010) PN 20230627-catphan-num515 # 1, 24 Patient's Name (0010,0020) LO 20230627-140529 # 1, 16 Patient ID (0010,0021) LO # 0, 0 Issuer of Patient ID (0010,0030) DA 20230627 # 1, 8 Patient's Birth Date (0010,0040) CS M # 1, 2 Patient's Sex (0010,1020) DS # 0, 0 Patient's Size (0010,1030) DS # 0, 0 Patient's Weight (0010,4000) LT # 0, 0 Patient Comments (0012,0062) CS NO # 1, 2 Patient Identity Removed (0018,0010) LO 0 # 1, 2 Contrast/Bolus Agent (0018,0015) CS # 0, 0 Body Part Examined (0018,0040) IS 15 # 1, 2 Cine Rate (0018,0060) DS 120 # 1, 4 KVP (0018,1000) LO IV0317001 # 1, 10 Device Serial Number (0018,1020) LO V1 # 1, 2 Software Versions (0018,1030) LO left coronary # 1, 14 Protocol Name (0018,1065) DS 0\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667\66.6666666666667 # 396, 6716 Frame Time Vector (0018,1110) DS 1200 # 1, 4 Distance Source to Detector (0018,1111) DS 747 # 1, 4 Distance Source to Patient (0018,1150) IS 1985 # 1, 4 Exposure Time (0018,1151) IS 250 # 1, 4 X-Ray Tube Current (0018,1154) DS 5 # 1, 2 Average Pulse Width (0018,1155) CS SC # 1, 2 Radiation Setting (0018,115A) CS PULSED # 1, 6 Radiation Mode (0018,115E) DS 11.3184751347866 # 1, 16 Image and Fluoroscopy Area Dose Product (0018,1164) DS 0.388\0.388 # 2, 12 Imager Pixel Spacing (0018,1500) CS DYNAMIC # 1, 8 Positioner Motion (0018,1510) DS 0 # 1, 2 Positioner Primary Angle (0018,1511) DS 0 # 1, 2 Positioner Secondary Angle (0018,1520) DS -99.48-98.98-98.48-97.97-97.46-96.97-96.49-95.99-95.48-94.96-94.47-93.99-93.45-92.96-92.47-91.98-91.48-90.99-90.49-89.95-89.46-88.97-88.47-87.98-87.48-86.99-86.49-85.95-85.46-84.96-84.47-83.97-83.48-82.98-82.49-81.99-81.... # 396, 2534 Positioner Primary Angle Increment (0018,1521) DS 0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0.00\0... # 396, 1980 Positioner Secondary Angle Increment (0018,8151) DS 250000 # 1, 6 X-Ray Tube Current in 碌A (0020,000D) UI 1.2.840.123.2.101.176156463505045.10.20230627140529236 # 1, 54 Study Instance UID (0020,000E) UI 1.2.840.123.2.101.176156463505045.20.20230627142448829 # 1, 54 Series Instance UID (0020,0010) SH 20230627-140529 # 1, 16 Study ID (0020,0011) IS 1 # 1, 2 Series Number (0020,0012) IS 1 # 1, 2 Acquisition Number (0020,0013) IS 123 # 1, 4 Instance Number (0020,0020) CS A\H # 2, 4 Patient Orientation (0020,0032) DS -149.5-149.5\0.0 # 3, 18 Image Position (Patient) (0020,0060) CS # 0, 0 Laterality (0028,0002) US 1 # 1, 2 Samples per Pixel (0028,0004) CS MONOCHROME2 # 1, 12 Photometric Interpretation (0028,0008) IS 396 # 1, 4 Number of Frames (0028,0009) AT (0018,1065) # 1, 4 Frame Increment Pointer (0028,0010) US 768 # 1, 2 Rows (0028,0011) US 768 # 1, 2 Columns (0028,0030) DS 0.388\0.388 # 2, 12 Pixel Spacing (0028,0100) US 16 # 1, 2 Bits Allocated (0028,0101) US 16 # 1, 2 Bits Stored (0028,0102) US 15 # 1, 2 High Bit (0028,0103) US 0 # 1, 2 Pixel Representation (0028,1040) CS DISP # 1, 4 Pixel Intensity Relationship (0028,1050) DS 32768 # 1, 6 Window Center (0028,1051) DS 65536 # 1, 6 Window Width (0040,0244) DA 20230627 # 1, 8 Performed Procedure Step Start Date (0040,0245) TM 142448.829 # 1, 10 Performed Procedure Step Start Time (0040,0253) SH ppsDescription # 1, 14 Performed Procedure Step ID (0040,0254) LO ppsDescription # 1, 14 Performed Procedure Step Description (7FE0,0010) OW 46D1 46D1 44C5 444B 4303 41C9 4177 4048 3F1C 3F78 3E66 3D27 3B88 3B5E 3AF2 39A2 38E7 38C5 379E 371C 3649 34C7 354F 3547 33FF 32A9 326B 31C2 313E 3196 305B 2F68... # 1, 467140608 Pixel Data

jxhno1 commented 1 year ago

Do you have mail address for me? I can send the projection file to you, and this may help you a lot.

SimonRit commented 1 year ago

Yep, available here.

jxhno1 commented 1 year ago

I will send them to you, please check them when you are free,thank you!