File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ if not "%cuda_compiler_version%" == "None" (
9393 set MAGMA_HOME = %LIBRARY_PREFIX%
9494 set " PATH = %CUDA_BIN_PATH% ;%PATH% "
9595 set CUDNN_INCLUDE_DIR = %LIBRARY_PREFIX% \include
96+ set " CUDA_VERSION = %cuda_compiler_version% "
9697) else (
9798 set USE_CUDA = 0
9899 @ REM MKLDNN is an Apache-2.0 licensed library for DNNs and is used
Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ elif [[ ${cuda_compiler_version} != "None" ]]; then
219219 export USE_STATIC_CUDNN=0
220220 export MAGMA_HOME=" ${PREFIX} "
221221 export USE_MAGMA=1
222+ export CUDA_VERSION=$cuda_compiler_version
222223 # turn off noisy nvcc warnings
223224 export CMAKE_CUDA_FLAGS=" -w -Xptxas -w"
224225else
Original file line number Diff line number Diff line change @@ -403,6 +403,7 @@ outputs:
403403 - python -c "import torch; assert torch.backends.cuda.is_built()" # [linux64 and (cuda_compiler_version != "None")]
404404 - python -c "import torch; assert torch.backends.cudnn.is_available()" # [linux64 and (cuda_compiler_version != "None")]
405405 - python -c "import torch; assert torch.backends.cudnn.enabled" # [linux64 and (cuda_compiler_version != "None")]
406+ - python -c "import torch; assert torch.version.cuda is not None" # [cuda_compiler_version != "None"]
406407 # At conda-forge, we target versions of OSX that are too old for MPS support
407408 # But if users install a newer version of OSX, they will have MPS support
408409 # https://github.com/conda-forge/pytorch-cpu-feedstock/pull/123#issuecomment-1186355073
You can’t perform that action at this time.
0 commit comments