Skip to content

Commit

Permalink
appveyor CUDA support
Browse files Browse the repository at this point in the history
- install CUDA
- compile miner with CUDA and OpenCL
  • Loading branch information
psychocrypt committed Oct 28, 2017
1 parent 7ecf4ce commit c43a712
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .appveyor.yml
@@ -1,5 +1,5 @@
# image
image: Visual Studio 2017
image: Visual Studio 2015

# build platform
platform: x64
Expand All @@ -11,17 +11,18 @@ install:
- mkdir c:\xmr-stak-dep
- 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
- call "c:\xmr-stak\CI\appveyor\install_cuda.bat"

build_script:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsMSBuildCmd.bat"
- cd c:\xmr-stak
- mkdir build
- cd build
- set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc;C:\xmr-stak-dep\libmicrohttpd;C:\xmr-stak-dep\openssl;
- cmake -G "Visual Studio 15 2017 Win64" -T v140,host=x64 -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF ..
- cmake -G "Visual Studio 15 2017 Win64" -T v140,host=x64 .. -DWIN_UAC=OFF
- cmake --build . --config Release --target install

test_script:
- cd c:\xmr-stak\build\bin\Release
- dir
# - xmr-stak.exe
- xmr-stak.exe --help
11 changes: 11 additions & 0 deletions CI/appveyor/install_cuda.bat
@@ -0,0 +1,11 @@
@echo off
tree "C:\Program Files (x86)\"
echo Downloading CUDA 8
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
echo Installing CUDA 8
cuda_8.0.44_windows.exe -s compiler_8.0 cudart_8.0
set PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;%PATH%
dir "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA"
dir "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0"
dir "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin"
nvcc -V

0 comments on commit c43a712

Please sign in to comment.