Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Add a way to tell L1 and L3/infinity cache size #3723

Open
Snektron opened this issue Jan 19, 2025 · 0 comments
Open

[Feature]: Add a way to tell L1 and L3/infinity cache size #3723

Snektron opened this issue Jan 19, 2025 · 0 comments

Comments

@Snektron
Copy link

Suggestion Description

hipDeviceProp_t and hipDeviceGetAttribute may be used to query the device's L2 cache size, but there do not seem to be any option to query L1 and L3/infinity cache size. Judging from the implementation of Device::populateOCLDeviceConstants in clr, this information is already available in HSA, but there is no way to read it from HIP:

https://github.com/ROCm/clr/blob/fe5c68d8a3494b18d0f775b62a024bfe0c2e1e00/rocclr/device/rocm/rocdevice.cpp#L1705-L1723

Would it be possible to add this?

Operating System

No response

GPU

No response

ROCm Component

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant