Guys... Could you help me please?... What did I make wrong?
1. I installed on my Ubuntu CUDA 9.0.176.
2. I downloaded the source from the
following link (ccminer-cuda-9).
3. I edited Makefile.am:
...
#ccminer_CPPFLAGS += -DUSE_LIBSODIUM
#ccminer_LDFLAGS += -Lequi/lib
#ccminer_LDADD += -lsodium
ccminer_LDADD += -lcuda
nvcc_ARCH = -gencode=arch=compute_61,code=\"sm_61,compute_61\"
#nvcc_ARCH += -gencode=arch=compute_52,code=\"sm_52,compute_52\"
#nvcc_ARCH += -gencode=arch=compute_35,code=\"sm_35,compute_35\"
#nvcc_ARCH += -gencode=arch=compute_30,code=\"sm_30,compute_30\"
#nvcc_ARCH += -gencode=arch=compute_20,code=\"sm_21,compute_20\"
nvcc_FLAGS = $(nvcc_ARCH) @CUDA_INCLUDES@ -I. @CUDA_CFLAGS@
nvcc_FLAGS += $(JANSSON_INCLUDES) --ptxas-options="-v"
...
4. I compiled ccminer. And here is strange thing - I got ccminer with the size about 18 MB. But last time (when i used CUDA 7.5) I got it with 34-35 MB... Myabe is it because of my Makefile.am? Ok, screw it, right?
5. ccminer --version showed everything is OK.
Now I copied just compiled
ccminer and
lib directory (with 3 files into it: libcudart.so.9.0 + libcudart.so.9.0 + libcudart.so.9.0.176) to
other PC (/home/user/ccminer/)
without installed CUDA on it.
I did:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/ccminer/lib
And then:
/home/user/ccminer/ccminer --version
Illegal instruction
Why?
I've compiled ccminer on PC with Intel CPU. And I copied it toPC with AMD CPU. But before you've said that CPU doesn't matter, doesn't it?