kozyilmaz / nheqminer-macos

nheqminer for macOS with AVX and CUDA
85 stars 9 forks source link

Compiling on High Sierra 10.13.4 #32

Open kropper opened 6 years ago

kropper commented 6 years ago

All dependencies compile file, and then:

  CLONE      nheqminer
  CONFIG     nheqminer
  BUILD      nheqminer
make -C nheqminer-cpu -j 4
[ 19%] Built target cpu_xenoncat
[ 19%] Built target cpu_tromp
[100%] Built target nheqminer
make -C nheqminer-gpu -j 4
[  4%] Building NVCC (Device) object cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o
[ 13%] Built target cpu_xenoncat
nvcc fatal   : The version ('90000') of the host compiler ('Apple clang') is not supported
CMake Error at cuda_djezo_generated_equi_miner.cu.o.cmake:219 (message):
  Error generating

make[5]: *** [cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o] Error 1
make[4]: *** [cuda_djezo/CMakeFiles/cuda_djezo.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [nheqminer_build] Error 2
make[1]: *** [build] Error 1
make: *** [nheqminer_all] Error 2

What can we do? macOS is on the latest, along with Xcode, and CUDA 9.1 compatible 'Command Line Tools for Xcode 9.2' are installed.

kozyilmaz commented 6 years ago

Hi @kropper, I tried with the tools&libraries below on 10.13.4, seems to build fine. Can you try with a fresh console and checkout?

bash-3.2$ clang -v
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Found CUDA installation: /usr/local/cuda, version unknown
bash-3.2$ 
bash-3.2$ /usr/local/cuda/bin/nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Tue_Dec_19_21:36:29_CST_2017
Cuda compilation tools, release 9.1, V9.1.128
bash-3.2$ 
bash-3.2$ 
bash-3.2$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.13.4
BuildVersion:   17E199