-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added dependencies on CUDAToolkit to config file change CC from native to all-major because build system has no GPU platform toolset for VS19 disable NVTX explicitly
- Loading branch information
Carsten Griwodz
committed
Jul 31, 2024
1 parent
ddbc2e5
commit 7bbad38
Showing
4 changed files
with
42 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
|
||
include(CMakeFindDependencyMacro) | ||
find_dependency(Threads REQUIRED) | ||
find_dependency(CUDAToolkit REQUIRED) | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
check_required_components("@PROJECT_NAME@") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,44 @@ | ||
@echo off | ||
echo Downloading CUDA toolkit 9 | ||
appveyor DownloadFile https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda_9.1.85_windows -FileName cuda_9.1.85_windows.exe | ||
echo Downloading CUDA toolkit 12 for Windows 10 | ||
# appveyor DownloadFile https://developer.download.nvidia.com/compute/cuda/12.5.1/network_installers/cuda_12.5.1_windows_network.exe -Filename cuda_12.5.1_windows.exe | ||
|
||
appveyor DownloadFile https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvcc/windows-x86_64/cuda_nvcc-windows-x86_64-12.5.82-archive.zip -Filename cuda_nvcc.zip | ||
appveyor DownloadFile https://developer.download.nvidia.com/compute/cuda/redist/cuda_cudart/windows-x86_64/cuda_cudart-windows-x86_64-12.5.82-archive.zip -Filename cuda_cudart.zip | ||
appveyor DownloadFile https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvtx/windows-x86_64/cuda_nvtx-windows-x86_64-12.5.82-archive.zip -Filename cuda_nvtx.zip | ||
appveyor DownloadFile https://developer.download.nvidia.com/compute/cuda/redist/visual_studio_integration/windows-x86_64/visual_studio_integration-windows-x86_64-12.5.82-archive.zip -Filename vs_integration.zip | ||
dir | ||
|
||
echo Unzipping CUDA toolkit 12 | ||
tar -xf cuda_nvcc.zip | ||
tar -xf cuda_cudart.zip | ||
tar -xf cuda_nvtx.zip | ||
tar -xf vs_integration.zip | ||
dir | ||
echo Installing CUDA toolkit 9 | ||
cuda_9.1.85_windows.exe -s nvcc_9.1 ^ | ||
cublas_9.1 ^ | ||
cublas_dev_9.1 ^ | ||
cudart_9.1 ^ | ||
curand_9.1 ^ | ||
curand_dev_9.1 | ||
|
||
echo CUDA toolkit 9 installed | ||
echo Making CUDA install dir(s) | ||
mkdir "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.5" | ||
mkdir "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.5\extras" | ||
|
||
echo Copying toolkit files to install dir(s) | ||
xcopy cuda_cudart-windows-x86_64-12.5.82-archive "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.5" /s /e /i /y | ||
xcopy cuda_nvcc-windows-x86_64-12.5.82-archive "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.5" /s /e /i /y | ||
xcopy cuda_nvtx-windows-x86_64-12.5.82-archive "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.5" /s /e /i /y | ||
xcopy visual_studio_integration-windows-x86_64-12.5.82-archive "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.5\extras" /s /e /i /y | ||
|
||
|
||
# echo Installing CUDA toolkit 12 | ||
# cuda_12.5.1_windows.exe | ||
# cuda_9.1.85_windows.exe -s nvcc_12.5 cudart_12.5 | ||
|
||
|
||
echo CUDA toolkit 12 installed | ||
|
||
dir "%ProgramFiles%" | ||
|
||
set PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v9.1\bin;%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v9.1\libnvvp;%PATH% | ||
set PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.5\bin;%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.5\libnvvp;%PATH% | ||
|
||
dir "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA" | ||
dir "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.5" | ||
dir "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v12.5\bin" | ||
|
||
nvcc -V | ||
nvcc -V |