arrayfire icon indicating copy to clipboard operation
arrayfire copied to clipboard

[Question] af.lapack.qr request 7TB of RAM

Open cTatu opened this issue 3 years ago • 1 comments

Hello! I was trying to compute a QR decomposition on the GPU using OpenCL for a matrix like this:

shape: (1000000, 40)
dtype: float64
bytes: 320 MB

But the function af.lapack.qr returns an out_of_memory error:

RuntimeError: In function nativeAlloc
In file src/backend/opencl/memory.cpp:197
Failed to allocate device memory of size 7.64 TB

It is normal to allocate such a ridiculous amount of memory? CUPY can solve this QR with reasonable amounts of RAM

Machine info:

CPU: 2 x Intel Xeon Platinum 8160
RAM. 512 GB
GPU: NVIDIA V100

cTatu avatar Apr 20 '22 12:04 cTatu

Related to #3021

christophe-murphy avatar Jan 07 '25 19:01 christophe-murphy