[adapters] only export get proc table symbols in adapters #727
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.
This adds a version script to restrict visiblity of symbols in adapters. This is so that adapters don't use loader ur functions when populating proc tables...
Before:
piotrekpc :: unified-runtime/build/lib ‹adapters-ci*› » nm libur_adapter_hip.so ... 000000000011b5c0 T urGetUsmP2PExpProcAddrTable 0000000000119ee0 T urGetUSMProcAddrTable 00000000001a6c40 T urInit 0000000000185bc0 T urKernelCreate 000000000018a540 T urKernelCreateWithNativeHandle ...
After:
piotrekpc :: unified-runtime/build/lib ‹adapters-ci*› » nm libur_adapter_hip.so ... 00000000000a76b0 T urGetUsmP2PExpProcAddrTable 00000000000a5fd0 T urGetUSMProcAddrTable 0000000000132d30 t urInit 0000000000111cb0 t urKernelCreate 0000000000116630 t urKernelCreateWithNativeHandle ...