-
Notifications
You must be signed in to change notification settings - Fork 113
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
Conversation
nrspruit
commented
Jan 11, 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.
b5ea595
to
b8f6137
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ 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. |
b8f6137
to
ff29eed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
ff29eed
to
0af43e5
Compare
0af43e5
to
aaf71cd
Compare
- 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>
aaf71cd
to
0ebaca6
Compare
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. |
[L0] Only Override max allocation limits given env
[L0] Only Override max allocation limits given env