Skip to content
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

Make profiling info optional and update tests #2533

Closed
wants to merge 1 commit into from

Conversation

RossBrunton
Copy link
Contributor

This patch turns all of the values returned by urEventGetProfilingInfo
to be optional and updates adapters to handle this by returning the
appropriate enum when it is not supported.

The tests have also been updated, to ensure that returning a counter of
"0" or values equal to the previous profiling event is no longer
considered a failure.

@github-actions github-actions bot added loader Loader related feature/bug conformance Conformance test suite issues. specification Changes or additions to the specification level-zero L0 adapter specific issues cuda CUDA adapter specific issues hip HIP adapter specific issues native-cpu Native CPU adapter specific issues labels Jan 8, 2025
@RossBrunton RossBrunton force-pushed the ross/profevent branch 3 times, most recently from e866d27 to f7b33d3 Compare January 9, 2025 12:34
@RossBrunton RossBrunton marked this pull request as ready for review January 9, 2025 15:25
@RossBrunton RossBrunton requested review from a team as code owners January 9, 2025 15:25
@RossBrunton RossBrunton marked this pull request as draft January 10, 2025 17:21
@RossBrunton RossBrunton force-pushed the ross/profevent branch 2 times, most recently from 4b9b724 to 82f65c3 Compare January 13, 2025 10:54
@RossBrunton
Copy link
Contributor Author

@oneapi-src/unified-runtime-native-cpu-write @oneapi-src/unified-runtime-hip-write @oneapi-src/unified-runtime-cuda-write @oneapi-src/unified-runtime-level-zero-write

Can I get some quick eyeballs on this? It updates the profiling info call to return UNSUPPORTED_ENUM rather than INVALID_VALUE.

@RossBrunton RossBrunton marked this pull request as ready for review January 13, 2025 16:01
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Jan 22, 2025
@RossBrunton
Copy link
Contributor Author

@oneapi-src/unified-runtime-native-cpu-write @oneapi-src/unified-runtime-hip-write @oneapi-src/unified-runtime-cuda-write @oneapi-src/unified-runtime-level-zero-write

Can I get this looked at?

Copy link
Contributor

@frasercrmck frasercrmck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CUDA/HIP LGTM

RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Jan 28, 2025
@RossBrunton
Copy link
Contributor Author

@oneapi-src/unified-runtime-native-cpu-write @oneapi-src/unified-runtime-level-zero-write

Anything blocking this?

@RossBrunton
Copy link
Contributor Author

@oneapi-src/unified-runtime-native-cpu-write @oneapi-src/unified-runtime-level-zero-write

Can I get this looked at?

RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Feb 17, 2025
This patch turns all of the values returned by urEventGetProfilingInfo
to be optional and updates adapters to handle this by returning the
appropriate enum when it is not supported.

The tests have also been updated, to ensure that returning a counter of
"0" or values equal to the previous profiling event is no longer
considered a failure.
dm-vodopyanov pushed a commit to intel/llvm that referenced this pull request Feb 20, 2025
…ional and improve its conformance test (#17067)

Migrated from oneapi-src/unified-runtime#2533

This patch turns all of the values returned by urEventGetProfilingInfo
to be optional and updates adapters to handle this by returning the
appropriate enum when it is not supported.

The tests have also been updated, to ensure that returning a counter of
"0" or values equal to the previous profiling event is no longer
considered a failure.
kbenzie pushed a commit to kbenzie/unified-runtime that referenced this pull request Feb 21, 2025
… and improve its conformance test (#17067)

Migrated from oneapi-src#2533

This patch turns all of the values returned by urEventGetProfilingInfo
to be optional and updates adapters to handle this by returning the
appropriate enum when it is not supported.

The tests have also been updated, to ensure that returning a counter of
"0" or values equal to the previous profiling event is no longer
considered a failure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conformance Conformance test suite issues. cuda CUDA adapter specific issues hip HIP adapter specific issues level-zero L0 adapter specific issues loader Loader related feature/bug native-cpu Native CPU adapter specific issues specification Changes or additions to the specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants