# Makefile:476: recipe for target 'runtest' failed

**URL:** <https://forums.developer.nvidia.com/t/makefile-recipe-for-target-runtest-failed/56415>\
**Category:** CUDA Setup and Installation\
**Created:** [December 21, 2017, 3:08am UTC](https://forums.developer.nvidia.com/t/makefile-recipe-for-target-runtest-failed/56415 "2017-12-21T03:08:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MHRahman](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@MHRahman](https://forums.developer.nvidia.com/u/MHRahman)\
**Post date:** [December 21, 2017, 3:08am UTC](https://forums.developer.nvidia.com/t/makefile-recipe-for-target-runtest-failed/56415/1 "2017-12-21T03:08:24Z")

</div>

Dear sir,  
When I do make runtest,caffe shows the message bellow:  
F1221 10:25:21.685459 9173 syncedmem.cpp:57] Check failed: error == cudaSuccess (30 vs. 0) unknown error  
\*\*\* Check failure stack trace: \*\*\*  
@ 0x7f82f07d95cd google::LogMessage::Fail()  
@ 0x7f82f07db433 google::LogMessage::SendToLog()  
@ 0x7f82f07d915b google::LogMessage::Flush()  
@ 0x7f82f07dbe1e google::LogMessageFatal::~LogMessageFatal()  
@ 0x7f82eec22ce8 caffe::SyncedMemory::gpu\_data()  
@ 0x7f82eec69612 caffe::Blob\<\>::gpu\_data()  
@ 0x7f82eecaab4c caffe::ConvolutionLayer\<\>::Forward\_gpu()  
@ 0x45bcf2 caffe::Layer\<\>::Forward()  
@ 0x45ec74 caffe::GradientChecker\<\>::CheckGradientSingle()  
@ 0x463633 caffe::GradientChecker\<\>::CheckGradientExhaustive()  
@ 0x752d5f caffe::ConvolutionLayerTest\_Test1x1Gradient\_Test\<\>::TestBody()  
@ 0x7c86d3 testing::internal::HandleExceptionsInMethodIfSupported\<\>()  
@ 0x7c1cea testing::Test::Run()  
@ 0x7c1e38 testing::TestInfo::Run()  
@ 0x7c1f15 testing::TestCase::Run()  
@ 0x7c31ef testing::internal::UnitTestImpl::RunAllTests()  
@ 0x7c3513 testing::UnitTest::Run()  
@ 0x451059 main  
@ 0x7f82eded6830 \_\_libc\_start\_main  
@ 0x457259 \_start  
@ (nil) (unknown)  
Makefile:476: recipe for target ‘runtest’ failed  
make: \*\*\* [runtest] Aborted (core dumped)

Please help me how to solve this problem.I am using cuda 8 and cudnn 4.

---

<div class="post-metadata">

**Author:** ![njuffa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@njuffa](https://forums.developer.nvidia.com/u/njuffa)\
**Post date:** [December 21, 2017, 3:25am UTC](https://forums.developer.nvidia.com/t/makefile-recipe-for-target-runtest-failed/56415/2 "2017-12-21T03:25:16Z")

</div>

Do the sample apps that ship with CUDA run correctly?

---

<div class="post-metadata">

**Author:** ![MHRahman](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@MHRahman](https://forums.developer.nvidia.com/u/MHRahman)\
**Post date:** [December 21, 2017, 11:17am UTC](https://forums.developer.nvidia.com/t/makefile-recipe-for-target-runtest-failed/56415/3 "2017-12-21T11:17:39Z")

</div>

Dear sir @njuffa,Thanks for your reply.I have compiled and run a model successfully about 7 days before.But when I tried to re train same model,I got some error message and decided to re compile caffe again and during make runtest I got the above message.

Dear sir,I am new in caffe and cuda.So, I am not clear about your comments.Actually,what I need to do?.Please clarify me again please.

---

<div class="post-metadata">

**Author:** ![MHRahman](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@MHRahman](https://forums.developer.nvidia.com/u/MHRahman)\
**Post date:** [December 21, 2017, 11:59am UTC](https://forums.developer.nvidia.com/t/makefile-recipe-for-target-runtest-failed/56415/4 "2017-12-21T11:59:48Z")

</div>

Dear sir@njuffa,I run samples,It shows the following message…

habib@habib:~/cuda\_samples/NVIDIA\_CUDA-8.0\_Samples/1\_Utilities/deviceQuery$ ./deviceQuery  
./deviceQuery Starting…

CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 30  
 → unknown error  
Result = FAIL

habib@habib:~$ nvidia-smi  
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Please tell me the way…how to solve…

---

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [December 21, 2017, 4:41pm UTC](https://forums.developer.nvidia.com/t/makefile-recipe-for-target-runtest-failed/56415/5 "2017-12-21T16:41:04Z")

</div>

Your CUDA install is broken.

It might be that you simply need to reboot the machine.

Otherwise follow the instructions in the linux install guide:

[url][Installation Guide Linux :: CUDA Toolkit Documentation](http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html%5B/url%5D)
