Skip to content

Conversation

@vlad-perevezentsev
Copy link
Collaborator

This PR adds a python sycl_timer file containing the SyclTimer class and the dppy-kernel file as an example for working with this class

self.event_finish.profiling_info_start
- self.event_start.profiling_info_end
)
/ 1e9
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I would right it as

     ) * 1e-9 * self.time_scale,
)

but this a nitpick.



class SyclTimer:
def __init__(self, host_time=timeit.default_timer, time_scale=1):
Copy link
Contributor

Choose a reason for hiding this comment

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

Doc string would be desired here, with a usage example.

@oleksandr-pavlyk oleksandr-pavlyk merged commit 1320c34 into IntelPython:refactor/SyclEvent Aug 24, 2021
@vlad-perevezentsev vlad-perevezentsev deleted the sycl_timer branch June 20, 2023 10:53
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.

2 participants