SCMER icon indicating copy to clipboard operation
SCMER copied to clipboard

Out Of Memory Error

Open ANWANGJHU opened this issue 1 year ago • 0 comments

Hi! I am running SCMER on a single-cell dataset with 30000+ cells and 8000 genes with the function

model = UmapL1(lasso=0.005, n_threads=16, use_gpu=True).fit(adata.X)

Below is the error I receive. I wonder is there any solution (like setting some parameters) to prevent the memory overflow issue? I will hugely appreciate any help! Thank you in advance!!!! (Remark: SCMER can be run on gpu with no issue on datasets less than 10000 cells. )

OutOfMemoryError: CUDA out of memory. Tried to allocate 14.02 GiB. GPU 0 has a total capacity of 23.99 GiB of which 0 bytes is free. Of the allocated memory 30.76 GiB is allocated by PyTorch, and 10.58 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables) Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

ANWANGJHU avatar Jul 11 '24 16:07 ANWANGJHU