Code Monkey home page Code Monkey logo

Comments (11)

pingiun avatar pingiun commented on July 25, 2024 7

I was able to fix this by commenting and uncommenting some lines in my Makefile at line 395. I was able to compile with these lines:

#NVCC_GENCODE           = -gencode=arch=compute_35,code=\"sm_35,compute_35\"
NVCC_GENCODE            = -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\"
#NVCC_GENCODE = -gencode=arch=code=\"sm_20\" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\"

from ccminer-cryptonight.

pingiun avatar pingiun commented on July 25, 2024 6

After more research I found that the newest cuda version (9.0) doesn't support compute_20 anymore. This means that you have two options, disable the compute_20 target or install cuda version 8.0. If your GPU supports newer compute architectures you should use the newest cuda version and disable compute_20.

from ccminer-cryptonight.

pingiun avatar pingiun commented on July 25, 2024 5

from ccminer-cryptonight.

codejkn3 avatar codejkn3 commented on July 25, 2024 4

Leave the "-v", that worked for me:

-Xptxas "-v" $(NVCC_GENCODE) --maxrregcount=80 .........

from ccminer-cryptonight.

unRARed avatar unRARed commented on July 25, 2024 4

Just in case it helps someone, combo of both @pingiun suggestions got it compiling successfully on my machine (16.04 w/ GTX 780). In Makefile replace NVCC_GENCODE block with :

NVCC_GENCODE = -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\"

and remove -abi=no (preserve the -v).

from ccminer-cryptonight.

MoinFaraz avatar MoinFaraz commented on July 25, 2024 1

@pingiun Unfortunately, that didn't work out for me. I'm now getting this error.

nvcc -g -O2 -I . -Xptxas "-abi=no -v" -gencode=arch=compute_30,code="sm_30,compute_30" -gencode=arch=compute_35,code="sm_35,compute_35" --maxrregcount=80 --ptxas-options=-v -I./compat/jansson -o cryptonight/cryptonight.o -c cryptonight/cryptonight.cu
ptxas error : Invalid value 'no' for option -abi.
ptxas warning : Too big maxrregcount value specified 80, will be ignored
ptxas fatal : Ptx assembly aborted due to errors
Makefile:1155: recipe for target 'cryptonight/cryptonight.o' failed
make[2]: *** [cryptonight/cryptonight.o] Error 255
make[2]: Leaving directory '/home/faraz/Downloads/ccminer-cryptonight-0.17'
Makefile:729: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/faraz/Downloads/ccminer-cryptonight-0.17'
Makefile:399: recipe for target 'all' failed
make: *** [all] Error 2

from ccminer-cryptonight.

CyberMix avatar CyberMix commented on July 25, 2024

I have the same problem.

from ccminer-cryptonight.

MoinFaraz avatar MoinFaraz commented on July 25, 2024

I've removed "-abi=no -v" from makefile, ran make again. Got this error:

ptxas fatal : Unknown option 'gencode'
Makefile:1155: recipe for target 'cryptonight/cryptonight.o' failed
make[2]: *** [cryptonight/cryptonight.o] Error 255
make[2]: Leaving directory '/home/faraz/Downloads/ccminer-cryptonight-0.17'
Makefile:729: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/faraz/Downloads/ccminer-cryptonight-0.17'
Makefile:399: recipe for target 'all' failed
make: *** [all] Error 2

from ccminer-cryptonight.

pingiun avatar pingiun commented on July 25, 2024

from ccminer-cryptonight.

shermanowen avatar shermanowen commented on July 25, 2024

in the file Makefile.am find each line that contains
$(NVCC) $(JANSSON_INCLUDES) -I. @CUDA_INCLUDES@ @CUDA_CFLAGS@ -gencode=arch=compute_20,code="sm_21,compute_20" -o $@ -c $<
or
$(NVCC) $(nvcc_FLAGS) -gencode=arch=compute_35,code="sm_35,compute_35" -o $@ -c $<

after salsa_kernel.cu and replace the whole line with

$(NVCC) $(nvcc_FLAGS) --maxrregcount=64 -o $@ -c $<

I don't know how this got left in but it allow a clean compile.

then run
./autogen.sh
./build.sh

from ccminer-cryptonight.

prajshr avatar prajshr commented on July 25, 2024

Still getting this error,

make all-recursive
make[1]: Entering directory '/root/downloads/ccminer-cryptonight'
Making all in compat
make[2]: Entering directory '/root/downloads/ccminer-cryptonight/compat'
Making all in jansson
make[3]: Entering directory '/root/downloads/ccminer-cryptonight/compat/jansson'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/downloads/ccminer-cryptonight/compat/jansson'
make[3]: Entering directory '/root/downloads/ccminer-cryptonight/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/downloads/ccminer-cryptonight/compat'
make[2]: Leaving directory '/root/downloads/ccminer-cryptonight/compat'
make[2]: Entering directory '/root/downloads/ccminer-cryptonight'
nvcc -g -O2 -I . -Xptxas "-v" -gencode=arch=compute_30,code="sm_30,compute_30" -gencode=arch=compute_35,code="sm_35,compute_35" --maxrregcount=80 --ptxas-options=-v -I./compat/jansson -o cryptonight/cryptonight.o -c cryptonight/cryptonight.cu
/bin/bash: nvcc: command not found
Makefile:1156: recipe for target 'cryptonight/cryptonight.o' failed
make[2]: *** [cryptonight/cryptonight.o] Error 127
make[2]: Leaving directory '/root/downloads/ccminer-cryptonight'
Makefile:730: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/downloads/ccminer-cryptonight'
Makefile:400: recipe for target 'all' failed
make: *** [all] Error 2

from ccminer-cryptonight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.