arrayfire / arrayfire/arrayfire

No AF_ERR_NO_MEM error when afopencl array creation fails

Open
#2,650 3 comments 0 reactions 1 assignee Claimed by @umar456 View on GitHub
bug OpenCL
Dominant language
C++
Stars
4.9k
Forks
555
Avg merge
1h 24m
Merged PRs (30d)
1

Description

Hello
Not a high priority but for some reasons AFOpenCL does not throw a AF_ERR_NO_MEM exception when allocation via OpenCL fails :

backend ArrayFire v3.7.0 (OpenCL, 64-bit Linux, build 929a641)
[0] INTEL: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 15925 MB

fatal error: af::exception: ArrayFire Exception (Internal error:998):
OpenCL Error (-61): Invalid Buffer Size when calling clCreateBuffer
In function void {anonymous}::initEmptyArray(void**, af::dtype, dim_t, dim_t, dim_t, dim_t)
In file src/api/cpp/array.cpp:105

Steps to repro: just try to create {1000000000, 1000000000} dense array with afopencl.
Expected behavior: AF_ERR_NO_MEM exception

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.