channel-pruning icon indicating copy to clipboard operation
channel-pruning copied to clipboard

Check failed: error == cudaSuccess (38 vs. 0) no CUDA-capable device is detected

Open felix-liuying opened this issue 6 years ago • 8 comments

Hello, I have compiled caffe-pro successfully.My cuda 9.1 is ok as follows!

felix@felix-go:~/channel-pruning$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Fri_Nov__3_21:07:56_CDT_2017 Cuda compilation tools, release 9.1, V9.1.85

But when I run python3 train.py -action c3 -caffe [GPU0] ,the error appear as follows! Look forward to your reply! Thank you!

What steps reproduce the bug?

felix@felix-go:~/channel-pruning$ python3 train.py -action c3 -caffe [GPU0] no lighting pack WARNING: Logging before InitGoogleLogging() is written to STDERR F0303 09:50:12.085932 3744 common.cpp:152] Check failed: error == cudaSuccess (38 vs. 0) no CUDA-capable device is detected

What hardware and operating system/distribution are you running?

Operating system: Ubuntu 16.04.3 64bit CUDA version: 9.1 CUDNN version: v7 openCV version: BLAS: Python version: 3.5

If the bug is a crash, provide the backtrace.

felix-liuying avatar Mar 03 '18 02:03 felix-liuying

@young-fire OK . let me add your WeChatID. Thanks

felix-liuying avatar Mar 12 '18 02:03 felix-liuying

replace [GPU0] by 0

zhongcl-thu avatar Apr 15 '18 02:04 zhongcl-thu

I have the same problem, have you solved it ?

yufanLIU avatar Apr 28 '18 08:04 yufanLIU

I have the same problem, have you solved it ?

sunny5555 avatar Aug 01 '18 08:08 sunny5555

if replace [GPU0] by 0,If you change, this problem will occur: F0822 17:45:49.191539 12949 image_data_layer.cpp:53] Check failed: !lines_.empty() File is empty *** Check failure stack trace: ***. Have you encountered this problem? Or do you know why?thank you very much @wangjx123

sunny5555 avatar Aug 22 '18 09:08 sunny5555

sorry , i haven't encounterd this problem. i don't kown why. This is also a good example for DNN-pruning ---https://github.com/slothkong/DNN-Pruning

At 2018-08-22 16:49:52, "sunny5555" [email protected] wrote:

if replace [GPU0] by 0,If you change, this problem will occur: F0822 17:45:49.191539 12949 image_data_layer.cpp:53] Check failed: !lines_.empty() File is empty *** Check failure stack trace: ***. Have you encountered this problem? Or do you know why?thank you very much @wangjx123

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

zhongcl-thu avatar Aug 22 '18 14:08 zhongcl-thu

@sunny5555 The message

 F0822 17:45:49.191539 12949 image_data_layer.cpp:53] Check failed: !lines_.empty() File is empty

has nothing to do with your GPU device name.

The repo maintainer addressed this issue here. According to him

This means you didn't set image data path or mean image path.

Check your temp/vgg.prototxt file (line 12 and 36)

ddfabbro avatar Sep 11 '18 16:09 ddfabbro

-caffe 0

deepConnectionism avatar May 29 '19 07:05 deepConnectionism