mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-20 06:08:37 +02:00
Merge pull request #532 from psychocrypt/fix-CUDA9andOSCCompile
fix cuda9.1 compile
This commit is contained in:
+5
-1
@@ -108,7 +108,11 @@ if(CUDA_ENABLE)
|
||||
endif()
|
||||
# add Volta support for CUDA >= 9.0
|
||||
if(NOT CUDA_VERSION VERSION_LESS 9.0)
|
||||
list(APPEND DEFAULT_CUDA_ARCH "70")
|
||||
# Volta GPUs are currently not supported on MACOSX
|
||||
# https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#cuda-general-known-issues
|
||||
if(NOT APPLE)
|
||||
list(APPEND DEFAULT_CUDA_ARCH "70")
|
||||
endif()
|
||||
endif()
|
||||
set(CUDA_ARCH "${DEFAULT_CUDA_ARCH}" CACHE STRING "Set GPU architecture (semicolon separated list, e.g. '-DCUDA_ARCH=20;35;60')")
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
#include <vector>
|
||||
#include <cuda.h>
|
||||
#include <cuda_runtime.h>
|
||||
#include <device_functions.hpp>
|
||||
#include <algorithm>
|
||||
#include "xmrstak/jconf.hpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user