ethanhe42 / channel-pruning

Channel Pruning for Accelerating Very Deep Neural Networks (ICCV'17)
https://arxiv.org/abs/1707.06168
MIT License
1.08k stars 310 forks source link

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

Open felix-liuying opened 6 years ago

felix-liuying commented 6 years ago

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_CDT2017 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 commented 6 years ago

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

zhongcl-thu commented 6 years ago

replace [GPU0] by 0

yufanLIU commented 6 years ago

I have the same problem, have you solved it ?

sunny5555 commented 6 years ago

I have the same problem, have you solved it ?

sunny5555 commented 6 years ago

if replace [GPU0] by 0,If you change, this problem will occur: F0822 17:45:49.191539 12949 image_datalayer.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

zhongcl-thu commented 6 years ago

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" notifications@github.com wrote:

if replace [GPU0] by 0,If you change, this problem will occur: F0822 17:45:49.191539 12949 image_datalayer.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.

ddfabbro commented 6 years ago

@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)

deepConnectionism commented 5 years ago

-caffe 0