# Cuda Unknown error (code error 30)

**URL:** <https://forums.developer.nvidia.com/t/cuda-unknown-error-code-error-30/46765>\
**Category:** CUDA Programming and Performance\
**Created:** [December 13, 2016, 3:08pm UTC](https://forums.developer.nvidia.com/t/cuda-unknown-error-code-error-30/46765 "2016-12-13T15:08:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aLbErT\_h](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aLbErT\_h](https://forums.developer.nvidia.com/u/aLbErT_h)\
**Post date:** [December 13, 2016, 3:08pm UTC](https://forums.developer.nvidia.com/t/cuda-unknown-error-code-error-30/46765/1 "2016-12-13T15:08:32Z")

</div>

Hi,

I get a unknown error (with code 30) after execute thousands of kernels.

I put traces in the code and I saw that the error appears when I try to execute ‘cudaMalloc’ but I don’t understand this because I used ‘cudaMemGetInfo’ and all the memory was free.

Also I am executing my simulations with ‘cuda-memcheck’ and I can’t see any error. Finally this error provokes a crash of device and I need to reset the workstation.

Someone has been the same or a similar error?

Thank you.

---

<div class="post-metadata">

**Author:** ![aLbErT\_h](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aLbErT\_h](https://forums.developer.nvidia.com/u/aLbErT_h)\
**Post date:** [December 13, 2016, 3:57pm UTC](https://forums.developer.nvidia.com/t/cuda-unknown-error-code-error-30/46765/2 "2016-12-13T15:57:11Z")

</div>

If I execute the the simulations with a small number of kernel executions the simulations finish.

The following trace is with ‘cuda-memcheck’.

```auto
========= CUDA-MEMCHECK
----------------------------------------------------------
| SOFTWARE 0.5 -INIT |
----------------------------------------------------------
Disabling prefiltering 10 1 100
INPUT file: tk_set_cf_bcc_p1000.mol2
Reference INPUT file: tk_query_bcc.mol2
Reference OUTPUT file: ./20161213164052_13832_test/tk_query_bcc_out.mol2

Reading reference molecule 1
OUTPUT file: ./20161213164052_13832_test/tk_set_cf_bcc_p1000_ref1_out

Reading reference molecule 2
OUTPUT file: ./20161213164052_13832_test/tk_set_cf_bcc_p1000_ref2_out
----------------------------------------------------------
| SOFTWARE 0.5 - FINISHED |
----------------------------------------------------------
========= Internal error (7)
========= No CUDA-MEMCHECK results found

```

The cuda-memcheck doesn’t get error but I can see a ‘Internal error (7)’, what does it mean?

---

<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 13, 2016, 5:11pm UTC](https://forums.developer.nvidia.com/t/cuda-unknown-error-code-error-30/46765/3 "2016-12-13T17:11:41Z")

</div>

“internal error” means something unexpected happened inside the program (here: cuda-memcheck), and that there is no public information about this. Mostly these are debugging hints for the developers.

Internal errors should not occur, and any instances encountered are usually worth reporting via the normal bug-reporting channels but you will need to submit a repro case with the bug report, which may be non-trivial in a case like this.

---

<div class="post-metadata">

**Author:** ![aLbErT\_h](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aLbErT\_h](https://forums.developer.nvidia.com/u/aLbErT_h)\
**Post date:** [December 13, 2016, 7:18pm UTC](https://forums.developer.nvidia.com/t/cuda-unknown-error-code-error-30/46765/4 "2016-12-13T19:18:11Z")

</div>

Yes,

It is a strange error… at the moment I don’t know to solve it. But the more strange is that the error doesn’t happen in the same point, it is random…

---

<div class="post-metadata">

**Author:** ![aLbErT\_h](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aLbErT\_h](https://forums.developer.nvidia.com/u/aLbErT_h)\
**Post date:** [December 14, 2016, 9:25am UTC](https://forums.developer.nvidia.com/t/cuda-unknown-error-code-error-30/46765/5 "2016-12-14T09:25:57Z")

</div>

Hi,

I read this topic [https://devtalk.nvidia.com/default/topic/459869/cuda-programming-and-performance/-quot-display-driver-stopped-responding-and-has-recovered-quot-wddm-timeout-detection-and-recovery-/](https://devtalk.nvidia.com/default/topic/459869/cuda-programming-and-performance/-quot-display-driver-stopped-responding-and-has-recovered-quot-wddm-timeout-detection-and-recovery-/)

Could my problem be related to this?

I’ve seen that it is for Windows but… could there be the same problem with Linux?

I’m using Ubuntu 16.04 in my workstation.

Thank you.

---

<div class="post-metadata">

**Author:** ![George\_Liao](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/george_liao/32/128488_2.png) [@George\_Liao](https://forums.developer.nvidia.com/u/George_Liao)\
**Post date:** [July 7, 2017, 8:23am UTC](https://forums.developer.nvidia.com/t/cuda-unknown-error-code-error-30/46765/6 "2017-07-07T08:23:34Z")

</div>

Hi all

I encountered the same problem on linux as well. Even though it is hello world cuda program.

georgeliao@dw064:~/software\_projects/test\_code/cuda\_test$ cuda-memcheck ./a.out  
========= CUDA-MEMCHECK  
Hello World!  
========= Internal error (7)  
========= No CUDA-MEMCHECK results found

Anybody has any ideas? Could it be a bug from cuda-memcheck?

Thanks

Best regards  
George Liao
