-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add some device discovery support for non-Windows platforms #25228
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
Merged
Merged
Changes from 47 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
f5b4d8a
add apple device_discovery.cc
edgchen1 f58ea4d
log discovered devices across platforms
edgchen1 d7b598d
save work - linux CPU discovery
edgchen1 f34b674
Merge remote-tracking branch 'origin/main' into edgchen1/device_disco…
edgchen1 6101b99
support parsing hex string to int
edgchen1 a82a10c
save work - linux GPU impl
edgchen1 64e0a82
fix Linux GPU device_id
edgchen1 3bba325
Rename onnxruntime/core/platform/device_discovery.cc to device_discov…
edgchen1 0594d5a
finish renaming
edgchen1 757d27a
add TODO for vendor name
edgchen1 3481e99
Merge remote-tracking branch 'origin/main' into edgchen1/device_disco…
edgchen1 34141a1
add default impl, add todo comment for apple
edgchen1 849b365
Merge remote-tracking branch 'origin/main' into edgchen1/device_disco…
edgchen1 cc25212
clean up code for linux gpu discovery
edgchen1 04b0758
add card_idx to linux gpu metadata
edgchen1 f03f229
update OrtKeyValuePairs - add copy/move, make data members private, k…
edgchen1 c089033
save work - apple cpu discovery
edgchen1 55c3a8c
fix up cpu vendor detection
edgchen1 231d347
add check for non-zero detected vendor id
edgchen1 9e686ca
fix formatting
edgchen1 b474e4f
Merge remote-tracking branch 'origin/main' into edgchen1/device_disco…
edgchen1 c53921d
fix build error
edgchen1 48c6bb4
hardcoded apple device discovery
edgchen1 6aa11ab
fix build issue in onnxruntime_pybind_state.cc
edgchen1 537ab69
Merge remote-tracking branch 'origin/main' into edgchen1/device_disco…
edgchen1 f926cdc
enable logging before ORT logging is up
edgchen1 5b8764e
debug - dump /proc/cpuinfo file lines as they are read
edgchen1 d0f9653
make /proc/cpuinfo vendor field not mandatory, remove debug output
edgchen1 920c821
Merge remote-tracking branch 'origin/main' into edgchen1/device_disco…
edgchen1 a56c2ff
update comment
edgchen1 8ef49c2
Merge remote-tracking branch 'origin/main' into edgchen1/device_disco…
edgchen1 5b721ec
add some ARM CPU vendor detection support
edgchen1 c31e336
fix build issues
edgchen1 9ae765a
replace /proc/cpuinfo parsing with cpuinfo library usage
edgchen1 53dbbf9
try enabling vendor id check in test
edgchen1 d9a7a5a
add endif comment, remove constexpr on FindCpuVendorInfo() because st…
edgchen1 46d60a3
Merge remote-tracking branch 'origin/main' into edgchen1/device_disco…
edgchen1 8dfeb2f
Merge remote-tracking branch 'origin/main' into edgchen1/device_disco…
edgchen1 1ddd31a
disable DeviceDiscoveryTest.HasCpuDevice for WASM
edgchen1 e1e1014
debugging - dump android logs if java test fails
edgchen1 3ad0927
disable gpu device discovery via sysfs on Android. there are permissi…
edgchen1 6adf61f
format
edgchen1 100228f
use ExitStack to dump Android logs
edgchen1 b8b5db0
Merge remote-tracking branch 'origin/main' into edgchen1/device_disco…
edgchen1 1afaa3e
add get CPU device helper function, remove ANDROID handling from linu…
edgchen1 cdca7a9
remove TODO about extending hex parsing to other types. largely hypot…
edgchen1 35b3796
remove commented out test
edgchen1 30370bc
add comment about std::fum_chars not accepting 0x prefix
edgchen1 c3138a7
linux - log GPU discovery error instead of throwing exception
edgchen1 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
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.
Uh oh!
There was an error while loading. Please reload this page.