title: Why am I getting a undefined symbol error for cuMemcpyDtoH_v2 in CUDA
body: <p>I am getting undefined symbol error for cuMemcpyDtoH_v2 when trying to compile my code.  I guess my question is where is cuMemcpyDtoH_v2 defined?  I thought it would be defined in the cuda runtime enviornment but that appears to not be the case.  Here is my code:</p>
  
  <pre><code>#include &lt;/usr/local/cuda/include/cufft.h&gt;
  #include &lt;/usr/local/cuda/include/cuda.h&gt;
  
  void main()
  {
     ...
     cuMemcpyDtoH_v2(v1, v2, ds);
     ...
  }
  </code></pre>
  
  <p>To compile I am using the python disutils.core setup.py since I am linking python code to cuda code and creating a Python C extension.</p>
  
  <pre><code>python myFunc.py -build_ext --inplace -lcudart -lcufft -L"/usr/local/cuda/lib64/"
  </code></pre>
  
  <p>myFunc.py has a call to the disutils.core.setup() command which is used to compile python extensions.  </p>
  
  <p>I assume that cuMemcpyDtoH_v2 would be defined in the cuda runtime enviornment which I believe that I am linking to with the "-lcudart" command but perhaps that is not the case.</p>
  
  <p>I am very new to C++ programming and Cuda so I could perhaps be making a very stupid mistake somewhere.  I would appreciate any help.</p>