cbuchner1 / CudaMiner

a CUDA accelerated litecoin mining application based on pooler's CPU miner
Other
687 stars 304 forks source link

ptxas error : Invalid value 'no' for option -abi. on CUDA 11 #176

Open joshuamsalazar opened 3 years ago

joshuamsalazar commented 3 years ago

I looked almost everywhere, and in the CUDA documentation there is no detail abut the -abi flag. I am compiling a CUDA app in Linux. I installed all the required deppendencies, toolkits and libraries required. However, I cannot get rid of that error.

I followed @roman3017 ( https://github.com/cbuchner1/CudaMiner/issues/163 ) suggestion of reomving "-abi=no -v" and just setting "-v" into the instructions:

 nvcc -g -02 -Xptas "-abi=no -v" -arch=sm_35 

would do the trick. However I get this big set of errors:

make  all-recursive
make[1]: Entering directory '/data/Install/UNIX/CudaMiner-master'
Making all in compat
make[2]: Entering directory '/data/Install/UNIX/CudaMiner-master/compat'
Making all in jansson
make[3]: Entering directory '/data/Install/UNIX/CudaMiner-master/compat/jansson'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/data/Install/UNIX/CudaMiner-master/compat/jansson'
make[3]: Entering directory '/data/Install/UNIX/CudaMiner-master/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/data/Install/UNIX/CudaMiner-master/compat'
make[2]: Leaving directory '/data/Install/UNIX/CudaMiner-master/compat'
make[2]: Entering directory '/data/Install/UNIX/CudaMiner-master'
nvcc -g -O2 -Xptxas "-v" -arch=sm_80 --maxrregcount=64 --ptxas-options=-v -I./compat/jansson -o wrapnvml.o -c wrapnvml.cu
ptxas info    : 0 bytes gmem
gcc -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-sha2.o -MD -MP -MF .deps/cudaminer-sha2.Tpo -c -o cudaminer-sha2.o `test -f 'sha2.c' || echo './'`sha2.c
mv -f .deps/cudaminer-sha2.Tpo .deps/cudaminer-sha2.Po
g++ -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-scrypt.o -MD -MP -MF .deps/cudaminer-scrypt.Tpo -c -o cudaminer-scrypt.o `test -f 'scrypt.cpp' || echo './'`scrypt.cpp
scrypt.cpp:60:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   60 |     void * operator new(size_t size) throw(std::bad_alloc) { void *p; if (posix_memalign(&p, 16, size) < 0) { static const std::bad_alloc nomem; throw nomem; } return (p); }
      |                                      ^~~~~
scrypt.cpp:62:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   62 |     void * operator new[](size_t size) throw(std::bad_alloc) { void *p; if (posix_memalign(&p, 16, size) < 0) { static const std::bad_alloc nomem; throw nomem; } return (p); }
      |                                        ^~~~~
mv -f .deps/cudaminer-scrypt.Tpo .deps/cudaminer-scrypt.Po
g++ -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-maxcoin.o -MD -MP -MF .deps/cudaminer-maxcoin.Tpo -c -o cudaminer-maxcoin.o `test -f 'maxcoin.cpp' || echo './'`maxcoin.cpp
mv -f .deps/cudaminer-maxcoin.Tpo .deps/cudaminer-maxcoin.Po
g++ -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-blakecoin.o -MD -MP -MF .deps/cudaminer-blakecoin.Tpo -c -o cudaminer-blakecoin.o `test -f 'blakecoin.cpp' || echo './'`blakecoin.cpp
mv -f .deps/cudaminer-blakecoin.Tpo .deps/cudaminer-blakecoin.Po
g++ -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-sha3.o -MD -MP -MF .deps/cudaminer-sha3.Tpo -c -o cudaminer-sha3.o `test -f 'sha3.cpp' || echo './'`sha3.cpp
mv -f .deps/cudaminer-sha3.Tpo .deps/cudaminer-sha3.Po
g++ -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-scrypt-jane.o -MD -MP -MF .deps/cudaminer-scrypt-jane.Tpo -c -o cudaminer-scrypt-jane.o `test -f 'scrypt-jane.cpp' || echo './'`scrypt-jane.cpp
mv -f .deps/cudaminer-scrypt-jane.Tpo .deps/cudaminer-scrypt-jane.Po
nvcc -g -O2 -Xptxas "-v" -arch=sm_80 --maxrregcount=64 --ptxas-options=-v -I./compat/jansson -o salsa_kernel.o -c salsa_kernel.cu
salsa_kernel.cu(718): warning: conversion from a string literal to "char *" is deprecated

salsa_kernel.cu(719): warning: conversion from a string literal to "char *" is deprecated

salsa_kernel.cu(720): warning: conversion from a string literal to "char *" is deprecated

salsa_kernel.cu(721): warning: conversion from a string literal to "char *" is deprecated

ptxas info    : 0 bytes gmem
salsa_kernel.cu(718): warning: conversion from a string literal to "char *" is deprecated

salsa_kernel.cu(719): warning: conversion from a string literal to "char *" is deprecated

salsa_kernel.cu(720): warning: conversion from a string literal to "char *" is deprecated

salsa_kernel.cu(721): warning: conversion from a string literal to "char *" is deprecated

salsa_kernel.cu: In function ‘void cuda_shutdown(int)’:
salsa_kernel.cu:225:16: warning: ‘cudaError_t cudaThreadExit()’ is deprecated [-Wdeprecated-declarations]
  225 |     cudaThreadExit();
      |                ^
/usr/include/cuda_runtime_api.h:941:46: note: declared here
  941 | extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadExit(void);
      |                                              ^~~~~~~~~~~~~~
salsa_kernel.cu:225:16: warning: ‘cudaError_t cudaThreadExit()’ is deprecated [-Wdeprecated-declarations]
  225 |     cudaThreadExit();
      |                ^
/usr/include/cuda_runtime_api.h:941:46: note: declared here
  941 | extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadExit(void);
      |                                              ^~~~~~~~~~~~~~
nvcc -g -O2 -Xptxas "-v" -arch=sm_80 --maxrregcount=64 --ptxas-options=-v -I./compat/jansson -o sha256.o -c sha256.cu
ptxas info    : 0 bytes gmem, 588 bytes cmem[3]
ptxas info    : Compiling entry function '_Z16cuda_post_sha256PjS_S_S_' for 'sm_80'
ptxas info    : Function properties for _Z16cuda_post_sha256PjS_S_S_
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 55 registers, 384 bytes cmem[0]
ptxas info    : Compiling entry function '_Z15cuda_pre_sha256PjS_S_j' for 'sm_80'
ptxas info    : Function properties for _Z15cuda_pre_sha256PjS_S_j
    192 bytes stack frame, 20 bytes spill stores, 20 bytes spill loads
ptxas info    : Used 64 registers, 380 bytes cmem[0]
ptxas info    : Function properties for _Z21cuda_sha256_transformPjPKj
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
nvcc -g -O2 -Xptxas "-v" -arch=sm_80 --maxrregcount=64 --ptxas-options=-v -I./compat/jansson -o keccak.o -c keccak.cu
ptxas info    : 0 bytes gmem, 576 bytes cmem[3]
ptxas info    : Compiling entry function '_Z11crypto_hashPmjPjb' for 'sm_80'
ptxas info    : Function properties for _Z11crypto_hashPmjPjb
    16 bytes stack frame, 16 bytes spill stores, 16 bytes spill loads
ptxas info    : Used 64 registers, 377 bytes cmem[0]
ptxas info    : Compiling entry function '_Z19cuda_post_keccak512PjS_j' for 'sm_80'
ptxas info    : Function properties for _Z19cuda_post_keccak512PjS_j
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 124 registers, 372 bytes cmem[0]
ptxas info    : Compiling entry function '_Z18cuda_pre_keccak512Pjj' for 'sm_80'
ptxas info    : Function properties for _Z18cuda_pre_keccak512Pjj
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 168 registers, 364 bytes cmem[0]
nvcc -g -O2 -Xptxas "-v" -arch=sm_80 --maxrregcount=64 --ptxas-options=-v -I./compat/jansson -o blake.o -c blake.cu
ptxas info    : 0 bytes gmem, 112 bytes cmem[3]
ptxas info    : Compiling entry function '_Z18cuda_blake256_hashPmjPjb' for 'sm_80'
ptxas info    : Function properties for _Z18cuda_blake256_hashPmjPjb
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 48 registers, 377 bytes cmem[0]
gcc -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-blake.o -MD -MP -MF .deps/cudaminer-blake.Tpo -c -o cudaminer-blake.o `test -f 'blake.c' || echo './'`blake.c
mv -f .deps/cudaminer-blake.Tpo .deps/cudaminer-blake.Po
nvcc -g -O2 -Xptxas "-v" -arch=sm_80 --maxrregcount=64 -I./compat/jansson -o fermi_kernel.o -c fermi_kernel.cu
fermi_kernel.cu(112): warning: variable "sleeptime" was declared but never referenced

ptxas info    : 0 bytes gmem, 32768 bytes cmem[3]
ptxas info    : Compiling entry function '_Z28fermi_scrypt_core_kernelB_LGILi1EEvPjjj' for 'sm_80'
ptxas info    : Function properties for _Z28fermi_scrypt_core_kernelB_LGILi1EEvPjjj
    176 bytes stack frame, 428 bytes spill stores, 432 bytes spill loads
ptxas info    : Used 64 registers, 368 bytes cmem[0]
ptxas info    : Compiling entry function '_Z28fermi_scrypt_core_kernelB_LGILi0EEvPjjj' for 'sm_80'
ptxas info    : Function properties for _Z28fermi_scrypt_core_kernelB_LGILi0EEvPjjj
    176 bytes stack frame, 452 bytes spill stores, 456 bytes spill loads
ptxas info    : Used 64 registers, 368 bytes cmem[0]
ptxas info    : Compiling entry function '_Z32fermi_scrypt_core_kernelB_LG_texILi1ELi2EEvPjjj' for 'sm_80'
ptxas info    : Function properties for _Z32fermi_scrypt_core_kernelB_LG_texILi1ELi2EEvPjjj
    160 bytes stack frame, 384 bytes spill stores, 384 bytes spill loads
ptxas info    : Used 64 registers, 372 bytes cmem[0], 1 textures
ptxas info    : Compiling entry function '_Z32fermi_scrypt_core_kernelB_LG_texILi0ELi2EEvPjjj' for 'sm_80'
ptxas info    : Function properties for _Z32fermi_scrypt_core_kernelB_LG_texILi0ELi2EEvPjjj
    160 bytes stack frame, 400 bytes spill stores, 400 bytes spill loads
ptxas info    : Used 64 registers, 372 bytes cmem[0], 1 textures
ptxas info    : Compiling entry function '_Z32fermi_scrypt_core_kernelB_LG_texILi1ELi1EEvPjjj' for 'sm_80'
ptxas info    : Function properties for _Z32fermi_scrypt_core_kernelB_LG_texILi1ELi1EEvPjjj
    160 bytes stack frame, 384 bytes spill stores, 384 bytes spill loads
ptxas info    : Used 64 registers, 372 bytes cmem[0], 1 textures
ptxas info    : Compiling entry function '_Z32fermi_scrypt_core_kernelB_LG_texILi0ELi1EEvPjjj' for 'sm_80'
ptxas info    : Function properties for _Z32fermi_scrypt_core_kernelB_LG_texILi0ELi1EEvPjjj
    160 bytes stack frame, 400 bytes spill stores, 400 bytes spill loads
ptxas info    : Used 64 registers, 372 bytes cmem[0], 1 textures
ptxas info    : Compiling entry function '_Z25fermi_scrypt_core_kernelBILi1EEvPjj' for 'sm_80'
ptxas info    : Function properties for _Z25fermi_scrypt_core_kernelBILi1EEvPjj
    40 bytes stack frame, 68 bytes spill stores, 68 bytes spill loads
ptxas info    : Used 64 registers, 364 bytes cmem[0]
ptxas info    : Compiling entry function '_Z25fermi_scrypt_core_kernelBILi0EEvPjj' for 'sm_80'
ptxas info    : Function properties for _Z25fermi_scrypt_core_kernelBILi0EEvPjj
    40 bytes stack frame, 68 bytes spill stores, 68 bytes spill loads
ptxas info    : Used 64 registers, 364 bytes cmem[0]
ptxas info    : Compiling entry function '_Z29fermi_scrypt_core_kernelB_texILi1ELi2EEvPjj' for 'sm_80'
ptxas info    : Function properties for _Z29fermi_scrypt_core_kernelB_texILi1ELi2EEvPjj
    56 bytes stack frame, 72 bytes spill stores, 72 bytes spill loads
ptxas info    : Used 64 registers, 368 bytes cmem[0], 1 textures
ptxas info    : Compiling entry function '_Z29fermi_scrypt_core_kernelB_texILi0ELi2EEvPjj' for 'sm_80'
ptxas info    : Function properties for _Z29fermi_scrypt_core_kernelB_texILi0ELi2EEvPjj
    56 bytes stack frame, 68 bytes spill stores, 68 bytes spill loads
ptxas info    : Used 64 registers, 368 bytes cmem[0], 1 textures
ptxas info    : Compiling entry function '_Z29fermi_scrypt_core_kernelB_texILi1ELi1EEvPjj' for 'sm_80'
ptxas info    : Function properties for _Z29fermi_scrypt_core_kernelB_texILi1ELi1EEvPjj
    72 bytes stack frame, 100 bytes spill stores, 100 bytes spill loads
ptxas info    : Used 64 registers, 368 bytes cmem[0], 1 textures
ptxas info    : Compiling entry function '_Z29fermi_scrypt_core_kernelB_texILi0ELi1EEvPjj' for 'sm_80'
ptxas info    : Function properties for _Z29fermi_scrypt_core_kernelB_texILi0ELi1EEvPjj
    72 bytes stack frame, 100 bytes spill stores, 100 bytes spill loads
ptxas info    : Used 64 registers, 368 bytes cmem[0], 1 textures
ptxas info    : Compiling entry function '_Z28fermi_scrypt_core_kernelA_LGILi1EEvPjjj' for 'sm_80'
ptxas info    : Function properties for _Z28fermi_scrypt_core_kernelA_LGILi1EEvPjjj
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 64 registers, 368 bytes cmem[0]
ptxas info    : Compiling entry function '_Z28fermi_scrypt_core_kernelA_LGILi0EEvPjjj' for 'sm_80'
ptxas info    : Function properties for _Z28fermi_scrypt_core_kernelA_LGILi0EEvPjjj
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 64 registers, 368 bytes cmem[0]
ptxas info    : Compiling entry function '_Z25fermi_scrypt_core_kernelAILi1EEvPjj' for 'sm_80'
ptxas info    : Function properties for _Z25fermi_scrypt_core_kernelAILi1EEvPjj
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 64 registers, 364 bytes cmem[0]
ptxas info    : Compiling entry function '_Z25fermi_scrypt_core_kernelAILi0EEvPjj' for 'sm_80'
ptxas info    : Function properties for _Z25fermi_scrypt_core_kernelAILi0EEvPjj
    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info    : Used 64 registers, 364 bytes cmem[0]
fermi_kernel.cu: In member function ‘virtual bool FermiKernel::bindtexture_1D(uint32_t*, size_t)’:
fermi_kernel.cu:69:64: warning: ‘cudaError_t cudaBindTexture(size_t*, const textureReference*, const void*, const cudaChannelFormatDesc*, size_t)’ is deprecated [-Wdeprecated-declarations]
   69 |     checkCudaErrors(cudaBindTexture(NULL, &texRef1D_4_V, d_V, &channelDesc4, size));
      |                                                                ^
/usr/include/cuda_runtime_api.h:7714:46: note: declared here
 7714 | extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaBindTexture(size_t *offset, const struct textureReference *texref, const void *devPtr, const struct cudaChannelFormatDesc *desc, size_t size __dv(UINT_MAX));
      |                                              ^~~~~~~~~~~~~~~
fermi_kernel.cu:69:64: warning: ‘cudaError_t cudaBindTexture(size_t*, const textureReference*, const void*, const cudaChannelFormatDesc*, size_t)’ is deprecated [-Wdeprecated-declarations]
   69 |     checkCudaErrors(cudaBindTexture(NULL, &texRef1D_4_V, d_V, &channelDesc4, size));
      |                                                                ^
/usr/include/cuda_runtime_api.h:7714:46: note: declared here
 7714 | extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaBindTexture(size_t *offset, const struct textureReference *texref, const void *devPtr, const struct cudaChannelFormatDesc *desc, size_t size __dv(UINT_MAX));
      |                                              ^~~~~~~~~~~~~~~
fermi_kernel.cu: In member function ‘virtual bool FermiKernel::bindtexture_2D(uint32_t*, int, int, size_t)’:
fermi_kernel.cu:85:82: warning: ‘cudaError_t cudaBindTexture2D(size_t*, const textureReference*, const void*, const cudaChannelFormatDesc*, size_t, size_t, size_t)’ is deprecated [-Wdeprecated-declarations]
   85 |     checkCudaErrors(cudaBindTexture2D(NULL, &texRef2D_4_V, d_V, &channelDesc4, width, height, pitch));
      |                                                                                  ^
/usr/include/cuda_runtime_api.h:7773:46: note: declared here
 7773 | extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaBindTexture2D(size_t *offset, const struct textureReference *texref, const void *devPtr, const struct cudaChannelFormatDesc *desc, size_t width, size_t height, size_t pitch);
      |                                              ^~~~~~~~~~~~~~~~~
fermi_kernel.cu:85:82: warning: ‘cudaError_t cudaBindTexture2D(size_t*, const textureReference*, const void*, const cudaChannelFormatDesc*, size_t, size_t, size_t)’ is deprecated [-Wdeprecated-declarations]
   85 |     checkCudaErrors(cudaBindTexture2D(NULL, &texRef2D_4_V, d_V, &channelDesc4, width, height, pitch));
      |                                                                                  ^
/usr/include/cuda_runtime_api.h:7773:46: note: declared here
 7773 | extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaBindTexture2D(size_t *offset, const struct textureReference *texref, const void *devPtr, const struct cudaChannelFormatDesc *desc, size_t width, size_t height, size_t pitch);
      |                                              ^~~~~~~~~~~~~~~~~
fermi_kernel.cu: In member function ‘virtual bool FermiKernel::unbindtexture_1D()’:
fermi_kernel.cu:91:31: warning: ‘cudaError_t cudaUnbindTexture(const texture<T, dim, readMode>&) [with T = uint4; int dim = 1; cudaTextureReadMode readMode = cudaReadModeElementType; cudaError_t = cudaError]’ is deprecated [-Wdeprecated-declarations]
   91 |     checkCudaErrors(cudaUnbindTexture(texRef1D_4_V));
      |                               ^
/usr/include/cuda_runtime.h:1304:53: note: declared here
 1304 | static __CUDA_DEPRECATED __inline__ __host__ cudaError_t cudaUnbindTexture(
      |                                                     ^~~~~~~~~~~~~~~~~
fermi_kernel.cu:91:31: warning: ‘cudaError_t cudaUnbindTexture(const texture<T, dim, readMode>&) [with T = uint4; int dim = 1; cudaTextureReadMode readMode = cudaReadModeElementType; cudaError_t = cudaError]’ is deprecated [-Wdeprecated-declarations]
   91 |     checkCudaErrors(cudaUnbindTexture(texRef1D_4_V));
      |                               ^
/usr/include/cuda_runtime.h:1304:53: note: declared here
 1304 | static __CUDA_DEPRECATED __inline__ __host__ cudaError_t cudaUnbindTexture(
      |                                                     ^~~~~~~~~~~~~~~~~
fermi_kernel.cu: In member function ‘virtual bool FermiKernel::unbindtexture_2D()’:
fermi_kernel.cu:97:31: warning: ‘cudaError_t cudaUnbindTexture(const texture<T, dim, readMode>&) [with T = uint4; int dim = 2; cudaTextureReadMode readMode = cudaReadModeElementType; cudaError_t = cudaError]’ is deprecated [-Wdeprecated-declarations]
   97 |     checkCudaErrors(cudaUnbindTexture(texRef2D_4_V));
      |                               ^
/usr/include/cuda_runtime.h:1304:53: note: declared here
 1304 | static __CUDA_DEPRECATED __inline__ __host__ cudaError_t cudaUnbindTexture(
      |                                                     ^~~~~~~~~~~~~~~~~
fermi_kernel.cu:97:31: warning: ‘cudaError_t cudaUnbindTexture(const texture<T, dim, readMode>&) [with T = uint4; int dim = 2; cudaTextureReadMode readMode = cudaReadModeElementType; cudaError_t = cudaError]’ is deprecated [-Wdeprecated-declarations]
   97 |     checkCudaErrors(cudaUnbindTexture(texRef2D_4_V));
      |                               ^
/usr/include/cuda_runtime.h:1304:53: note: declared here
 1304 | static __CUDA_DEPRECATED __inline__ __host__ cudaError_t cudaUnbindTexture(
      |                                                     ^~~~~~~~~~~~~~~~~
nvcc -g -O2 -Xptxas "-v" -arch=sm_80 --maxrregcount=32 -I./compat/jansson -o kepler_kernel.o -c kepler_kernel.cu
kepler_kernel.cu(69): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(69): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(69): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(69): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(69): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(69): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(69): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(69): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(149): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(149): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(150): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(150): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(151): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(151): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(154): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(154): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(155): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(155): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(156): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(156): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(309): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(309): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(310): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(310): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(311): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(311): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(324): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(324): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(325): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(325): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(326): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(326): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(343): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(343): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(344): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(344): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(345): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(345): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(352): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(352): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(353): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(353): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(354): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(354): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(399): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(399): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(400): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(400): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(401): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(401): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(409): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(409): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(410): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(410): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(411): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(411): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(428): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(428): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(429): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(429): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(430): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(430): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(438): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(438): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(439): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(439): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(440): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(440): error: no suitable conversion function from "uint4" to "unsigned int" exists

kepler_kernel.cu(715): warning: variable "num_sleeps" was declared but never referenced

kepler_kernel.cu(716): warning: variable "sleeptime" was declared but never referenced

kepler_kernel.cu(102): error: no suitable constructor exists to convert from "int" to "uint4"
          detected during instantiation of "void kepler_scrypt_core_kernelA<ALGO,SCHEME>(const uint32_t *, int, int) [with ALGO=0, SCHEME=ANDERSEN]" 
(722): here

kepler_kernel.cu(102): error: no operator "+" matches these operands
            operand types are: uint4 + int
          detected during instantiation of "void kepler_scrypt_core_kernelA<ALGO,SCHEME>(const uint32_t *, int, int) [with ALGO=0, SCHEME=ANDERSEN]" 
(722): here

kepler_kernel.cu(117): error: no suitable constructor exists to convert from "int" to "uint4"
          detected during instantiation of "void kepler_scrypt_core_kernelA<ALGO,SCHEME>(const uint32_t *, int, int) [with ALGO=0, SCHEME=ANDERSEN]" 
(722): here

kepler_kernel.cu(117): error: no operator "+" matches these operands
            operand types are: uint4 + int
          detected during instantiation of "void kepler_scrypt_core_kernelA<ALGO,SCHEME>(const uint32_t *, int, int) [with ALGO=0, SCHEME=ANDERSEN]" 
(722): here

kepler_kernel.cu(560): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(560): error: no operator "&" matches these operands
            operand types are: uint4 & uint32_t

kepler_kernel.cu(591): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(591): error: no operator "&" matches these operands
            operand types are: uint4 & uint32_t

kepler_kernel.cu(600): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(600): error: no operator "&" matches these operands
            operand types are: uint4 & uint32_t

kepler_kernel.cu(624): error: no suitable constructor exists to convert from "int" to "uint4"

kepler_kernel.cu(624): error: no operator "&" matches these operands
            operand types are: uint4 & uint32_t

80 errors detected in the compilation of "kepler_kernel.cu".
make[2]: *** [Makefile:1163: kepler_kernel.o] Error 1
make[2]: Leaving directory '/data/Install/UNIX/CudaMiner-master'
make[1]: *** [Makefile:701: all-recursive] Error 1
make[1]: Leaving directory '/data/Install/UNIX/CudaMiner-master'
make: *** [Makefile:419: all] Error 2

What shall I do?

horrokotoj commented 3 years ago

I just ran into this issue aswell.

tfinnegan937 commented 3 years ago

I am running into the exact same issue.

neojou commented 2 years ago

I am running into the similar issue.The tested graphic card is Nivida 3060 ti here.

It's found that the program can be built out and run, by changing the gpu architecture to sm_60, and taking off -abi=no.

sed -i s/compute_10/sm_60/g Makefile.am Makefile.in sed -i s/sm_30/sm_60/g Makefile.am Makefile.in sed -i "s/-abi=no //g" Makefile.am Makefile.in

gregchi commented 1 year ago

Thanks, that worked with RTX 3090 Ti, CUDA 11.8, Debian 11.