Skip to content

Conversation

@syed-ahmed
Copy link
Collaborator

An efficient atomicAdd for halfs has been added in cuda_fp16.h in CUDA 10:
__CUDA_FP16_DECL__ __half atomicAdd(__half *address, __half val);

Through this change, PyTorch will be able to utilize efficient atomicAdd when building with CUDA 10.

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.

soumith 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 Sep 26, 2018
Summary:
An efficient atomicAdd for halfs has been added in `cuda_fp16.h` in CUDA 10:
```__CUDA_FP16_DECL__ __half atomicAdd(__half *address, __half val);```

Through this change, PyTorch will be able to utilize efficient atomicAdd when building with CUDA 10.
Pull Request resolved: pytorch/pytorch#12108

Differential Revision: D10053385

Pulled By: soumith

fbshipit-source-id: 946c90691a8f6bdcf6d6e367a507ac3c9970b750
@syed-ahmed syed-ahmed deleted the cuda-10-atomic-add branch September 26, 2018 23:17
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.

4 participants