-
Notifications
You must be signed in to change notification settings - Fork 42
enable GPU IPC tests on Windows #739
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
Conversation
6da36e1
to
da553d7
Compare
a77f891
to
78361c2
Compare
976028a
to
cfc6f31
Compare
cfc6f31
to
1140442
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.
good job in general, a few minor issues
d0aca41
to
becaa7d
Compare
b12a5d7
to
e3cfa20
Compare
e3cfa20
to
e248021
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.
Pull Request Overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.
@lplewa please re-review |
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.
Documentation and examples are missing
typedef enum umf_level_zero_memory_provider_memory_exchange_policy_t { | ||
UMF_LEVEL_ZERO_MEMORY_PROVIDER_MEMORY_EXCHANGE_POLICY_IPC = | ||
0, ///< Memory exchange policy based on IPC. Default. | ||
UMF_LEVEL_ZERO_MEMORY_PROVIDER_MEMORY_EXCHANGE_POLICY_IMPORT_EXPORT, | ||
///< Memory exchange policy based on import/export APIs. Should be used if IPC exchange policy is not supported. | ||
} umf_level_zero_memory_provider_memory_exchange_policy_t; | ||
|
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'm not a fan of this enum - can we at least mark it as experimental as it is related to experimental CTL api?
IMHO best if CTL api just work on int - and we do not have this enum at all TBH
src/provider/provider_level_zero.c
Outdated
void *ctx, umf_ctl_query_source_t source, void *arg, size_t size, | ||
umf_ctl_index_utlist_t *indexes) { | ||
/* suppress unused-parameter errors */ | ||
(void)source, (void)indexes, (void)size; |
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.
Check size if it's correct
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.
done
src/provider/provider_level_zero.c
Outdated
void *ctx, umf_ctl_query_source_t source, void *arg, size_t size, | ||
umf_ctl_index_utlist_t *indexes) { | ||
/* suppress unused-parameter errors */ | ||
(void)source, (void)indexes, (void)size; |
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.
Check size if it's correct
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.
done
10d8f53
to
8d79f8f
Compare
This PR enables GPU IPC (Inter-Process Communication) tests on Windows by implementing Windows-specific socket functionality and memory exchange mechanisms. The changes introduce a new memory exchange policy for Level Zero providers to work around IPC limitations on Windows.
Key changes: