Skip to content

Documenting cuda 11.5 windows issue #1826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2022
Merged

Conversation

atalman
Copy link
Contributor

@atalman atalman commented Feb 17, 2022

Adding documentation about compiling extension with CUDA 11.5 and Windows

Example of failure: https://github.com/pytorch/pytorch/runs/4408796098?check_suite_focus=true

Note: Don't use torch/extension.h In CUDA 11.5 under windows in your C++ code:
Use aten instead of torch interface in all cuda 11.5 code under windows. It has been failing with errors, due to a bug in nvcc.
Example use:
#include <ATen/ATen.h>
at::Tensor SigmoidAlphaBlendForwardCuda(....)
Instead of:
#include <torch/extension.h> torch::Tensor SigmoidAlphaBlendForwardCuda(...)
Currently open issue for nvcc bug: #69460
Complete Workaround code example: facebookresearch/pytorch3d@cb170ac

Adding documentation about compiling extension with CUDA 11.5 and Windows

Example of failure: https://github.com/pytorch/pytorch/runs/4408796098?check_suite_focus=true

Note: Don't use torch/extension.h In CUDA 11.5 under windows in your C++ code:
Use aten instead of torch interface in all cuda 11.5 code under windows. It has been failing with errors, due to a bug in nvcc.
Example use:
>>> #include <ATen/ATen.h>
>>> at::Tensor SigmoidAlphaBlendForwardCuda(....)
Instead of:
>>> #include <torch/extension.h>
>>> torch::Tensor SigmoidAlphaBlendForwardCuda(...)
Currently open issue for nvcc bug: #69460
Complete Workaround code example: facebookresearch/pytorch3d@cb170ac
@netlify
Copy link

netlify bot commented Feb 17, 2022

✔️ Deploy Preview for pytorch-tutorials-preview ready!

🔨 Explore the source changes: 655b66a

🔍 Inspect the deploy log: https://app.netlify.com/sites/pytorch-tutorials-preview/deploys/620eb74248738b000713eda6

😎 Browse the preview: https://deploy-preview-1826--pytorch-tutorials-preview.netlify.app/advanced/cpp_extension

@brianjo brianjo merged commit bb3523f into pytorch:master Feb 18, 2022
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.

3 participants