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

Return device total global memory for MaxAllocSize #1181

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

DuncanMcBain
Copy link
Contributor

The SYCL specifiction inherits an OpenCL query for the maximum single allocaton that can be made, and requires that at least one-quarter of the device's reported global memory size can be allocated.

CUDA doesn't really have such a limitation as far as I can tell, and will happily allocate anything up to the total size of global memory in one go. This means returning that size is a reasonable guess for MaxAllocSize.

@DuncanMcBain DuncanMcBain requested a review from a team as a code owner December 12, 2023 18:30
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (20b9a83) 0.00% compared to head (bcb682e) 15.74%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##           main    #1181       +/-   ##
=========================================
+ Coverage      0   15.74%   +15.74%     
=========================================
  Files         0      223      +223     
  Lines         0    31464    +31464     
  Branches      0     3556     +3556     
=========================================
+ Hits          0     4954     +4954     
- Misses        0    26460    +26460     
- Partials      0       50       +50     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kbenzie kbenzie added cuda CUDA adapter specific issues ready to merge Added to PR's which are ready to merge labels Apr 4, 2024
The SYCL specifiction inherits an OpenCL query for the maximum single
allocaton that can be made, and requires that at least one-quarter of
the device's reported global memory size can be allocated.

CUDA doesn't really have such a limitation as far as I can tell, and
will happily allocate anything up to the total size of global memory
in one go. This means returning that size is a reasonable guess for
MaxAllocSize.
@kbenzie kbenzie merged commit 05b5899 into oneapi-src:main Apr 10, 2024
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA adapter specific issues ready to merge Added to PR's which are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants