arrayfire / arrayfire/arrayfire
No AF_ERR_NO_MEM error when afopencl array creation fails
未關閉
bug
OpenCL
- 主要語言
- C++
- 星號
- 4.9k
- 分支
- 555
- 平均合併
- 1 小時 24 分鐘
- 30 天內合併 PR
- 1
描述
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
貢獻指南
評估
這個 Issue 還沒有評估資料。