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

[L0] Only Override max allocation limits given env #1245

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

nrspruit
Copy link
Contributor

  • Change the defaults from always allowing > 4GB allocations to making the user have to request > 4GB allocation support given the max allocation allowed on that system is less than 4GB.
  • This ensures performance is maintained on systems that dont handle > 4GB allocations natively and avoids breaking Ahead of Time (AOT) binaries that were built without > 4GB resource support.
  • By setting UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1 , the L0 Adapter will force the modules to be built with stateless or > 4GB support and will allow for the allocations to exceed the max single allocation size limit for that device.

@nrspruit nrspruit requested a review from a team as a code owner January 11, 2024 20:40
@codecov-commenter
Copy link

codecov-commenter commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d06ba9d) 15.80% compared to head (aaf71cd) 15.80%.
Report is 7 commits behind head on main.

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1245      +/-   ##
==========================================
- Coverage   15.80%   15.80%   -0.01%     
==========================================
  Files         223      223              
  Lines       31481    31481              
  Branches     3558     3558              
==========================================
- Hits         4977     4975       -2     
- Misses      26454    26455       +1     
- Partials       50       51       +1     

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

Copy link
Contributor

@MichalMrozek MichalMrozek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

source/adapters/level_zero/device.cpp Outdated Show resolved Hide resolved
source/adapters/level_zero/device.hpp Outdated Show resolved Hide resolved
@pbalcer pbalcer added level-zero L0 adapter specific issues v0.8.x Include in the v0.8.x release labels Jan 12, 2024
- Change the defaults from always allowing > 4GB allocations to making the user have to request > 4GB
  allocation support given the max allocation allowed on that system is less than 4GB.
- This ensures performance is maintained on systems that dont handle > 4GB allocations natively and
  avoids breaking Ahead of Time (AOT) binaries that were built without > 4GB resource support.
- By setting UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1 , the L0 Adapter
  will force the modules to be built with stateless or > 4GB support and
  will allow for the allocations to exceed the max single allocation size limit
  for that device.

Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
@nrspruit nrspruit added the ready to merge Added to PR's which are ready to merge label Jan 12, 2024
@nrspruit
Copy link
Contributor Author

Pre-merge checks have passed here: intel/llvm#12375 This change should be ready to be merged to main, then cherry-picked to 0.8.x release. @kbenzie , please merge this when able.

@kbenzie kbenzie mentioned this pull request Jan 16, 2024
8 tasks
@kbenzie kbenzie merged commit 5d58871 into oneapi-src:main Jan 17, 2024
51 checks passed
kbenzie added a commit to kbenzie/unified-runtime that referenced this pull request Jan 17, 2024
[L0] Only Override max allocation limits given env
kbenzie added a commit to kbenzie/unified-runtime that referenced this pull request Jan 22, 2024
[L0] Only Override max allocation limits given env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level-zero L0 adapter specific issues ready to merge Added to PR's which are ready to merge v0.8.x Include in the v0.8.x release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants