Skip to content

Conversation

@jjsjann123
Copy link
Collaborator

@jjsjann123 jjsjann123 commented Feb 6, 2019

Summary: setting the correct math type for cudnn rnn, which is enforced starting from cudnn 7.5+

  1. Updating persistent rnn check with input data type instead of rnn math type;
  2. Updating rnn type promotion to set correct math type for accumulation;
  3. Replace datatype check for filter descriptor from rnn.datatype to input.datatype;

Updating persistent rnn check with input data type
Updating rnn type promotion to enable set correct math type
replace datatype check for filter descriptor from rnn.datatype to input.datatype
@jjsjann123
Copy link
Collaborator Author

Ping @ngimel for visibility

…lows TensorCore to be used with fp32 accumulation;

2. add comment for disabling type promotion in cudnn 7.1.3
@jjsjann123
Copy link
Collaborator Author

@pytorchbot retest this please

@ezyang
Copy link
Contributor

ezyang commented Feb 13, 2019

I guess we're gonna need a cudnn 3.5 build soon...

@ezyang ezyang mentioned this pull request Feb 13, 2019
@ezyang
Copy link
Contributor

ezyang commented Feb 13, 2019

@ngimel let me know if you want to review this before we put it in!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Feb 15, 2019
Summary:
setting the correct math type for cudnn rnn, which is enforced starting from cudnn 7.5+

1. Updating persistent rnn check with input data type instead of rnn math type;
2. Updating rnn type promotion to set correct math type for accumulation;
3. Replace datatype check for filter descriptor from rnn.datatype to input.datatype;
Pull Request resolved: pytorch/pytorch#16825

Differential Revision: D14071190

Pulled By: ezyang

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants