Skip to content

[WIP][SYCL] update event profiling support with the new APIs. #2251

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

Closed
wants to merge 2 commits into from

Conversation

rbegam
Copy link
Contributor

@rbegam rbegam commented Aug 4, 2020

Signed-off-by: rbegam [email protected]

@rbegam rbegam requested a review from smaslov-intel as a code owner August 4, 2020 09:24
Signed-off-by: rbegam <[email protected]>
@smaslov-intel
Copy link
Contributor

tag @jandres742

Copy link
Contributor

@smaslov-intel smaslov-intel left a comment

Choose a reason for hiding this comment

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

Please add a test-case too

Event->ZeEvent, ZE_EVENT_TIMESTAMP_CONTEXT_START, &ContextStart));
ContextStart *= ZeTimerResolution;
return ReturnValue(uint64_t{ContextStart});
ze_kernel_timestamp_result_t* tsResult = nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this not allocated memory?

&ContextEnd));
ContextEnd *= ZeTimerResolution;
return ReturnValue(uint64_t{ContextEnd});
ze_kernel_timestamp_result_t* tsResult = nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be allocated, and different from the "start" memory, right?

ContextStart *= ZeTimerResolution;
return ReturnValue(uint64_t{ContextStart});
ze_kernel_timestamp_result_t* tsResult = nullptr;
ZE_CALL(zeCommandListAppendQueryKernelTimestamps(
Copy link
Contributor

Choose a reason for hiding this comment

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

The spec says https://spec.oneapi.com/level-zero/latest/core/api.html?highlight=zecommandlistappendquerykerneltimestamps#_CPPv440zeCommandListAppendQueryKernelTimestamps24ze_command_list_handle_t8uint32_tP17ze_event_handle_tPvPK6size_t17ze_event_handle_t8uint32_tP17ze_event_handle_t:

Appends a query of an events’ timestamp value(s) into a command list.

I don't see how this is going to achieve what's needed. It looks like these timestamp query should be appended around the command being profiled. Could you explain how this is working?

ContextStart *= ZeTimerResolution;
return ReturnValue(uint64_t{ContextStart});
ze_kernel_timestamp_result_t* tsResult = nullptr;
ZE_CALL(zeCommandListAppendQueryKernelTimestamps(
Copy link
Contributor

Choose a reason for hiding this comment

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

We are requesting here in the host for the timestamp after execution has completed. We need to use zeEventQueryKernelTimestamp

@bader
Copy link
Contributor

bader commented Oct 14, 2020

@rbegam, ping.

@rbegam
Copy link
Contributor Author

rbegam commented Oct 15, 2020

taking a look. it needs some following up.

@rbegam
Copy link
Contributor Author

rbegam commented Nov 24, 2020

the support has been included, closing this as a duplicate.

@rbegam rbegam closed this Nov 24, 2020
@bader
Copy link
Contributor

bader commented Nov 24, 2020

Duplicate of 6d34b95.

jsji pushed a commit that referenced this pull request Dec 7, 2023
* add support for the 'fcmp false' instruction
* fcmp false: present vector of false values as ConstantNull

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@aeeaf6c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants