Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[cudnn rnn fp32 math accumulation]#16825

Closed
jjsjann123 wants to merge 3 commits into
pytorch:masterfrom
jjsjann123:cudnn_rnn_math_type
Closed

[cudnn rnn fp32 math accumulation]#16825
jjsjann123 wants to merge 3 commits into
pytorch:masterfrom
jjsjann123:cudnn_rnn_math_type

Conversation

@jjsjann123
Copy link
Copy Markdown
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
Comment thread aten/src/ATen/native/cudnn/RNN.cpp
@jjsjann123
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

@pytorchbot retest this please

@ezyang
Copy link
Copy Markdown
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
Copy Markdown
Contributor

ezyang commented Feb 13, 2019

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

Copy link
Copy Markdown
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
Copy Markdown
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
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
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#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