Skip to content

Print TE CUDA kernel#42692

Closed
bertmaher wants to merge 3 commits intogh/bertmaher/3/basefrom
gh/bertmaher/3/head
Closed

Print TE CUDA kernel#42692
bertmaher wants to merge 3 commits intogh/bertmaher/3/basefrom
gh/bertmaher/3/head

Conversation

@bertmaher
Copy link
Copy Markdown
Contributor

@bertmaher bertmaher commented Aug 6, 2020

Stack from ghstack:

Differential Revision: D22986112

[ghstack-poisoned]
@bertmaher bertmaher requested a review from apaszke as a code owner August 6, 2020 19:10
bertmaher added a commit that referenced this pull request Aug 6, 2020
ghstack-source-id: 9c50cbb
Pull Request resolved: #42692
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Aug 6, 2020
bool need_rewrite_ = false;
};

std::ostream& operator<<(
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.

I am not a fan of overloading "operator<<" for a generic data structure. I am perfectly fine if it is either static or within an anonymous namespace.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll make this static, but I'm not sure I understand the objection?

Comment thread benchmarks/fastrnns/bench.py Outdated

# XXX: Use if need to print something
# print(modeldef.forward.graph_for(*modeldef.inputs))
global print_once
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.

If I remember correctly, this function is called for different rnn_creator, so why a global "print_once"? I am perfectly fine if this flag is local to a particular training, and only once across all the training steps.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops, this is not supposed to be here :)

@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Aug 6, 2020

💊 CI failures summary and remediations

As of commit cc7d914 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

ci.pytorch.org: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 15 times.

int major, minor;
getMajorMinor(prop, major, minor);

#if DEBUG_PRINT
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do we not need this in debug logs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Seems kind of low-value to me, unless someone really wants it I was inclined to remove it for the sake of spamming the console less.

Comment thread benchmarks/fastrnns/bench.py Outdated
return end_event.time - self.time


print_once = True
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Changes to this file seem unrelated. Are they intentional?

bertmaher added a commit that referenced this pull request Aug 6, 2020
ghstack-source-id: 86935dd
Pull Request resolved: #42692
bertmaher added a commit that referenced this pull request Aug 6, 2020
ghstack-source-id: b5b079e
Pull Request resolved: #42692
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@bertmaher merged this pull request in 9525268.

@facebook-github-bot facebook-github-bot deleted the gh/bertmaher/3/head branch August 10, 2020 14:15
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary: Pull Request resolved: pytorch#42692

Test Plan: Imported from OSS

Reviewed By: mruberry

Differential Revision: D22986112

Pulled By: bertmaher

fbshipit-source-id: 52ec3389535c8b276858bef8c470a59aeba4946f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants