arrayfire / arrayfire/arrayfire
[Question] af.lapack.qr request 7TB of RAM
Open
- Dominant language
- C++
- Stars
- 4.9k
- Forks
- 555
- Avg merge
- 1h 24m
- Merged PRs (30d)
- 1
Description
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
```
Contributor guide
Assessment
This issue has not been assessed yet.