Comments (13)
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.
.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.
@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.
Same here!
from ccminer-cryptonight.
Well, considering it's been almost 2 years since the last commit, it may be time to look elsewhere...
from ccminer-cryptonight.
And where is elsewhere?
from ccminer-cryptonight.
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.
@PsychicCat excellent, thank you!
from ccminer-cryptonight.
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.
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.
@comarius That worked. Thank you.
from ccminer-cryptonight.
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.
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)
- gtx 1080 ftw fatal: failed to allocate device memory for long state HOT 5
- Stratum Detected New Block HOT 4
- nvcc fatal : Unsupported gpu architecture 'compute_20' HOT 11
- Simple question about threads
- Mining with Geforce 210 but minergate*com dashboard not show speed increase HOT 2
- GPU #0: FATAL: failed to allocate device memory for long state HOT 26
- error: ‘memcpy’ was not declared in this scope HOT 9
- Program wont run/start HOT 1
- nvcc Unsupported gpu architecture 'compute_20' HOT 1
- Miner failing after warning..screenshot HOT 2
- Debian 9 make error : /usr/bin/ld: final link failed: Nonrepresentable section on output HOT 2
- GTX 1070 very low hashrate
- cryptonight algorithm reports insanely high hashrate on compute_1.x
- /usr/bin/ld: cannot find -lcudart HOT 3
- Do not get any shares HOT 2
- GPU #0: FATAL: failed to allocate device memory for long state HOT 2
- Won't start properly HOT 1
- miner for my seed coin
- Stack Smashing Detected
- Please add new custom algorithm CryptoNight Heavy X
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccminer-cryptonight.