ccminer icon indicating copy to clipboard operation
ccminer copied to clipboard

Crash during compilation (nvidia part)

Open gizmochefmogwai opened this issue 7 years ago • 1 comments

Hello,

My system : Ubuntu Server 16.04LTS / Cuda Toolkit 9.1 / 6* GTX 1070 / GCC 5.4.0 20160609

Can you help me to resolve, or explain all dependencies ?

During ./build.sh :

g++ -DHAVE_CONFIG_H -I.  -fopenmp  -pthread -fno-strict-aliasing  -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -O3 -march=native -std=c++11 -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -fno-strict-aliasing -MT ccminer-nvml.o -MD -MP -MF .deps/ccminer-nvml.Tpo -c -o ccminer-nvml.o `test -f 'nvml.cpp' || echo './'`nvml.cpp
nvml.cpp: In function ‘int nvapiMemGetInfo(int, uint64_t*, uint64_t*)’:
nvml.cpp:322:2: error: ‘NvAPI_Status’ was not declared in this scope
  NvAPI_Status ret = NVAPI_OK;
  ^
nvml.cpp:323:2: error: ‘NV_DISPLAY_DRIVER_MEMORY_INFO’ was not declared in this scope
  NV_DISPLAY_DRIVER_MEMORY_INFO mem = {0};
  ^
nvml.cpp:324:2: error: ‘mem’ was not declared in this scope
  mem.version = NV_DISPLAY_DRIVER_MEMORY_INFO_VER;
  ^
nvml.cpp:324:16: error: ‘NV_DISPLAY_DRIVER_MEMORY_INFO_VER’ was not declared in this scope
  mem.version = NV_DISPLAY_DRIVER_MEMORY_INFO_VER;
                ^
nvml.cpp:325:24: error: ‘nvapi_dev_map’ was not declared in this scope
  unsigned int devNum = nvapi_dev_map[dev_id % MAX_GPUS];
                        ^
nvml.cpp:326:6: error: ‘ret’ was not declared in this scope
  if((ret = NvAPI_GPU_GetMemoryInfo(phys[devNum], &mem)) == NVAPI_OK)
      ^
nvml.cpp:326:36: error: ‘phys’ was not declared in this scope
  if((ret = NvAPI_GPU_GetMemoryInfo(phys[devNum], &mem)) == NVAPI_OK)
                                    ^
nvml.cpp:326:54: error: ‘NvAPI_GPU_GetMemoryInfo’ was not declared in this scope
  if((ret = NvAPI_GPU_GetMemoryInfo(phys[devNum], &mem)) == NVAPI_OK)
                                                      ^
nvml.cpp:326:60: error: ‘NVAPI_OK’ was not declared in this scope
  if((ret = NvAPI_GPU_GetMemoryInfo(phys[devNum], &mem)) == NVAPI_OK)
                                                            ^
nvml.cpp:331:14: error: ‘ret’ was not declared in this scope
  return (int)ret;
              ^
Makefile:1318 : la recette pour la cible « ccminer-nvml.o » a échouée

Thank you !

gizmochefmogwai avatar Jan 07 '18 13:01 gizmochefmogwai

This should be fixed now in one of the recent commits.

KlausT avatar Jan 10 '18 14:01 KlausT