Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

VTune integration - #814

Open
1e-to wants to merge 4 commits into
IntelPython:masterfrom
1e-to:vtune_i
Open

VTune integration#814
1e-to wants to merge 4 commits into
IntelPython:masterfrom
1e-to:vtune_i

Conversation

@1e-to

Copy link
Copy Markdown
Contributor

No description provided.

@Hardcode84

Copy link
Copy Markdown
Contributor

Native part is not included?

Comment threadvtune_integration.py Outdated
ll.add_symbol('__itt_task_begin_new', itt.__itt_task_begin)
ll.add_symbol('__itt_task_end_new', itt.__itt_task_end)

def vtune_profiling_boxing(name_handle):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why do we need this?

Comment threadvtune_integration.py Outdated
@@ -0,0 +1,40 @@
import ctypes

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's rename file somehow. Probably, simlpy vtune.py

handle = vt.ctypes_string_handle_create(b"Head\0")

functype_task_begin = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p)
ctypes_task_begin = functype_task_begin(itt.__itt_task_begin)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I believe it should be done in vtune.py, not here. And here just import these functions

@pep8speaks

pep8speaks commented Apr 22, 2020

Copy link
Copy Markdown

Hello @1e-to! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-04-22 16:23:37 UTC



@sdc_overload_method(SeriesType, 'head')
@vtune_profiling_overload(name_handle="Series_head")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It should be part of sdc_overload_method decorator. We can extract type name and method name from where.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You actually could call this decorator inside sdc_overload_method

@AlexanderKalistratov

Copy link
Copy Markdown
Collaborator

Great progress actually!

@kozlov-alexeykozlov-alexey added this to the gold milestone Feb 24, 2021

@PokhodenkoSAPokhodenkoSA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Very old PR. It is better to close it.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@1e-to@Hardcode84@pep8speaks@AlexanderKalistratov@PokhodenkoSA@kozlov-alexey