Skip to content

Conversation

@bertmaher
Copy link
Contributor

@bertmaher bertmaher commented Aug 12, 2020

Stack from ghstack:

Differential Revision: D23078708

// TODO: eventually, codegen these calculations and make them part of the
// module.
for (size_t i = 0; i < gpu_block_extents.size(); i++) {
auto extent = dynamic_cast<const IntImm*>(gpu_block_extents[i]);
Copy link
Contributor

@nickgg nickgg Aug 12, 2020

Choose a reason for hiding this comment

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

It's almost certainly an int, but supporting more dtypes doesn't cost us much here:

if (gpu_block_extents[i]->isConstant()) {
  gpu_block_extents_v[i] = immediateAs<int>(gpu_block_extents[i]);
}

@dr-ci
Copy link

dr-ci bot commented Aug 12, 2020

💊 CI failures summary and remediations

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


None of the CI failures appear to be your fault 💚



🚧 1 fixed upstream failure:

These were probably caused by upstream breakages that were already fixed.

Please rebase on the viable/strict branch (expand for instructions)

Since your merge base is older than viable/strict, run these commands:

git fetch https://github.com/pytorch/pytorch viable/strict
git rebase FETCH_HEAD

Check out the recency history of this "viable master" tracking branch.


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 3 times.

@facebook-github-bot
Copy link
Contributor

@bertmaher merged this pull request in 1adeed2.

@facebook-github-bot facebook-github-bot deleted the gh/bertmaher/4/head branch August 16, 2020 14:16
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.

6 participants