Skip to content
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

add cuda warning on windows #942

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ def get_version_tag(is_cuda_release: bool = True) -> str:
if not got_cuda_v6:
BUILD_CUDA_EXT = False

if sys.platform == "win32" and 'cu+' not in torch.__version__:
print("No CUDA device detected: avoid installing torch from PyPi which may not have bundle CUDA support for Windows.\nInstall via PyTorch: `https://pytorch.org/get-started/locally/`")

# if cuda compute is < 8.0, always force build since we only compile cached wheels for >= 8.0
if BUILD_CUDA_EXT and not FORCE_BUILD:
if got_cuda_between_v6_and_v8:
Expand Down
Loading