Code Monkey home page Code Monkey logo

Comments (13)

PsychicCat avatar PsychicCat commented on July 25, 2024 14

Solution is to add -D_FORCE_INLINES in the Makefile when compiling.

example:
NVCC_GENCODE = -D_FORCE_INLINES -gencode=arch=compute_20,code="sm_20,compute

Although I did not have this issue when using CUDA 8, but with CUDA 7.5 I needed to add the flag.

from ccminer-cryptonight.

 avatar commented on July 25, 2024 7
.cu.o:
        $(NVCC) -g -O2 -I . -Xptxas "-abi=no -v" $(NVCC_GENCODE) --maxrregcount=80 --ptxas-options=-v -D_FORCE_INLINES $(JANSSON_INCLUDES) -o $@ -c $<

added: -D_FORCE_INLINES in Makefile

from ccminer-cryptonight.

PsychicCat avatar PsychicCat commented on July 25, 2024 2

@emkman haven't seen that issue myself but first try https://github.com/KlausT/ccminer-cryptonight, this fork is being actively maintained.

from ccminer-cryptonight.

paulomalvar avatar paulomalvar commented on July 25, 2024

Same here!

from ccminer-cryptonight.

ben-kuhn avatar ben-kuhn commented on July 25, 2024

Well, considering it's been almost 2 years since the last commit, it may be time to look elsewhere...

from ccminer-cryptonight.

paulomalvar avatar paulomalvar commented on July 25, 2024

And where is elsewhere?

from ccminer-cryptonight.

emkman avatar emkman commented on July 25, 2024

After making @PsychicCat change, compile was succesful but now when running I get:

*** stack smashing detected ***: ./ccminer terminated
Aborted (core dumped)

Ubuntu 16.04 Xenial with Cuda 8 drivers. Any ideas?

from ccminer-cryptonight.

emkman avatar emkman commented on July 25, 2024

@PsychicCat excellent, thank you!

from ccminer-cryptonight.

dj--alex avatar dj--alex commented on July 25, 2024

GTX 1060, Nv 387, cuda 9 , Linux Mint 18.2 x64 , Ryzen 5
i use this manual.
http://fucking-it.com/ru/2016-01-21-14-35-44/bitcoin/854-monero-ccminer-cryptonight-gpu-miner-na-linux

/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;

anybody knows how to do with it?

Somewhere in internet i found method , but this is not work
NVCCFLAGS - are not exist. (nvcc of course inalled)

After a long time looking through various internet sources I solved this problem by going to the Makefile and changing the line

NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)

into

NVCCFLAGS += -D_FORCE_INLINES -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)

For me this was on line 406

from ccminer-cryptonight.

Qiang-Yang-CN avatar Qiang-Yang-CN commented on July 25, 2024

For anybody who had this error shown on his/her terminal while running cuIBM (Immersed Boundary Method Solver developed by the Lorena Barba group)
When running "make" as it says in the tutorial https://github.com/barbagroup/cuIBM
An error massage may jump out saying
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
This can be solved adding -D_FORCE_INLINES at the end of the line 10 of the "make" file in the cuIBM folder, so it would look like this:
CCFLAGS = -arch=sm_21 -O3 -D_FORCE_INLINES
On the other hand, its important to modify the compute capability to your nvdia version
see: https://developer.nvidia.com/cuda-gpus

I dont konw if its ok to write it here, if not please notify me.

from ccminer-cryptonight.

gldneagl avatar gldneagl commented on July 25, 2024

@comarius That worked. Thank you.

from ccminer-cryptonight.

2018loveyyq avatar 2018loveyyq commented on July 25, 2024

GTX 1060, Nv 387, cuda 9 , Linux Mint 18.2 x64 , Ryzen 5
i use this manual.
http://fucking-it.com/ru/2016-01-21-14-35-44/bitcoin/854-monero-ccminer-cryptonight-gpu-miner-na-linux

/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;

anybody knows how to do with it?

Somewhere in internet i found method , but this is not work
NVCCFLAGS - are not exist. (nvcc of course inalled)

After a long time looking through various internet sources I solved this problem by going to the Makefile and changing the line

NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)

into

NVCCFLAGS += -D_FORCE_INLINES -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)

For me this was on line 406

where is Makefile

from ccminer-cryptonight.

2018loveyyq avatar 2018loveyyq commented on July 25, 2024

can you tell me where is the Makefile,i dont know how to find it and modify it as you say

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.