mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08:00
Add super basic CUDA autodetection
This commit is contained in:
4
setup.py
4
setup.py
@ -9,8 +9,8 @@ import shutil
|
||||
import sys
|
||||
import os
|
||||
|
||||
# TODO: detect CUDA
|
||||
WITH_CUDA = False
|
||||
# TODO: make this more robust
|
||||
WITH_CUDA = os.path.exists('/Developer/NVIDIA/CUDA-7.5/include') or os.path.exists('/usr/local/cuda/include')
|
||||
DEBUG = False
|
||||
|
||||
################################################################################
|
||||
|
Reference in New Issue
Block a user