fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.06k stars 1.79k forks source link

Not working on MacOS with GPU #935

Closed blitss closed 6 years ago

blitss commented 6 years ago

Hi,

I'm trying to make it work with Hackintosh. I've compilled everything but nothing is happening after [2018-01-20 21:44:36] : Start mining: MONERO. I tried to access web interface but it also doesn't work (timeout error). Any suggestions? Having same issue with aeon.

I tried to run with --noNVIDIA flag so cli & web interface works just fine. P.S. Also I had trouble with MEMORY ALLOC FAILED: mmap failed but "use_slow_memory" : "always", fixed that. Does it affect performance?

Basic information

I've installed all required modules using brew (from here: https://github.com/fireice-uk/xmr-stak/blob/master/doc/compile_MacOS.md).

Nvidia Web driver: image

Cuda: image

Compile issues

Brought to you by fireice_uk and psychocrypt under GPLv3. Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk). Based on NVIDIA mining code by KlausT and psychocrypt.

Configurable dev donation level is set to 2.0%

You can use following keys to display reports: 'h' - hashrate 'r' - results 'c' - connection

[2018-01-20 21:34:27] : Start mining: MONERO

# Cmake output:

Andreys-iMac:xmr-stak andrey$ cmake -LA -- Set miner currency to 'monero' and 'aeon' -- Configuring done -- Generating done -- Build files have been written to: /Users/andrey/xmr-stak -- Cache values CMAKE_AR:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ar CMAKE_BUILD_TYPE:STRING=Release CMAKE_COLOR_MAKEFILE:BOOL=ON CMAKE_CXX_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/c++ CMAKE_CXX_FLAGS:STRING= CMAKE_CXX_FLAGS_DEBUG:STRING=-g CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_C_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/cc CMAKE_C_FLAGS:STRING= CMAKE_C_FLAGS_DEBUG:STRING=-g CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_EXE_LINKER_FLAGS:STRING= CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool CMAKE_INSTALL_PREFIX:PATH=/Users/andrey/xmr-stak CMAKE_LINKER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ld CMAKE_LINK_STATIC:BOOL=OFF CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make CMAKE_MODULE_LINKER_FLAGS:STRING= CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_NM:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/nm CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND CMAKE_OBJDUMP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/objdump CMAKE_OSX_ARCHITECTURES:STRING= CMAKE_OSX_DEPLOYMENT_TARGET:STRING= CMAKE_OSX_SYSROOT:STRING= CMAKE_RANLIB:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ranlib CMAKE_SHARED_LINKER_FLAGS:STRING= CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_SKIP_INSTALL_RPATH:BOOL=NO CMAKE_SKIP_RPATH:BOOL=NO CMAKE_STATIC_LINKER_FLAGS:STRING= CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_STRIP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/strip CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE CPU_ENABLE:BOOL=ON CUDA_64_BIT_DEVICE_CODE:BOOL=ON CUDA_ARCH:STRING=30;35;37;50;52;60;61;62 CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE:BOOL=ON CUDA_BUILD_CUBIN:BOOL=OFF CUDA_BUILD_EMULATION:BOOL=OFF CUDA_COMPILER:STRING=nvcc CUDA_CUDART_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcudart.dylib CUDA_CUDA_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcuda.dylib CUDA_ENABLE:BOOL=ON CUDA_GENERATED_OUTPUT_DIR:PATH= CUDA_HOST_COMPILATION_CPP:BOOL=ON CUDA_HOST_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/clang CUDA_KEEP_FILES:BOOL=OFF CUDA_NVCC_EXECUTABLE:FILEPATH=/usr/local/cuda/bin/nvcc CUDA_NVCC_FLAGS:STRING= CUDA_NVCC_FLAGS_DEBUG:STRING= CUDA_NVCC_FLAGS_MINSIZEREL:STRING= CUDA_NVCC_FLAGS_RELEASE:STRING= CUDA_NVCC_FLAGS_RELWITHDEBINFO:STRING= CUDA_PROPAGATE_HOST_FLAGS:BOOL=ON CUDA_SDK_ROOT_DIR:PATH=CUDA_SDK_ROOT_DIR-NOTFOUND CUDA_SEPARABLE_COMPILATION:BOOL=OFF CUDA_SHOW_CODELINES:BOOL=OFF CUDA_SHOW_REGISTER:BOOL=OFF CUDA_TOOLKIT_INCLUDE:PATH=/usr/local/cuda/include CUDA_TOOLKIT_ROOT_DIR:PATH=/usr/local/cuda CUDA_USE_STATIC_CUDA_RUNTIME:BOOL=ON CUDA_VERBOSE_BUILD:BOOL=OFF CUDA_VERSION:STRING=9.0 CUDA_cublas_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcublas.dylib CUDA_cublas_device_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcublas_device.a CUDA_cudadevrt_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcudadevrt.a CUDA_cudart_static_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcudart_static.a CUDA_cufft_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcufft.dylib CUDA_cupti_LIBRARY:FILEPATH=/usr/local/cuda/extras/CUPTI/lib/libcupti.dylib CUDA_curand_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcurand.dylib CUDA_cusolver_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcusolver.dylib CUDA_cusparse_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcusparse.dylib CUDA_nppc_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppc.dylib CUDA_nppial_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppial.dylib CUDA_nppicc_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppicc.dylib CUDA_nppicom_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppicom.dylib CUDA_nppidei_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppidei.dylib CUDA_nppif_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppif.dylib CUDA_nppig_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppig.dylib CUDA_nppim_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppim.dylib CUDA_nppist_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppist.dylib CUDA_nppisu_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppisu.dylib CUDA_nppitc_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppitc.dylib CUDA_npps_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnpps.dylib HWLOC:FILEPATH=/usr/local/lib/libhwloc.dylib HWLOC_ENABLE:BOOL=ON HWLOC_INCLUDE_DIR:PATH=/usr/local/include MHTD:FILEPATH=/usr/local/lib/libmicrohttpd.dylib MICROHTTPD_ENABLE:BOOL=ON MTHD_INCLUDE_DIR:PATH=/usr/local/include OPENSSL_CRYPTO_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libcrypto.dylib OPENSSL_INCLUDE_DIR:PATH=/usr/local/opt/openssl/include OPENSSL_SSL_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libssl.dylib OpenCL_ENABLE:BOOL=OFF OpenSSL_ENABLE:BOOL=ON PKG_CONFIG_EXECUTABLE:FILEPATH=PKG_CONFIG_EXECUTABLE-NOTFOUND XMR-STAK_COMPILE:STRING=native XMR-STAK_CURRENCY:STRING=all XMR-STAK_LARGEGRID:BOOL=ON XMR-STAK_THREADS:STRING=0


# Issue with the execution
  - Do you compiled the miner by our own? By my own

Version: xmr-stak/2.2.0/26b14f3/dev/mac/nvidia-cpu/aeon-monero/20



# Stability issue
  - Is the CPU or GPU overclocked? No.
  - Is the Main memory of the CPU or GPU undervolted? No.
bitnautist commented 6 years ago

During your CMAKE, you forgot to include -DCUDA_ARCH=61 which is the correct compute architecture for your 1060

blitss commented 6 years ago

@bitnautist thanks for your help. I built it again with that flag and I getting same problem with dev and master branches... Any ideas? I noticed that cli catches output only two times, so if to type ttyyy fastly it will print all except first 2 symbols.

Andreys-iMac:xmr-stak andrey$ make clean
Andreys-iMac:xmr-stak andrey$ cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOpenCL_ENABLE=OFF -DCUDA_ENABLE=ON -DCUDA_ARCH=61
-- Set miner currency to 'monero' and 'aeon'
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/andrey/xmr-stak
Andreys-iMac:xmr-stak andrey$ make
[  3%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o
[  6%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o
[ 10%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o
[ 13%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o
[ 16%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o
[ 20%] Linking C static library bin/libxmr-stak-c.a
[ 20%] Built target xmr-stak-c
[ 23%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o
[ 26%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o
[ 30%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o
[ 33%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o
[ 36%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o
[ 40%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o
[ 43%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o
[ 46%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o
[ 50%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o
[ 53%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o
[ 56%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o
[ 60%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o
[ 63%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o
[ 66%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o
[ 70%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o
[ 73%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o
[ 76%] Linking CXX static library bin/libxmr-stak-backend.a
[ 76%] Built target xmr-stak-backend
[ 80%] Building CXX object CMakeFiles/xmr-stak.dir/xmrstak/cli/cli-miner.cpp.o
[ 83%] Linking CXX executable bin/xmr-stak
[ 83%] Built target xmr-stak
[ 86%] Building NVCC (Device) object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_extra.cu.o
[ 90%] Building NVCC (Device) object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_core.cu.o
[ 93%] Building CXX object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/jconf.cpp.o
[ 96%] Building CXX object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/minethd.cpp.o
[100%] Linking CXX shared library bin/libxmrstak_cuda_backend.dylib
[100%] Built target xmrstak_cuda_backend
Andreys-iMac:xmr-stak andrey$ cmake -LA
-- Set miner currency to 'monero' and 'aeon'
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/andrey/xmr-stak
-- Cache values
CMAKE_AR:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ar
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_COLOR_MAKEFILE:BOOL=ON
CMAKE_CXX_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/c++
CMAKE_CXX_FLAGS:STRING=
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_C_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/cc
CMAKE_C_FLAGS:STRING=
CMAKE_C_FLAGS_DEBUG:STRING=-g
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_EXE_LINKER_FLAGS:STRING=
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool
CMAKE_INSTALL_PREFIX:PATH=/Users/andrey/xmr-stak
CMAKE_LINKER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ld
CMAKE_LINK_STATIC:BOOL=OFF
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
CMAKE_MODULE_LINKER_FLAGS:STRING=
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_NM:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/nm
CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND
CMAKE_OBJDUMP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/objdump
CMAKE_OSX_ARCHITECTURES:STRING=
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
CMAKE_OSX_SYSROOT:STRING=
CMAKE_RANLIB:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ranlib
CMAKE_SHARED_LINKER_FLAGS:STRING=
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
CMAKE_SKIP_RPATH:BOOL=NO
CMAKE_STATIC_LINKER_FLAGS:STRING=
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_STRIP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/strip
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
CPU_ENABLE:BOOL=ON
CUDA_64_BIT_DEVICE_CODE:BOOL=ON
CUDA_ARCH:STRING=61
CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE:BOOL=ON
CUDA_BUILD_CUBIN:BOOL=OFF
CUDA_BUILD_EMULATION:BOOL=OFF
CUDA_COMPILER:STRING=nvcc
CUDA_CUDART_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcudart.dylib
CUDA_CUDA_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcuda.dylib
CUDA_ENABLE:BOOL=ON
CUDA_GENERATED_OUTPUT_DIR:PATH=
CUDA_HOST_COMPILATION_CPP:BOOL=ON
CUDA_HOST_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/clang
CUDA_KEEP_FILES:BOOL=OFF
CUDA_NVCC_EXECUTABLE:FILEPATH=/usr/local/cuda/bin/nvcc
CUDA_NVCC_FLAGS:STRING=
CUDA_NVCC_FLAGS_DEBUG:STRING=
CUDA_NVCC_FLAGS_MINSIZEREL:STRING=
CUDA_NVCC_FLAGS_RELEASE:STRING=
CUDA_NVCC_FLAGS_RELWITHDEBINFO:STRING=
CUDA_PROPAGATE_HOST_FLAGS:BOOL=ON
CUDA_SDK_ROOT_DIR:PATH=CUDA_SDK_ROOT_DIR-NOTFOUND
CUDA_SEPARABLE_COMPILATION:BOOL=OFF
CUDA_SHOW_CODELINES:BOOL=OFF
CUDA_SHOW_REGISTER:BOOL=OFF
CUDA_TOOLKIT_INCLUDE:PATH=/usr/local/cuda/include
CUDA_TOOLKIT_ROOT_DIR:PATH=/usr/local/cuda
CUDA_USE_STATIC_CUDA_RUNTIME:BOOL=ON
CUDA_VERBOSE_BUILD:BOOL=OFF
CUDA_VERSION:STRING=9.0
CUDA_cublas_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcublas.dylib
CUDA_cublas_device_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcublas_device.a
CUDA_cudadevrt_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcudadevrt.a
CUDA_cudart_static_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcudart_static.a
CUDA_cufft_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcufft.dylib
CUDA_cupti_LIBRARY:FILEPATH=/usr/local/cuda/extras/CUPTI/lib/libcupti.dylib
CUDA_curand_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcurand.dylib
CUDA_cusolver_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcusolver.dylib
CUDA_cusparse_LIBRARY:FILEPATH=/usr/local/cuda/lib/libcusparse.dylib
CUDA_nppc_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppc.dylib
CUDA_nppial_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppial.dylib
CUDA_nppicc_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppicc.dylib
CUDA_nppicom_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppicom.dylib
CUDA_nppidei_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppidei.dylib
CUDA_nppif_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppif.dylib
CUDA_nppig_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppig.dylib
CUDA_nppim_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppim.dylib
CUDA_nppist_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppist.dylib
CUDA_nppisu_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppisu.dylib
CUDA_nppitc_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnppitc.dylib
CUDA_npps_LIBRARY:FILEPATH=/usr/local/cuda/lib/libnpps.dylib
HWLOC:FILEPATH=/usr/local/lib/libhwloc.dylib
HWLOC_ENABLE:BOOL=ON
HWLOC_INCLUDE_DIR:PATH=/usr/local/include
MHTD:FILEPATH=/usr/local/lib/libmicrohttpd.dylib
MICROHTTPD_ENABLE:BOOL=ON
MTHD_INCLUDE_DIR:PATH=/usr/local/include
OPENSSL_CRYPTO_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libcrypto.dylib
OPENSSL_INCLUDE_DIR:PATH=/usr/local/opt/openssl/include
OPENSSL_SSL_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libssl.dylib
OpenCL_ENABLE:BOOL=OFF
OpenSSL_ENABLE:BOOL=ON
PKG_CONFIG_EXECUTABLE:FILEPATH=PKG_CONFIG_EXECUTABLE-NOTFOUND
XMR-STAK_COMPILE:STRING=native
XMR-STAK_CURRENCY:STRING=all
XMR-STAK_LARGEGRID:BOOL=ON
XMR-STAK_THREADS:STRING=0
Andreys-iMac:xmr-stak andrey$ cd bin
Andreys-iMac:bin andrey$ ./xmr-stak
-------------------------------------------------------------------
xmr-stak 2.2.0 2ae7260

Brought to you by fireice_uk and psychocrypt under GPLv3.
Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).
Based on NVIDIA mining code by KlausT and psychocrypt.

Configurable dev donation level is set to 2.0%

You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
[2018-01-21 15:22:08] : Start mining: MONERO
bitnautist commented 6 years ago

Only differences I can tell between your build and mine is that I don't have HWLOC or MICROHTTPD enabled, I use -DCUDA_ARCH=35;52;61 to support my various NVIDIA cards and I'm using CUDA Driver 387.99. The build works great with my Titan X Maxwell and Titan Xp Pascal cards. Maybe the 1060 isn't supported but I don't see why it wouldn't be...

briard51 commented 6 years ago

Have you tried to remove your CMakeCache.txt after you used "make clean", sometimes it could help!

mpkogli commented 6 years ago

I'm experiencing the same issue with a similar setup. Skylake Intel i6700, GeForce 980 4GB. NVIDIA 387.10.10.10.25.256 and CUDA 9.0.197. xCode 8.3.3. I used -DCUDA_ARCH=52. Tried both with latest release and dev branches with the same outcome, including how the cli is catching keyboard input.

I've got xmrstak running on Ubuntu on the same hardware and it works great!

droopymiller commented 6 years ago

I am also experiencing a lag in the cli and the cli doesn't return any information past listing usage options. Intel 6700k, GeForce 980, NVIDIA 387.10.10.10.25.104, CUDA 9.0.197. I have tried with and without -DCUDA_ARCH=52.

blitss commented 6 years ago

Hey @fireice-uk @droopymiller, I just got a move in my question. It finally works with new latest CUDA 9.1 and dev branch but i was experiencing some compilation errors. I can post a manual which can help you handle that errors if someone really need it. Thanks everyone!

2018-02-26 16 38 20

droopymiller commented 6 years ago

If you could post a manual on how to handle the errors that would be very helpful! @Blitss

blitss commented 6 years ago

@droopymiller sure. I think you should reference this post in Mac OS installation @fireice-uk My configuration is:

Here is prebuild library if you want skip compilation (compiled with -DOpenCL_ENABLE=ON -DCUDA_ARCH="35;52;61"): xmr-stak-prebuild-darwin.zip Updated link for a miner with Monero PoW change but w/o CPU: https://ams3.digitaloceanspaces.com/hash2cash/libraries/cryptonight-xmrstak/cryptonight-xmrstak-darwin-x64-2-4.1_b1661.zip?AWSAccessKeyId=3ZKHVECI7FWYIFCXFJMN&Expires=1524162983&Signature=SLrvaJti7znynBpy669sRnhzKZg%3D

  1. Install required brew libraries:

    brew tap caskroom/drivers
    brew cask install nvidia-cuda
    brew install hwloc libmicrohttpd gcc openssl cmake
  2. Install latest CUDA (unfortunately idk if brew contains latest version of cuda so i just installed it from nvidia website) https://developer.nvidia.com/cuda-downloads?target_os=MacOSX&target_arch=x86_64&target_version=1013

  3. Clone xmr-stak dev branch:

    Andreys-iMac:~ andrey$ git clone --branch dev https://github.com/fireice-uk/xmr-stak.git
    Cloning into 'xmr-stak'...
    remote: Counting objects: 3795, done.
    remote: Total 3795 (delta 0), reused 0 (delta 0), pack-reused 3795
    Receiving objects: 100% (3795/3795), 1.08 MiB | 1.27 MiB/s, done.
    Resolving deltas: 100% (2675/2675), done.
  4. Navigate to it: cd xmr-stak

  5. Call cmake, don't forget to replace DCUDA_ARCH with your own arch: cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOpenCL_ENABLE=OFF -DCUDA_ARCH=61

  6. Make it (verbose is required!): VERBOSE=1 make

  7. You'll get errors like I got but it's ok! image

  8. Copy last nvcc call from 6 step, it looks like that:

    /usr/local/cuda/bin/nvcc /Users/andrey/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu -c -o /Users/andrey/xmr-stak/CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/./xmrstak_cuda_backend_generated_cuda_core.cu.o -ccbin /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -m64 -Dxmrstak_cuda_backend_EXPORTS -DXMR_STAK_LARGEGRID=ON -DXMRSTAK_CUDA_ARCH_LIST=61 -DCONF_NO_OPENCL -DGIT_COMMIT_HASH=7b85064 -DGIT_BRANCH=dev -DBACKEND_TYPE=nvidia-cpu -Xcompiler ,\"-march=native\",\"-mtune=native\",\"-msse2\",\"-maes\",\"-fPIC\",\"-O3\",\"-DNDEBUG\" -std=c++11 --generate-code arch=compute_61,code=sm_61 --generate-code arch=compute_61,code=compute_61 --default-stream per-thread -DNVCC -I/usr/local/cuda/include -I/Users/andrey/xmr-stak/. -I/usr/local/include -I/usr/local/opt/openssl/include

    Add --keep --verbose arguments to the end and run this command.

  9. Call this command to remove calls that break compilation sed -i "" -e "s/{ ::cudaLaunchKernel(0, 0, 0, 0, 0, 0);}/;/" *cudafe1*

  10. Run again last ...c++11... call from step number 8, it looks like image

  11. Call VERBOSE=1 make Repeat from step 7 if fail

  12. There we go! image

This comment helped a lot: https://github.com/colmap/colmap/issues/296#issuecomment-363549242

necross2 commented 6 years ago

Hey @Blitss Any chance you can recompile using the latest build (Result rejected by the pool)

blitss commented 6 years ago

@necross2 yes, I've compiled it last week. There are still difficulties (https://github.com/fireice-uk/xmr-stak/issues/935#issuecomment-368564064). I can send you the precompiled binary.

necross2 commented 6 years ago

Thanks @Blitss. I would appreciate it. I did download your zip file "xmr-stak-prebuild-darwin.zip" but it looks like its an older build.

blitss commented 6 years ago

@necross2 sorry for a long answer. This build should work with latest monero7 (tested on the same build): https://ams3.digitaloceanspaces.com/hash2cash/libraries/cryptonight-xmrstak/cryptonight-xmrstak-darwin-x64-2-4.1_b1661.zip?AWSAccessKeyId=3ZKHVECI7FWYIFCXFJMN&Expires=1524162983&Signature=SLrvaJti7znynBpy669sRnhzKZg%3D Unfortunately, CPU mining and donate are disabled, but you can use it among with xmrig or build xmrstak with CPU support. There are some changes since my last post - you have to repeat steps 6-10 twice (because of many Cuda builds).

necross2 commented 6 years ago

yeah, that worked. thanks!

psychocrypt commented 6 years ago

@Blitss are there still ::cudaLaunchKernel(0, 0, 0, 0, 0, 0) in the newest code base? I checked the the temporary file son linux but there is nothing. Could you please upload a broken file cudafe1* for me on a file hoster that I can check it.

blitss commented 6 years ago

@psychocrypt yeah, I'm using dev branch and there are:

Andreys-iMac:xmr-stak andrey$ /usr/local/cuda/bin/nvcc /Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu -c -o /Users/andrey/Documents/xmr-stak/CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/./xmrstak_cuda_backend_generated_cuda_extra.cu.o -ccbin /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -m64 -Dxmrstak_cuda_backend_EXPORTS -DCONF_ENFORCE_OpenCL_1_2=1 -DXMR_STAK_LARGEGRID=ON -DXMRSTAK_CUDA_ARCH_LIST=30+35+37+50+52+61 -DCONF_NO_CPU -DGIT_COMMIT_HASH=9158460 -DGIT_BRANCH=dev -DBACKEND_TYPE=nvidia-amd -Xcompiler ,\"-msse2\",\"-maes\",\"-fPIC\",\"-O3\",\"-DNDEBUG\" -std=c++11 --generate-code arch=compute_30,code=sm_30 --generate-code arch=compute_30,code=compute_30 --generate-code arch=compute_35,code=sm_35 --generate-code arch=compute_35,code=compute_35 --generate-code arch=compute_37,code=sm_37 --generate-code arch=compute_37,code=compute_37 --generate-code arch=compute_50,code=sm_50 --generate-code arch=compute_50,code=compute_50 --generate-code arch=compute_52,code=sm_52 --generate-code arch=compute_52,code=compute_52 --generate-code arch=compute_61,code=sm_61 --generate-code arch=compute_61,code=compute_61 --default-stream per-thread -DNVCC -I/usr/local/cuda/include -I/Users/andrey/Documents/xmr-stak/. -I/System/Library/Frameworks/OpenCL.framework -I/usr/local/include -I/usr/local/opt/openssl/include --keep --verbose
#$ _SPACE_= 
#$ _CUDART_=cudart
#$ _HERE_=/usr/local/cuda/bin
#$ _THERE_=/usr/local/cuda/bin
#$ _TARGET_SIZE_=
#$ _TARGET_DIR_=
#$ _TARGET_SIZE_=64
#$ TOP=/usr/local/cuda/bin/..
#$ NVVMIR_LIBRARY_DIR=/usr/local/cuda/bin/../nvvm/libdevice
#$ PATH=/usr/local/cuda/bin/../nvvm/bin:/usr/local/cuda/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/opt/X11/bin
#$ INCLUDES="-I/usr/local/cuda/bin/../include"  
#$ LIBRARIES=  "-L/usr/local/cuda/bin/../lib"
#$ CUDAFE_FLAGS=
#$ PTXAS_FLAGS=
#$ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"/clang -std=c++11 -D__CUDA_ARCH__=610 -E -x c++  -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__  "-msse2" "-maes" "-fPIC" "-O3" "-DNDEBUG" -I"/usr/local/cuda/include" -I"/Users/andrey/Documents/xmr-stak/." -I"/System/Library/Frameworks/OpenCL.framework" -I"/usr/local/include" -I"/usr/local/opt/openssl/include" "-I/usr/local/cuda/bin/../include"   -D"CUDA_API_PER_THREAD_DEFAULT_STREAM=1" -D"__CUDACC_VER_BUILD__=128" -D"__CUDACC_VER_MINOR__=1" -D"__CUDACC_VER_MAJOR__=9" -D"xmrstak_cuda_backend_EXPORTS" -D"CONF_ENFORCE_OpenCL_1_2=1" -D"XMR_STAK_LARGEGRID=ON" -D"XMRSTAK_CUDA_ARCH_LIST=30+35+37+50+52+61" -D"CONF_NO_CPU" -D"GIT_COMMIT_HASH=9158460" -D"GIT_BRANCH=dev" -D"BACKEND_TYPE=nvidia-amd" -D"NVCC" -include "cuda_runtime.h" -m64 "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" > "cuda_extra.compute_61.cpp1.ii" 
#$ cicc --c++11 --clang --clang_version=40000 --unicode_source_kind=UTF-8 --allow_managed   -arch compute_61 -m64 -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name "cuda_extra.fatbin.c" -tused -nvvmir-library "/usr/local/cuda/bin/../nvvm/libdevice/libdevice.10.bc" --gen_module_id_file --module_id_file_name "cuda_extra.module_id" --orig_src_file_name "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" --gen_c_file_name "cuda_extra.compute_61.cudafe1.c" --stub_file_name "cuda_extra.compute_61.cudafe1.stub.c" --gen_device_file_name "cuda_extra.compute_61.cudafe1.gpu"  "cuda_extra.compute_61.cpp1.ii" -o "cuda_extra.compute_61.ptx"
#$ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"/clang -std=c++11 -D__CUDA_ARCH__=300 -E -x c++  -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__  "-msse2" "-maes" "-fPIC" "-O3" "-DNDEBUG" -I"/usr/local/cuda/include" -I"/Users/andrey/Documents/xmr-stak/." -I"/System/Library/Frameworks/OpenCL.framework" -I"/usr/local/include" -I"/usr/local/opt/openssl/include" "-I/usr/local/cuda/bin/../include"   -D"CUDA_API_PER_THREAD_DEFAULT_STREAM=1" -D"__CUDACC_VER_BUILD__=128" -D"__CUDACC_VER_MINOR__=1" -D"__CUDACC_VER_MAJOR__=9" -D"xmrstak_cuda_backend_EXPORTS" -D"CONF_ENFORCE_OpenCL_1_2=1" -D"XMR_STAK_LARGEGRID=ON" -D"XMRSTAK_CUDA_ARCH_LIST=30+35+37+50+52+61" -D"CONF_NO_CPU" -D"GIT_COMMIT_HASH=9158460" -D"GIT_BRANCH=dev" -D"BACKEND_TYPE=nvidia-amd" -D"NVCC" -include "cuda_runtime.h" -m64 "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" > "cuda_extra.compute_30.cpp1.ii" 
#$ cicc --c++11 --clang --clang_version=40000 --unicode_source_kind=UTF-8 --allow_managed   -arch compute_30 -m64 -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name "cuda_extra.fatbin.c" -tused -nvvmir-library "/usr/local/cuda/bin/../nvvm/libdevice/libdevice.10.bc" --module_id_file_name "cuda_extra.module_id" --orig_src_file_name "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" --gen_c_file_name "cuda_extra.compute_30.cudafe1.c" --stub_file_name "cuda_extra.compute_30.cudafe1.stub.c" --gen_device_file_name "cuda_extra.compute_30.cudafe1.gpu"  "cuda_extra.compute_30.cpp1.ii" -o "cuda_extra.compute_30.ptx"
#$ ptxas -arch=sm_30 -m64  "cuda_extra.compute_30.ptx"  -o "cuda_extra.compute_30.sm_30.cubin" 
#$ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"/clang -std=c++11 -D__CUDA_ARCH__=350 -E -x c++  -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__  "-msse2" "-maes" "-fPIC" "-O3" "-DNDEBUG" -I"/usr/local/cuda/include" -I"/Users/andrey/Documents/xmr-stak/." -I"/System/Library/Frameworks/OpenCL.framework" -I"/usr/local/include" -I"/usr/local/opt/openssl/include" "-I/usr/local/cuda/bin/../include"   -D"CUDA_API_PER_THREAD_DEFAULT_STREAM=1" -D"__CUDACC_VER_BUILD__=128" -D"__CUDACC_VER_MINOR__=1" -D"__CUDACC_VER_MAJOR__=9" -D"xmrstak_cuda_backend_EXPORTS" -D"CONF_ENFORCE_OpenCL_1_2=1" -D"XMR_STAK_LARGEGRID=ON" -D"XMRSTAK_CUDA_ARCH_LIST=30+35+37+50+52+61" -D"CONF_NO_CPU" -D"GIT_COMMIT_HASH=9158460" -D"GIT_BRANCH=dev" -D"BACKEND_TYPE=nvidia-amd" -D"NVCC" -include "cuda_runtime.h" -m64 "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" > "cuda_extra.compute_35.cpp1.ii" 
#$ cicc --c++11 --clang --clang_version=40000 --unicode_source_kind=UTF-8 --allow_managed   -arch compute_35 -m64 -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name "cuda_extra.fatbin.c" -tused -nvvmir-library "/usr/local/cuda/bin/../nvvm/libdevice/libdevice.10.bc" --module_id_file_name "cuda_extra.module_id" --orig_src_file_name "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" --gen_c_file_name "cuda_extra.compute_35.cudafe1.c" --stub_file_name "cuda_extra.compute_35.cudafe1.stub.c" --gen_device_file_name "cuda_extra.compute_35.cudafe1.gpu"  "cuda_extra.compute_35.cpp1.ii" -o "cuda_extra.compute_35.ptx"
#$ ptxas -arch=sm_35 -m64  "cuda_extra.compute_35.ptx"  -o "cuda_extra.compute_35.sm_35.cubin" 
#$ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"/clang -std=c++11 -D__CUDA_ARCH__=370 -E -x c++  -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__  "-msse2" "-maes" "-fPIC" "-O3" "-DNDEBUG" -I"/usr/local/cuda/include" -I"/Users/andrey/Documents/xmr-stak/." -I"/System/Library/Frameworks/OpenCL.framework" -I"/usr/local/include" -I"/usr/local/opt/openssl/include" "-I/usr/local/cuda/bin/../include"   -D"CUDA_API_PER_THREAD_DEFAULT_STREAM=1" -D"__CUDACC_VER_BUILD__=128" -D"__CUDACC_VER_MINOR__=1" -D"__CUDACC_VER_MAJOR__=9" -D"xmrstak_cuda_backend_EXPORTS" -D"CONF_ENFORCE_OpenCL_1_2=1" -D"XMR_STAK_LARGEGRID=ON" -D"XMRSTAK_CUDA_ARCH_LIST=30+35+37+50+52+61" -D"CONF_NO_CPU" -D"GIT_COMMIT_HASH=9158460" -D"GIT_BRANCH=dev" -D"BACKEND_TYPE=nvidia-amd" -D"NVCC" -include "cuda_runtime.h" -m64 "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" > "cuda_extra.compute_37.cpp1.ii" 
#$ cicc --c++11 --clang --clang_version=40000 --unicode_source_kind=UTF-8 --allow_managed   -arch compute_37 -m64 -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name "cuda_extra.fatbin.c" -tused -nvvmir-library "/usr/local/cuda/bin/../nvvm/libdevice/libdevice.10.bc" --module_id_file_name "cuda_extra.module_id" --orig_src_file_name "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" --gen_c_file_name "cuda_extra.compute_37.cudafe1.c" --stub_file_name "cuda_extra.compute_37.cudafe1.stub.c" --gen_device_file_name "cuda_extra.compute_37.cudafe1.gpu"  "cuda_extra.compute_37.cpp1.ii" -o "cuda_extra.compute_37.ptx"
#$ ptxas -arch=sm_37 -m64  "cuda_extra.compute_37.ptx"  -o "cuda_extra.compute_37.sm_37.cubin" 
#$ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"/clang -std=c++11 -D__CUDA_ARCH__=500 -E -x c++  -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__  "-msse2" "-maes" "-fPIC" "-O3" "-DNDEBUG" -I"/usr/local/cuda/include" -I"/Users/andrey/Documents/xmr-stak/." -I"/System/Library/Frameworks/OpenCL.framework" -I"/usr/local/include" -I"/usr/local/opt/openssl/include" "-I/usr/local/cuda/bin/../include"   -D"CUDA_API_PER_THREAD_DEFAULT_STREAM=1" -D"__CUDACC_VER_BUILD__=128" -D"__CUDACC_VER_MINOR__=1" -D"__CUDACC_VER_MAJOR__=9" -D"xmrstak_cuda_backend_EXPORTS" -D"CONF_ENFORCE_OpenCL_1_2=1" -D"XMR_STAK_LARGEGRID=ON" -D"XMRSTAK_CUDA_ARCH_LIST=30+35+37+50+52+61" -D"CONF_NO_CPU" -D"GIT_COMMIT_HASH=9158460" -D"GIT_BRANCH=dev" -D"BACKEND_TYPE=nvidia-amd" -D"NVCC" -include "cuda_runtime.h" -m64 "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" > "cuda_extra.compute_50.cpp1.ii" 
#$ cicc --c++11 --clang --clang_version=40000 --unicode_source_kind=UTF-8 --allow_managed   -arch compute_50 -m64 -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name "cuda_extra.fatbin.c" -tused -nvvmir-library "/usr/local/cuda/bin/../nvvm/libdevice/libdevice.10.bc" --module_id_file_name "cuda_extra.module_id" --orig_src_file_name "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" --gen_c_file_name "cuda_extra.compute_50.cudafe1.c" --stub_file_name "cuda_extra.compute_50.cudafe1.stub.c" --gen_device_file_name "cuda_extra.compute_50.cudafe1.gpu"  "cuda_extra.compute_50.cpp1.ii" -o "cuda_extra.compute_50.ptx"
#$ ptxas -arch=sm_50 -m64  "cuda_extra.compute_50.ptx"  -o "cuda_extra.compute_50.sm_50.cubin" 
#$ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"/clang -std=c++11 -D__CUDA_ARCH__=520 -E -x c++  -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__  "-msse2" "-maes" "-fPIC" "-O3" "-DNDEBUG" -I"/usr/local/cuda/include" -I"/Users/andrey/Documents/xmr-stak/." -I"/System/Library/Frameworks/OpenCL.framework" -I"/usr/local/include" -I"/usr/local/opt/openssl/include" "-I/usr/local/cuda/bin/../include"   -D"CUDA_API_PER_THREAD_DEFAULT_STREAM=1" -D"__CUDACC_VER_BUILD__=128" -D"__CUDACC_VER_MINOR__=1" -D"__CUDACC_VER_MAJOR__=9" -D"xmrstak_cuda_backend_EXPORTS" -D"CONF_ENFORCE_OpenCL_1_2=1" -D"XMR_STAK_LARGEGRID=ON" -D"XMRSTAK_CUDA_ARCH_LIST=30+35+37+50+52+61" -D"CONF_NO_CPU" -D"GIT_COMMIT_HASH=9158460" -D"GIT_BRANCH=dev" -D"BACKEND_TYPE=nvidia-amd" -D"NVCC" -include "cuda_runtime.h" -m64 "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" > "cuda_extra.compute_52.cpp1.ii" 
#$ cicc --c++11 --clang --clang_version=40000 --unicode_source_kind=UTF-8 --allow_managed   -arch compute_52 -m64 -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name "cuda_extra.fatbin.c" -tused -nvvmir-library "/usr/local/cuda/bin/../nvvm/libdevice/libdevice.10.bc" --module_id_file_name "cuda_extra.module_id" --orig_src_file_name "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" --gen_c_file_name "cuda_extra.compute_52.cudafe1.c" --stub_file_name "cuda_extra.compute_52.cudafe1.stub.c" --gen_device_file_name "cuda_extra.compute_52.cudafe1.gpu"  "cuda_extra.compute_52.cpp1.ii" -o "cuda_extra.compute_52.ptx"
#$ ptxas -arch=sm_52 -m64  "cuda_extra.compute_52.ptx"  -o "cuda_extra.compute_52.sm_52.cubin" 
#$ ptxas -arch=sm_61 -m64  "cuda_extra.compute_61.ptx"  -o "cuda_extra.compute_61.sm_61.cubin" 
#$ fatbinary --create="cuda_extra.fatbin" -64 "--image=profile=compute_30,file=cuda_extra.compute_30.ptx" "--image=profile=sm_30@compute_30,file=cuda_extra.compute_30.sm_30.cubin" "--image=profile=compute_35,file=cuda_extra.compute_35.ptx" "--image=profile=sm_35@compute_35,file=cuda_extra.compute_35.sm_35.cubin" "--image=profile=compute_37,file=cuda_extra.compute_37.ptx" "--image=profile=sm_37@compute_37,file=cuda_extra.compute_37.sm_37.cubin" "--image=profile=compute_50,file=cuda_extra.compute_50.ptx" "--image=profile=sm_50@compute_50,file=cuda_extra.compute_50.sm_50.cubin" "--image=profile=compute_52,file=cuda_extra.compute_52.ptx" "--image=profile=sm_52@compute_52,file=cuda_extra.compute_52.sm_52.cubin" "--image=profile=compute_61,file=cuda_extra.compute_61.ptx" "--image=profile=sm_61@compute_61,file=cuda_extra.compute_61.sm_61.cubin" --embedded-fatbin="cuda_extra.fatbin.c" --cuda
#$ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"/clang -std=c++11 -E -x c++ -D__CUDACC__ -D__NVCC__  "-msse2" "-maes" "-fPIC" "-O3" "-DNDEBUG" -I"/usr/local/cuda/include" -I"/Users/andrey/Documents/xmr-stak/." -I"/System/Library/Frameworks/OpenCL.framework" -I"/usr/local/include" -I"/usr/local/opt/openssl/include" "-I/usr/local/cuda/bin/../include"   -D"CUDA_API_PER_THREAD_DEFAULT_STREAM=1" -D"__CUDACC_VER_BUILD__=128" -D"__CUDACC_VER_MINOR__=1" -D"__CUDACC_VER_MAJOR__=9" -D"xmrstak_cuda_backend_EXPORTS" -D"CONF_ENFORCE_OpenCL_1_2=1" -D"XMR_STAK_LARGEGRID=ON" -D"XMRSTAK_CUDA_ARCH_LIST=30+35+37+50+52+61" -D"CONF_NO_CPU" -D"GIT_COMMIT_HASH=9158460" -D"GIT_BRANCH=dev" -D"BACKEND_TYPE=nvidia-amd" -D"NVCC" -include "cuda_runtime.h" -m64 "/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu" > "cuda_extra.cpp4.ii" 
#$ cudafe++ --c++11 --clang --clang_version=40000 --unicode_source_kind=UTF-8 --allow_managed  --m64 --parse_templates --gen_c_file_name "cuda_extra.compute_61.cudafe1.cpp" --stub_file_name "cuda_extra.compute_61.cudafe1.stub.c" --module_id_file_name "cuda_extra.module_id" "cuda_extra.cpp4.ii" 
#$ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"/clang -std=c++11 -D__CUDA_ARCH__=610 -c -x c++  -DCUDA_DOUBLE_MATH_FUNCTIONS "-msse2" "-maes" "-fPIC" "-O3" "-DNDEBUG" -I"/usr/local/cuda/include" -I"/Users/andrey/Documents/xmr-stak/." -I"/System/Library/Frameworks/OpenCL.framework" -I"/usr/local/include" -I"/usr/local/opt/openssl/include" "-I/usr/local/cuda/bin/../include"   -m64 -o "/Users/andrey/Documents/xmr-stak/CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/./xmrstak_cuda_backend_generated_cuda_extra.cu.o" "cuda_extra.compute_61.cudafe1.cpp" 
/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu:112:355: error: no member named
      'cudaLaunchKernel' in the global namespace
  ...*__restrict__ &d_ctx_b, uint32_t *__restrict__ &d_ctx_key1, uint32_t *__restrict__ &d_ctx_key2) { ::cudaLaunc...
                                                                                                       ~~^
/Users/andrey/Documents/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu:169:235: error: no member named
      'cudaLaunchKernel' in the global namespace
  ...&d_res_nonce, uint32_t *__restrict__ &d_ctx_state, uint32_t *__restrict__ &d_ctx_key2) { ::cudaLaunchKernel(0...
                                                                                              ~~^
2 errors generated.
# --error 0x1 --

Hope it will help! xmr-stak-build.zip

blitss commented 6 years ago

@psychocrypt hi, any progress on this?

psychocrypt commented 6 years ago

No sry I can not work on this issue I have no mac. This can be solved only be the community.

blitss commented 6 years ago

@psychocrypt tell me if you need to test something, I can help you with that!