nheqminer-macos icon indicating copy to clipboard operation
nheqminer-macos copied to clipboard

Error on compilation

Open ziorufus opened this issue 7 years ago • 17 comments

Hello!

I'm trying to compile the miner, but I get this error. Is there a way to have a more descriptive log?

  [...]
  CONFIG     cmake
  BUILD      cmake
  INSTALL    cmake
  CLONE      boost
  CONFIG     boost
  BUILD      boost
  INSTALL    boost
  CLONE      nheqminer
  CONFIG     nheqminer
  BUILD      nheqminer
make[1]: *** [build] Error 1
make: *** [nheqminer_all] Error 2

ziorufus avatar Nov 27 '17 10:11 ziorufus

Solved by commenting compilation of nheqminer-old.

ziorufus avatar Nov 27 '17 10:11 ziorufus

@ziorufus Sorry for my late reply but can you try it with PRINT_DEBUG=y make all so I can fix it?

kozyilmaz avatar Nov 27 '17 11:11 kozyilmaz

Hi! Has the same errors. With "PRINT_DEBUG=y make all" found error because missing "device_functions_decls.h" Using .h file taken from the web, solve this problem.

Starting thread #8 (CUDA-DJEZO) GeForce GTX 960 (#0) M=1
74.8667 I/s, 142.8 Sols/s

Astxsilencer avatar Dec 12 '17 19:12 Astxsilencer

way to go @Astxsilencer , nice!

kozyilmaz avatar Dec 12 '17 19:12 kozyilmaz

@Astxsilencer can you point me to where you found this file? I am running into the same issue.

ShailChoksi avatar Jan 04 '18 18:01 ShailChoksi

Hi @careless25, which CUDA version are you using, did you install CUDA Toolkit?

kozyilmaz avatar Jan 04 '18 18:01 kozyilmaz

@kozyilmaz

Cuda compilation tools, release 9.1, V9.1.85
Using CUDA 9 Toolkit
Using CUDA 9 compatible 'Command Line Tools for Xcode 8.3.2'

and the output of the debug:

In file included from /Users/user/Development/nheqminer-macos/nheqminer/nheqminer-macos-clang/cuda_djezo/equi_miner.cu:76:
/Users/user/Development/nheqminer-macos/nheqminer/nheqminer-macos-clang/cuda_djezo/eqcuda.hpp:6:10: fatal error: 'device_functions_decls.h' file not found
#include "device_functions_decls.h"
         ^
1 error generated.
CMake Error at cuda_djezo_generated_equi_miner.cu.o.cmake:219 (message):
  Error generating
  /Users/user/Development/nheqminer-macos/nheqminer/nheqminer-gpu/cuda_djezo/CMakeFiles/cuda_djezo.dir//./cuda_djezo_generated_equi_miner.cu.o


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

ShailChoksi avatar Jan 04 '18 21:01 ShailChoksi

@careless25 do you have brew or macports installed?

kozyilmaz avatar Jan 04 '18 21:01 kozyilmaz

No but I can install it @kozyilmaz

Edit: installed homebrew.

ShailChoksi avatar Jan 04 '18 21:01 ShailChoksi

No I just wanted to make sure that there is no collision in terms of include headers somewhere which caused this. Strange, do you have an Xcode installation and what is your macOS version?

kozyilmaz avatar Jan 04 '18 21:01 kozyilmaz

macOS High Sierra v10.13.2

and yes I have the latest Xcode installed (v9.2)

ShailChoksi avatar Jan 04 '18 21:01 ShailChoksi

Can you paste the output of the two functions below?

$ ls -lrt /Developer/NVIDIA/CUDA-*/include |grep device_functions_decls
$ ls -lrt /usr/local/cuda/include 

kozyilmaz avatar Jan 04 '18 21:01 kozyilmaz

1st command - no results 2nd:

lrwxr-xr-x@ 1 root  wheel  34  4 Nov 09:55 /usr/local/cuda/include -> /Developer/NVIDIA/CUDA-9.1/include

Wait, do I need to have a NVIDIA GPU for this to be installed? I thought I could mine via the CPU?

ShailChoksi avatar Jan 04 '18 21:01 ShailChoksi

You can mine with CPU, no worries

  1. Can you please copy the output of $ ls -lrt /Developer/NVIDIA/CUDA-9.1/include

  2. You can use the latest precompiled release https://github.com/kozyilmaz/nheqminer-macos/releases/tag/v7

  3. If you want to build it on your machine you can disable CUDA by setting ENABLE_CUDA=n https://github.com/kozyilmaz/nheqminer-macos/blob/280fc55ffcf83941db9489312e5d4de615fc579b/nheqminer/Makefile#L13

kozyilmaz avatar Jan 04 '18 21:01 kozyilmaz

total 148184
-rw-r--r--@  1 root  wheel      7315  4 Nov 09:54 texture_types.h
-rw-r--r--@  1 root  wheel         1  4 Nov 09:54 texture_indirect_functions.hpp
-rw-r--r--@  1 root  wheel     16435  4 Nov 09:54 texture_indirect_functions.h
-rw-r--r--@  1 root  wheel         1  4 Nov 09:54 texture_fetch_functions.hpp
-rw-r--r--@  1 root  wheel     31947  4 Nov 09:54 texture_fetch_functions.h
-rw-r--r--@  1 root  wheel      4653  4 Nov 09:54 surface_types.h
-rw-r--r--@  1 root  wheel         1  4 Nov 09:54 surface_indirect_functions.hpp
-rw-r--r--@  1 root  wheel     11953  4 Nov 09:54 surface_indirect_functions.h
-rw-r--r--@  1 root  wheel         1  4 Nov 09:54 surface_functions.hpp
-rw-r--r--@  1 root  wheel     19153  4 Nov 09:54 surface_functions.h
-rw-r--r--@  1 root  wheel  67361790  4 Nov 09:54 sobol_direction_vectors.h
-rw-r--r--@  1 root  wheel      6797  4 Nov 09:54 sm_61_intrinsics.hpp
-rw-r--r--@  1 root  wheel      6040  4 Nov 09:54 sm_61_intrinsics.h
-rwxr-xr-x@  1 root  wheel     15080  4 Nov 09:54 sm_60_atomic_functions.hpp
-rwxr-xr-x@  1 root  wheel     20629  4 Nov 09:54 sm_60_atomic_functions.h
-rw-r--r--@  1 root  wheel      2952  4 Nov 09:54 sm_35_intrinsics.h
-rw-r--r--@  1 root  wheel      2909  4 Nov 09:54 sm_35_atomic_functions.h
-rw-r--r--@  1 root  wheel     33121  4 Nov 09:54 sm_32_intrinsics.hpp
-rw-r--r--@  1 root  wheel     15174  4 Nov 09:54 sm_32_intrinsics.h
-rw-r--r--@  1 root  wheel      5400  4 Nov 09:54 sm_32_atomic_functions.hpp
-rw-r--r--@  1 root  wheel      6563  4 Nov 09:54 sm_32_atomic_functions.h
-rw-r--r--@  1 root  wheel     24426  4 Nov 09:54 sm_30_intrinsics.hpp
-rw-r--r--@  1 root  wheel     16060  4 Nov 09:54 sm_30_intrinsics.h
-rw-r--r--@  1 root  wheel      4880  4 Nov 09:54 sm_20_intrinsics.hpp
-rw-r--r--@  1 root  wheel     48416  4 Nov 09:54 sm_20_intrinsics.h
-rw-r--r--@  1 root  wheel      3952  4 Nov 09:54 sm_20_atomic_functions.hpp
-rw-r--r--@  1 root  wheel      4365  4 Nov 09:54 sm_20_atomic_functions.h
-rw-r--r--@  1 root  wheel     20291  4 Nov 09:54 nvrtc.h
-rw-r--r--@  1 root  wheel     15576  4 Nov 09:54 nvgraph.h
-rw-r--r--@  1 root  wheel      2533  4 Nov 09:54 nvfunctional
-rw-r--r--@  1 root  wheel     18401  4 Nov 09:54 nvblas.h
-rw-r--r--@  1 root  wheel     14562  4 Nov 09:54 nvToolsExtSync.h
-rw-r--r--@  1 root  wheel      5687  4 Nov 09:54 nvToolsExtMeta.h
-rw-r--r--@  1 root  wheel      5192  4 Nov 09:54 nvToolsExtCudaRt.h
-rw-r--r--@  1 root  wheel      6009  4 Nov 09:54 nvToolsExtCuda.h
-rw-r--r--@  1 root  wheel     53680  4 Nov 09:54 nvToolsExt.h
-rw-r--r--@  1 root  wheel      3108  4 Nov 09:54 nppversion.h
-rw-r--r--@  1 root  wheel      7785  4 Nov 09:54 npps_support_functions.h
-rw-r--r--@  1 root  wheel    197395  4 Nov 09:54 npps_statistics_functions.h
-rw-r--r--@  1 root  wheel     14958  4 Nov 09:54 npps_initialization.h
-rw-r--r--@  1 root  wheel      3566  4 Nov 09:54 npps_filtering_functions.h
-rw-r--r--@  1 root  wheel     38297  4 Nov 09:54 npps_conversion_functions.h
-rw-r--r--@  1 root  wheel    177511  4 Nov 09:54 npps_arithmetic_and_logical_operations.h
-rw-r--r--@  1 root  wheel      3173  4 Nov 09:54 npps.h
-rw-r--r--@  1 root  wheel    196852  4 Nov 09:54 nppi_threshold_and_compare_operations.h
-rw-r--r--@  1 root  wheel     13561  4 Nov 09:54 nppi_support_functions.h
-rw-r--r--@  1 root  wheel   1074762  4 Nov 09:54 nppi_statistics_functions.h
-rw-r--r--@  1 root  wheel    151924  4 Nov 09:54 nppi_morphological_operations.h
-rw-r--r--@  1 root  wheel      5196  4 Nov 09:54 nppi_linear_transforms.h
-rw-r--r--@  1 root  wheel    325021  4 Nov 09:54 nppi_geometry_transforms.h
-rw-r--r--@  1 root  wheel    906461  4 Nov 09:54 nppi_filtering_functions.h
-rw-r--r--@  1 root  wheel    309527  4 Nov 09:54 nppi_data_exchange_and_initialization.h
-rw-r--r--@  1 root  wheel      2898  4 Nov 09:54 nppi_computer_vision.h
-rw-r--r--@  1 root  wheel     43593  4 Nov 09:54 nppi_compression_functions.h
-rw-r--r--@  1 root  wheel    385225  4 Nov 09:54 nppi_color_conversion.h
-rw-r--r--@  1 root  wheel    572944  4 Nov 09:54 nppi_arithmetic_and_logical_operations.h
-rw-r--r--@  1 root  wheel      3422  4 Nov 09:54 nppi.h
-rw-r--r--@  1 root  wheel     24268  4 Nov 09:54 nppdefs.h
-rw-r--r--@  1 root  wheel      6339  4 Nov 09:54 nppcore.h
-rw-r--r--@  1 root  wheel      2864  4 Nov 09:54 npp.h
-rw-r--r--@  1 root  wheel      2526  4 Nov 09:54 mma.h
-rw-r--r--@  1 root  wheel      2537  4 Nov 09:54 math_functions.h
-rw-r--r--@  1 root  wheel      7602  4 Nov 09:54 math_constants.h
-rw-r--r--@  1 root  wheel      3489  4 Nov 09:54 library_types.h
-rw-r--r--@  1 root  wheel      2535  4 Nov 09:54 host_defines.h
-rw-r--r--@  1 root  wheel      2534  4 Nov 09:54 host_config.h
-rw-r--r--@  1 root  wheel      2842  4 Nov 09:54 fatbinary.h
-rw-r--r--@  1 root  wheel      4551  4 Nov 09:54 fatBinaryCtl.h
-rw-r--r--@  1 root  wheel     75034  4 Nov 09:54 driver_types.h
-rw-r--r--@  1 root  wheel      4621  4 Nov 09:54 driver_functions.h
-rw-r--r--@  1 root  wheel      3158  4 Nov 09:54 device_types.h
-rw-r--r--@  1 root  wheel      3846  4 Nov 09:54 device_launch_parameters.h
-rw-r--r--@  1 root  wheel      2539  4 Nov 09:54 device_functions.h
-rw-r--r--@  1 root  wheel      2546  4 Nov 09:54 device_double_functions.h
-rw-r--r--@  1 root  wheel      8195  4 Nov 09:54 device_atomic_functions.hpp
-rw-r--r--@  1 root  wheel     11405  4 Nov 09:54 device_atomic_functions.h
-rw-r--r--@  1 root  wheel      2589  4 Nov 09:54 cusparse_v2.h
-rw-r--r--@  1 root  wheel    367159  4 Nov 09:54 cusparse.h
-rw-r--r--@  1 root  wheel      3649  4 Nov 09:54 cusolver_common.h
-rw-r--r--@  1 root  wheel     27576  4 Nov 09:54 cusolverSp_LOWLEVEL_PREVIEW.h
-rw-r--r--@  1 root  wheel     22147  4 Nov 09:54 cusolverSp.h
-rw-r--r--@  1 root  wheel     17455  4 Nov 09:54 cusolverRf.h
-rw-r--r--@  1 root  wheel     48940  4 Nov 09:54 cusolverDn.h
-rw-r--r--@  1 root  wheel     17346  4 Nov 09:54 curand_uniform.h
-rw-r--r--@  1 root  wheel    333853  4 Nov 09:54 curand_precalc.h
-rw-r--r--@  1 root  wheel     29829  4 Nov 09:54 curand_poisson.h
-rw-r--r--@  1 root  wheel      7146  4 Nov 09:54 curand_philox4x32_x.h
-rw-r--r--@  1 root  wheel      4649  4 Nov 09:54 curand_normal_static.h
-rw-r--r--@  1 root  wheel     26911  4 Nov 09:54 curand_normal.h
-rw-r--r--@  1 root  wheel    276660  4 Nov 09:54 curand_mtgp32dc_p_11213.h
-rw-r--r--@  1 root  wheel     13819  4 Nov 09:54 curand_mtgp32_kernel.h
-rw-r--r--@  1 root  wheel     17971  4 Nov 09:54 curand_mtgp32_host.h
-rw-r--r--@  1 root  wheel      7921  4 Nov 09:54 curand_mtgp32.h
-rw-r--r--@  1 root  wheel    168895  4 Nov 09:54 curand_mrg32k3a.h
-rw-r--r--@  1 root  wheel     28122  4 Nov 09:54 curand_lognormal.h
-rw-r--r--@  1 root  wheel     48235  4 Nov 09:54 curand_kernel.h
-rw-r--r--@  1 root  wheel      3717  4 Nov 09:54 curand_globals.h
-rw-r--r--@  1 root  wheel     10836  4 Nov 09:54 curand_discrete2.h
-rw-r--r--@  1 root  wheel      3486  4 Nov 09:54 curand_discrete.h
-rw-r--r--@  1 root  wheel     42662  4 Nov 09:54 curand.h
-rw-r--r--@  1 root  wheel     18254  4 Nov 09:54 cufftw.h
-rw-r--r--@  1 root  wheel     10812  4 Nov 09:54 cufftXt.h
-rw-r--r--@  1 root  wheel     12925  4 Nov 09:54 cufft.h
-rw-r--r--@  1 root  wheel      4105  4 Nov 09:54 cudalibxt.h
-rw-r--r--@  1 root  wheel      4857  4 Nov 09:54 cuda_texture_types.h
-rw-r--r--@  1 root  wheel      4352  4 Nov 09:54 cuda_surface_types.h
-rw-r--r--@  1 root  wheel    330042  4 Nov 09:54 cuda_runtime_api.h
-rw-r--r--@  1 root  wheel     88404  4 Nov 09:54 cuda_runtime.h
-rw-r--r--@  1 root  wheel      6128  4 Nov 09:54 cuda_profiler_api.h
-rw-r--r--@  1 root  wheel     55122  4 Nov 09:54 cuda_occupancy.h
-rw-r--r--@  1 root  wheel     18477  4 Nov 09:54 cuda_gl_interop.h
-rw-r--r--@  1 root  wheel     62978  4 Nov 09:54 cuda_fp16.hpp
-rw-r--r--@  1 root  wheel     69703  4 Nov 09:54 cuda_fp16.h
-rw-r--r--@  1 root  wheel     29679  4 Nov 09:54 cuda_egl_interop.h
-rw-r--r--@  1 root  wheel     14588  4 Nov 09:54 cuda_device_runtime_api.h
-rw-r--r--@  1 root  wheel      6170  4 Nov 09:54 cudaProfiler.h
-rw-r--r--@  1 root  wheel     23366  4 Nov 09:54 cudaGL.h
-rw-r--r--@  1 root  wheel    492237  4 Nov 09:54 cuda.h
-rw-r--r--@  1 root  wheel     10263  4 Nov 09:54 cublas_v2.h
-rw-r--r--@  1 root  wheel    202683  4 Nov 09:54 cublas_api.h
-rw-r--r--@  1 root  wheel     41040  4 Nov 09:54 cublasXt.h
-rw-r--r--@  1 root  wheel     33423  4 Nov 09:54 cublas.h
-rw-r--r--@  1 root  wheel     12127  4 Nov 09:54 cuComplex.h
-rw-r--r--@  1 root  wheel      8370  4 Nov 09:54 cooperative_groups_helpers.h
-rw-r--r--@  1 root  wheel     37962  4 Nov 09:54 cooperative_groups.h
-rw-r--r--@  1 root  wheel      2539  4 Nov 09:54 common_functions.h
-rw-r--r--@  1 root  wheel     14406  4 Nov 09:54 channel_descriptor.h
-rw-r--r--@  1 root  wheel      3150  4 Nov 09:54 builtin_types.h
-rw-r--r--@  1 root  wheel     12439  4 Nov 09:54 vector_types.h
-rw-r--r--@  1 root  wheel     10109  4 Nov 09:54 vector_functions.hpp
-rw-r--r--@  1 root  wheel      7896  4 Nov 09:54 vector_functions.h
drwxr-xr-x  19 root  wheel       608  4 Jan 13:08 crt
drwxr-xr-x  61 root  wheel      1952  4 Jan 13:08 thrust
  1. The cpu version on this works!

  2. I will try this later. Thanks!

ShailChoksi avatar Jan 04 '18 22:01 ShailChoksi

If macOS 10.13 is used there might be tiny problem, CUDA 9.1 README states that: Note that the CUDA 9.1 driver supports macOS 10.13. This means that existing CUDA applications can be run on Mac systems with CUDA 9.1 installed, however new CUDA applications cannot be compiled with CUDA 9.1 on macOS 10.13.

kozyilmaz avatar Jan 08 '18 11:01 kozyilmaz

This https://github.com/kozyilmaz/nheqminer/commit/0776e9d5d1551a53cc091536f343496bd7917869 should fix it, please use a fresh checkout to test. Tested with CUDA 9.0 and CUDA 9.1

kozyilmaz avatar Jan 09 '18 08:01 kozyilmaz