Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
- add nvrtc to windows libraries
- add path to cuda.so for linux
  • Loading branch information
psychocrypt committed Mar 3, 2019
1 parent 1c9ba32 commit 9aaca2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ install:
- curl -sL https://github.com/fireice-uk/xmr-stak-dep/releases/download/v1/xmr-stak-dep.zip -o xmr-stak-dep.zip
- 7z x xmr-stak-dep.zip -o"c:\xmr-stak-dep" -y > nul
- appveyor DownloadFile https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda_8.0.44_windows-exe -FileName cuda_8.0.44_windows.exe
- cuda_8.0.44_windows.exe -s compiler_8.0 cudart_8.0
- cuda_8.0.44_windows.exe -s compiler_8.0 cudart_8.0 nvrtc_8.0 nvrtc_dev_8.0
- set PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;%PATH%
- nvcc -V

Expand Down
20 changes: 3 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,8 @@ if(CUDA_ENABLE)
PATH_SUFFIXES
lib64
lib/x64
/lib/Win32)
find_path(nvvvvv
NAMES
libnvrtc
nvrtc
nvrtc.lib
HINTS
${CUDA_TOOLKIT_ROOT_DIR}
${LIBNVRTC_LIBRARY_DIR}
${CUDA_TOOLKIT_ROOT_DIR}
/usr
/usr/local/cuda
PATH_SUFFIXES
lib64
lib/x64
/lib/Win32)
lib/Win32
lib64/stubs)

#nvrtc
find_library(CUDA_NVRTC_LIB
Expand All @@ -118,7 +104,7 @@ if(CUDA_ENABLE)
PATH_SUFFIXES
lib64
lib/x64
/lib/Win32)
lib/Win32)

list(APPEND BACKEND_TYPES "nvidia")
option(XMR-STAK_LARGEGRID "Support large CUDA block count > 128" ON)
Expand Down

0 comments on commit 9aaca2e

Please sign in to comment.