Skip to content
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

GPU:out of memory #536

Open
superskhm opened this issue Apr 29, 2024 · 6 comments
Open

GPU:out of memory #536

superskhm opened this issue Apr 29, 2024 · 6 comments

Comments

@superskhm
Copy link

Expected Behavior

I want to reconstruct an image consisting of 1024 projections, each with a size of 2048 x 3072
TIGRE parameters

Geometry parameters
Distance from source to detector (DSD) = 627.2 mm
Distance from source to origin (DSO)= 28.0 mm

Detector parameters
Number of pixels (nDetector) = [2496 3008]
Size of each pixel (dDetector) = [0.1 0.1] mm
Total size of the detector (sDetector) = [249.6 300.8] mm

Image parameters
Number of voxels (nVoxel) = [800 800 800]
Total size of the image (sVoxel) = [3.57142857 3.57142857 3.57142857] mm
Size of each voxel (dVoxel) = [0.00446429 0.00446429 0.00446429] mm

Actual Behavior

Centre of rotation correction (COR) = 0 mm
(1024, 2496, 3008)
../Common/CUDA/TIGRE_common.cpp (7): Error pinning memory
../Common/CUDA/TIGRE_common.cpp (14): CBCT:CUDA:Atb out of memory

Code to reproduce the problem (If applicable)

proj, geo, angles = load_ZC_projections(file_path, geo, angles)
imgfdk=tigre.algorithms.fdk(proj, geo, angles, filter="hann")
tigre.plotimg(imgfdk, dim='z')

Specifications

  • MATLAB/python version:py 3.12 64bit
  • OS:win 64
  • CUDA version:11.8
@superskhm
Copy link
Author

and NVIDIA GeForce RTX 3080 Laptop GPU 16GB

@AnderBiguri
Copy link
Member

How much RAM does the laptop have (not the GPU)? Your projections are 24GB RAM, and the image about 2GB. Do you have enough CPU RAM to store this?

@superskhm
Copy link
Author

superskhm commented Apr 30, 2024

RAM :32GB.In addition, I have enabled virtual memory, and the size is automatically set by the system

@AnderBiguri
Copy link
Member

@superskhm have you compiled TIGRE to allow virtual memory? By default it does not allow it, otherwise it can not use pinned memory.

@superskhm
Copy link
Author

@AnderBiguri I compiled TIGRE using the default settings without changing the virtual memory settings of the system. In addition, where can I set up the program to use virtual memory

@AnderBiguri
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants