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

[async] Disable profiler macros in release mode #2119

Merged
merged 1 commit into from
Dec 25, 2020

Conversation

k-ye
Copy link
Member

@k-ye k-ye commented Dec 25, 2020

Related issue = #742

It has turned out that the scoped profilers have a huge overhead. E2E time when benchmarking MGPCG at 512 resolution:

  1. Before this PR: 0.49s
  2. With this PR: 0.27s

(A slightly off the topic change is to tweak the color, the default blue are green colors are a bit hard to read with Ubuntu's purple background... That said, these stats won't be helpful now, and we should resort to the lower-overhead perf solutions like perf and vtune..)

Screenshot from 2020-12-25 21-47-31

Screenshot from 2020-12-25 21-47-17

[Click here for the format server]


Copy link
Contributor

@xumingkuan xumingkuan left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@yuanming-hu yuanming-hu merged commit 909fdf1 into taichi-dev:master Dec 25, 2020
@k-ye k-ye deleted the async-no-prof branch December 26, 2020 00:55
@k-ye k-ye mentioned this pull request Jan 5, 2021
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.

3 participants