DDM02
May 3, 2017, 9:39am
1
Hi,
I am very new to cuda and caffe. In my code I am using one caffe model for one textline detection and another caffe model for chracter recognition.After detecting the textlines , I am processing all the textlines parallely for segmentation and then recognition. However, while doing recognition I get the error as follows
I0503 14:40:41.661458 3996 net.cpp:436] Input 0 -> data
I0503 14:40:41.661509 3996 layer_factory.hpp:76] Creating layer scale
I0503 14:40:41.661527 3996 net.cpp:111] Creating Layer scale
I0503 14:40:41.661536 3996 net.cpp:478] scale <- data
I0503 14:40:41.661545 3996 net.cpp:434] scale -> scaled
I0503 14:40:41.661563 3996 net.cpp:156] Setting up scale
I0503 14:40:41.661576 3996 net.cpp:164] Top shape: 1 1 20 20 (400)
I0503 14:40:41.661583 3996 layer_factory.hpp:76] Creating layer conv1
I0503 14:40:41.661597 3996 net.cpp:111] Creating Layer conv1
I0503 14:40:41.661605 3996 net.cpp:478] conv1 <- scaled
I0503 14:40:41.661615 3996 net.cpp:434] conv1 -> conv1
F0503 14:40:41.661710 3996 syncedmem.hpp:19] Check failed: error == cudaSuccess (3 vs. 0) initialization error
*** Check failure stack trace: ***
How can I fix this?
You may have a problem with your CUDA install.
Did you follow the NVIDIA-published install guide instructions for your OS, including the verification steps?
DDM02
May 4, 2017, 4:53am
3
The CUDA installation has been done correctly and verified. I have even able to successfully run program which needs a single caffe network model. The problem occurs when I need to use two caffe network models(caffeNet,LeNet) in the same program which uses parallel processing.
what is the compute mode of your GPU set to? If you’re not sure, just run
nvidia-smi
and paste the output here
DDM02
May 5, 2017, 3:59am
5
The compute mode of GPU is set to default. The output of nvidia-smi is as follows:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 361.93.02 Driver Version: 361.93.02 |
|-------------------------------+----------------------+----------------------+
| 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 750 Ti On | 0000:01:00.0 On | N/A |
| 40% 34C P8 1W / 38W | 92MiB / 2001MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1178 G /usr/lib/xorg/Xorg 69MiB |
| 0 2110 G compiz 21MiB |
+-----------------------------------------------------------------------------+