arrayfire / arrayfire/arrayfire

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

Open
#3,246 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.