Hey guys, Im green in CUDA programming , just need to setup bioinformatic program (Im biologist).
Maybe someone will help, cause I fight with this for about 3 weeks.
Here is the program
My computer/system specs:
cat /etc/issue
Ubuntu 14.04.5 LTS
$ cat /proc/driver/nvidia/gpus/0000\:01\:00.0/information
Model: GeForce GTX 960M
IRQ: 133
GPU UUID: GPU-979fb942-e752-0554-b26a-380bec0967f5
Video BIOS: 82.07.82.00.10
Bus Type: PCIe
DMA Size: 40 bits
DMA Mask: 0xffffffffff
Bus Location: 0000:01:00.0
Device Minor: 0
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Mon_Feb_16_22:59:02_CST_2015
Cuda compilation tools, release 7.0, V7.0.27
$ echo $PATH
/usr/local/cuda-7.0/bin:~/blast/ncbi-blast-2.2.28+-src/c++/GCC480-ReleaseMT64/bin:~/miniconda3/bin:/home/marcin/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/cuda/bin:/home/marcin/ffas/soft
$ echo $LD_LIBRARY_PATH
/usr/local/cuda-7.0/lib64
I have set:
echo -e "blacklist nouveau\nblacklist lbm-nouveau\noptions nouveau modeset=0\nalias nouveau off\nalias lbm-nouveau off\n" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
I do installation from site instruction:
1. unpacking CUDAMPF-master.zip
2. $ cd CUDAMPF-master/one\ batchIO\ version/
3. make all
and get this:
$ make all
g++ -I/usr/local/cuda-7.0/samples/common/inc -I/usr/local/cuda-7.0/include -o main_function.o -c main_function.cpp -I.
In file included from main_function.cpp:7:0:
header_def.h:48:0: warning: "INFINITY" redefined [enabled by default]
#define INFINITY 999999999 //infinity
^
In file included from /usr/include/math.h:38:0,
from header_def.h:12,
from main_function.cpp:7:
/usr/include/x86_64-linux-gnu/bits/inf.h:26:0: note: this is the location of the previous definition
# define INFINITY (__builtin_inff())
^
main_function.cpp: In function 'int main(int, char**)':
main_function.cpp:192:39: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
handle = read_kernel("SMEM_SSV.cuh"); /* read SMEM */
^
main_function.cpp:207:39: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
handle = read_kernel("LMEM_SSV.cuh"); /* read LMEM */
^
main_function.cpp:230:39: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
handle = read_kernel("SMEM_MSV.cuh");
^
main_function.cpp:243:39: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
handle = read_kernel("LMEM_MSV.cuh");
^
main_function.cpp:262:39: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
handle = read_kernel("SMEM_VIT.cuh");
^
main_function.cpp:275:39: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
handle = read_kernel("LMEM_VIT.cuh");
^
g++ -I/usr/local/cuda-7.0/samples/common/inc -I/usr/local/cuda-7.0/include -o model_config.o -c model_config.cpp -I.
In file included from model_config.cpp:14:0:
header_def.h:48:0: warning: "INFINITY" redefined [enabled by default]
#define INFINITY 999999999 //infinity
^
In file included from /usr/include/math.h:38:0,
from model_config.cpp:10:
/usr/include/x86_64-linux-gnu/bits/inf.h:26:0: note: this is the location of the previous definition
# define INFINITY (__builtin_inff())
^
g++ -I/usr/local/cuda-7.0/samples/common/inc -I/usr/local/cuda-7.0/include -o other_function.o -c other_function.cpp -I.
In file included from other_function.cpp:5:0:
header_def.h:48:0: warning: "INFINITY" redefined [enabled by default]
#define INFINITY 999999999 //infinity
^
In file included from /usr/include/math.h:38:0,
from other_function.cpp:3:
/usr/include/x86_64-linux-gnu/bits/inf.h:26:0: note: this is the location of the previous definition
# define INFINITY (__builtin_inff())
^
g++ -I/usr/local/cuda-7.0/samples/common/inc -I/usr/local/cuda-7.0/include -o read_file.o -c read_file.cpp -I.
In file included from read_file.cpp:16:0:
header_def.h:48:0: warning: "INFINITY" redefined [enabled by default]
#define INFINITY 999999999 //infinity
^
In file included from /usr/include/math.h:38:0,
from read_file.cpp:10:
/usr/include/x86_64-linux-gnu/bits/inf.h:26:0: note: this is the location of the previous definition
# define INFINITY (__builtin_inff())
^
read_file.cpp: In function 'int get_hmm_size(char*)':
read_file.cpp:24:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* LEN = "LENG";
^
read_file.cpp: In function 'int get_Parameters(HMMER_PROFILE*, char*)':
read_file.cpp:67:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* LEN = "LENG";
^
read_file.cpp:68:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* PARA_MSV = "STATS LOCAL MSV";
^
read_file.cpp:69:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* PARA_VIT = "STATS LOCAL VITERBI";
^
read_file.cpp:70:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* PARA_FWD = "STATS LOCAL FORWARD";
^
read_file.cpp: In function 'int get_Emission(HMMER_PROFILE*, char*)':
read_file.cpp:188:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* BEGIN = " COMPO ";
^
read_file.cpp: In function 'int get_transition(HMMER_PROFILE*, char*)':
read_file.cpp:286:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char* BEGIN = " COMPO ";
^
g++ -I/usr/local/cuda-7.0/samples/common/inc -I/usr/local/cuda-7.0/include -o degenerate.o -c degenerate.cpp -I.
In file included from degenerate.cpp:5:0:
header_def.h:48:0: warning: "INFINITY" redefined [enabled by default]
#define INFINITY 999999999 //infinity
^
In file included from /usr/include/math.h:38:0,
from degenerate.cpp:3:
/usr/include/x86_64-linux-gnu/bits/inf.h:26:0: note: this is the location of the previous definition
# define INFINITY (__builtin_inff())
^
g++ -I/usr/local/cuda-7.0/samples/common/inc -I/usr/local/cuda-7.0/include -o RTC_MSV.o -c RTC_MSV.cpp -I.
In file included from RTC_MSV.cpp:5:0:
header_def.h:48:0: warning: "INFINITY" redefined [enabled by default]
#define INFINITY 999999999 //infinity
^
In file included from /usr/include/math.h:38:0,
from header_def.h:12,
from RTC_MSV.cpp:5:
/usr/include/x86_64-linux-gnu/bits/inf.h:26:0: note: this is the location of the previous definition
# define INFINITY (__builtin_inff())
^
RTC_MSV.cpp: In function 'void RTC_MSV(unsigned int, const char*, HMMER_PROFILE*, unsigned int*, unsigned int*, unsigned int*, unsigned int*, unsigned int, double*, int, int, dim3, dim3)':
RTC_MSV.cpp:214:88: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
printf("| %d | %d | %d |\n", n_pass_msv + pass_vit_msv, n_pass_msv, pass_vit_msv);
^
RTC_MSV.cpp:214:88: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
RTC_MSV.cpp:214:88: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
g++ -I/usr/local/cuda-7.0/samples/common/inc -I/usr/local/cuda-7.0/include -o RTC_VIT.o -c RTC_VIT.cpp -I.
In file included from RTC_VIT.cpp:5:0:
header_def.h:48:0: warning: "INFINITY" redefined [enabled by default]
#define INFINITY 999999999 //infinity
^
In file included from /usr/include/math.h:38:0,
from header_def.h:12,
from RTC_VIT.cpp:5:
/usr/include/x86_64-linux-gnu/bits/inf.h:26:0: note: this is the location of the previous definition
# define INFINITY (__builtin_inff())
^
RTC_VIT.cpp: In function 'void RTC_VIT(unsigned int, const char*, HMMER_PROFILE*, unsigned int*, unsigned int*, unsigned int*, unsigned int*, unsigned int, double*, int, int, dim3, dim3)':
RTC_VIT.cpp:212:49: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
printf("| %d | %d |\n", pass_vit, pass_vit);
^
RTC_VIT.cpp:212:49: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
g++ -I/usr/local/cuda-7.0/samples/common/inc -I/usr/local/cuda-7.0/include -o RTC_SSV.o -c RTC_SSV.cpp -I.
In file included from RTC_SSV.cpp:5:0:
header_def.h:48:0: warning: "INFINITY" redefined [enabled by default]
#define INFINITY 999999999 //infinity
^
In file included from /usr/include/math.h:38:0,
from header_def.h:12,
from RTC_SSV.cpp:5:
/usr/include/x86_64-linux-gnu/bits/inf.h:26:0: note: this is the location of the previous definition
# define INFINITY (__builtin_inff())
^
RTC_SSV.cpp: In function 'void RTC_SSV(unsigned int, const char*, HMMER_PROFILE*, unsigned int*, unsigned int*, unsigned int*, unsigned int*, unsigned int, double*, int, int, dim3, dim3)':
RTC_SSV.cpp:233:102: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
printf("| RECAL = %d | PASS SSV = %d | PASS VIT = %d |\n", n_recal_msv, n_pass_ssv, n_pass_vit);
^
RTC_SSV.cpp:233:102: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
RTC_SSV.cpp:233:102: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
g++ -L/usr/local/cuda-7.0/lib64 -L/usr/local/cuda-7.0/lib64/stubs -o CUDAMPF main_function.o model_config.o other_function.o read_file.o degenerate.o RTC_MSV.o RTC_VIT.o RTC_SSV.o -lcuda -lnvrtc -I.
And if i run ./CUDAMPF
Your input is: (null)
Segmentation fault (core dumped)
Masters of CUDA programming please help!
APPENDIX:
I do the same thing on my second machine with Geforce 1050ti (laptop, but i hear that this card is too CUDA capable) same system and identical problem.
EDIT:
$ nvidia-smi
Sun Jan 13 16:08:00 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 960M Off | 00000000:01:00.0 Off | N/A |
| N/A 43C P0 N/A / N/A | 323MiB / 4044MiB | 2% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1193 G /usr/lib/xorg/Xorg 166MiB |
| 0 2071 G compiz 37MiB |
| 0 2511 G ...quest-channel-token=5394311594019641651 117MiB |
+-----------------------------------------------------------------------------+