# Problem or Bug with the CUDACCompiler\[\] function and recognizing compilers.

**URL:** <https://community.wolfram.com/t/problem-or-bug-with-the-cudaccompiler-function-and-recognizing-compilers/1267>\
**Category:** Questions\
**Tags:** mathematica, external-interfaces\
**Created:** [January 13, 2014, 9:16pm UTC](https://community.wolfram.com/t/problem-or-bug-with-the-cudaccompiler-function-and-recognizing-compilers/1267 "2014-01-13T21:16:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josecalderon](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/josecalderon/32/34904_2.png) [@josecalderon](https://community.wolfram.com/u/josecalderon)\
**Post date:** [January 13, 2014, 9:16pm UTC](https://community.wolfram.com/t/problem-or-bug-with-the-cudaccompiler-function-and-recognizing-compilers/1267/1 "2014-01-13T21:16:26Z")

</div>

Using WIndows 7 , Mathematica 9.0 , I entered:

```auto
In[33]:= CCompilers[]

Out[33]= {{"Name" -> "Visual Studio",
  "Compiler" ->
   CCompilerDriver`VisualStudioCompiler`VisualStudioCompiler,
  "CompilerInstallation" ->
   "C:\\Program Files\\Microsoft Visual Studio 11.0",
  "CompilerName" -> Automatic}, {"Name" -> "NVIDIA CUDA Compiler",
  "Compiler" -> NVCCCompiler,
  "CompilerInstallation" ->
   "C:\\Users\\jecalderon\\AppData\\Roaming\\Mathematica\\Paclets\\\
Repository\\CUDAResources-Win-9.0.0.0\\CUDAToolkit\\bin\\",
  "CompilerName" -> Automatic}}

```

Then I entered

```auto
In[34]:= CUDACCompilers[]

Out[34]= {}

```

The CCompilers function identifies the CUDA as a C compiler. But the CUDACCompilers function can not detect the very same NVidia as a CUDA compiler. Is in this a straight contradiction? Will this represent a bug?

---

<div class="post-metadata">

**Author:** ![nesearal](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@nesearal](https://community.wolfram.com/u/nesearal)\
**Post date:** [November 8, 2014, 12:52am UTC](https://community.wolfram.com/t/problem-or-bug-with-the-cudaccompiler-function-and-recognizing-compilers/1267/2 "2014-11-08T00:52:20Z")

</div>

Hi, I hope you have solved the problem already but I think you have to check if your CUDA toolkit version supports the installed visual studio version. For example for toolkit version 6.5, table 2 at the following website gives the list of supported versions.

> **[CUDA Toolkit Documentation](https://docs.nvidia.com/cuda/index.html)**
