-
Notifications
You must be signed in to change notification settings - Fork 40
Add resident device change call #1517
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
Open
lslusarczyk
wants to merge
50
commits into
oneapi-src:main
Choose a base branch
from
lslusarczyk:memresident
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
e5d8739
Add resident device change call
lslusarczyk 8c54695
added missing doxygen documentation
lslusarczyk 064d1ac
fix documentation spelling
lslusarczyk c4a7499
applied Rafal's comments
lslusarczyk 588d1af
fixed compilation error
lslusarczyk b24574c
applied second round of Rafal's comments
lslusarczyk 5983cfa
applied Lukasz's comments
lslusarczyk 5cbbad2
one more missed Lukasz comment applied
lslusarczyk c27407a
added some tests for resident device feature
lslusarczyk 53ec753
add unittests and refactor to be backward compatible
lslusarczyk 01d74ba
moved umfMemoryProviderResidentDeviceChange down
lslusarczyk 0bc9a29
added empty line for Rafal :)
lslusarczyk d13a3ef
cmake format fixed
lslusarczyk 272bd66
Lukasz and Rafal comments applied
lslusarczyk cabd5e7
fix log test
lslusarczyk 7de5b15
removed usless ext_resident_device_change from memory_pool
lslusarczyk 32ebea7
use umfLevelZeroMemoryProviderResidentDeviceChange instead of ops
lslusarczyk 50db5c5
reverted log change as it was moved to different PR
lslusarczyk 780794c
removed accidental changes
lslusarczyk 4f75bca
fix doc
lslusarczyk 9f1c588
applied Lukasz S. comments
lslusarczyk 3f4db4f
change ze_api include due to windows compile error
lslusarczyk cf4254a
fix link in windows
lslusarczyk 7bd5c24
not using utils_log in ze_loopback
lslusarczyk dbb8298
fix includes for level_zero_mocks.cpp
lslusarczyk 58fae70
windows use _putenv_s instead of setenv
lslusarczyk 53bfcb0
TestCreatePointer fix
lslusarczyk 822f278
more windows fixes
lslusarczyk 340bfb1
windows next fix attempt
lslusarczyk fad510c
fixed sharedlib compilation
lslusarczyk 636477a
removed pkg_check_modules ZE_LOADER
lslusarczyk a6e456e
change ZE_LOADER_INCLUDE_DIRS into LEVEL_ZERO_INCLUDE_DIRS
lslusarczyk 877a36e
fix includes for umf_test_mocks and umf_ze_loopback
lslusarczyk 6b0e070
maybe UMF_UTIL_OPEN_LIBRARY_NO_LOAD was wrong?
lslusarczyk 0498da7
ze_dll or ze_api export missing?
lslusarczyk e9ccf45
dll path fix
lslusarczyk d30da26
back with UMF_UTIL_OPEN_LIBRARY_NO_LOAD?
lslusarczyk 29a706d
add_library changed to add_umf_library
lslusarczyk 5713a96
fix dllexport used more than once
lslusarczyk 134e16b
see logs in case of residency tests failure
lslusarczyk 5adb37c
utils_rwlock_init fix
lslusarczyk 058bf8d
some logs upon free and add closing library
lslusarczyk 4803c47
typo fix
lslusarczyk a3cc32e
fix LevelZeroMock::initializeMemoryProviderWithResidentDevices with P…
lslusarczyk 5b7f61a
remove not needed free logs
lslusarczyk 0bf7cbd
UBA does not accept NULL in memcpy source even with size==0
lslusarczyk e0af7eb
fix wrong type in zeMemAlloc* functions
lslusarczyk 57acba7
simplify cmake and UMF_ZE_LOADER_LIB_NAME use
lslusarczyk 56c9e9a
skip mocked tests in valgrind for now
lslusarczyk 838451c
applied Łukasz S. comments
lslusarczyk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ EXPORTS | |
umfCUDAMemoryProviderParamsSetContext | ||
umfCUDAMemoryProviderParamsSetDevice | ||
umfCUDAMemoryProviderParamsSetMemoryType | ||
umfLevelZeroMemoryProviderParamsSetResidentDevices | ||
|
||
umfDevDaxMemoryProviderOps | ||
umfDevDaxMemoryProviderParamsCreate | ||
umfDevDaxMemoryProviderParamsDestroy | ||
|
@@ -41,7 +42,6 @@ EXPORTS | |
umfLevelZeroMemoryProviderParamsSetContext | ||
umfLevelZeroMemoryProviderParamsSetDevice | ||
umfLevelZeroMemoryProviderParamsSetMemoryType | ||
umfLevelZeroMemoryProviderParamsSetResidentDevices | ||
umfMemoryProviderAlloc | ||
umfMemoryProviderAllocationMerge | ||
umfMemoryProviderAllocationSplit | ||
|
@@ -60,6 +60,7 @@ EXPORTS | |
umfMemoryProviderPurgeForce | ||
umfMemoryProviderPurgeLazy | ||
umfMemoryProviderPutIPCHandle | ||
umfMemoryProviderResidentDeviceChange | ||
lukaszstolarczuk marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
umfMempolicyCreate | ||
umfMempolicyDestroy | ||
umfMempolicySetCustomSplitPartitions | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'd rather we have two functions - add/remove.
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.
I will not apply this, please, because this will introduce too much copy-pasted code.
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.
why? can't you still have 1 private helper function, but expose 2 functions...?
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.
This is in a few layers here and in sycl, that would require having copy pasted add/remove code.