intel / intel/compute-runtime

[GSD-11538] Way to query free memory from an openCL backend on discrete Intel GPUs

Open
#810 3 comments 1 reaction 0 assignees View on GitHub
Component: Level Zero Sysman Type: Feature Request
Dominant language
C++
Stars
1.4k
Forks
300
PR merge metrics
No merged PRs in 30d

Description

As a developer for the uxlfoundation on the [oneDAL](https://github.com/uxlfoundation/oneDAL) and [scikit-learn-intelex](https://github.com/uxlfoundation/scikit-learn-intelex/), I would like to query the free memory of an Intel GPU when a level zero driver is unavailable, but an openCL is. This would be especially important for automated testing using Intel Data Center GPU products (Intel Max 1550) when accessing the underlying shared object memory allocations are not possible simply and/or directly.

While the functionality is available in SYCL when the level Zero SysMan is available, there is no equivalent for openCL backends on intel discrete products. However, for other vendors such functionality exists: ```nvmlDeviceGetMemoryInfo``` for NVidia and ```CL_DEVICE_GLOBAL_FREE_MEMORY_AMD``` for Radeon products.

Replicated from this reddit post (could not find the related issues in the compute-runtime closed/open list): https://www.reddit.com/r/OpenCL/comments/uocbbq/comment/i8rcfhs/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

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.