title: Passing variables to CUDA kernel
body: <p>So, I am writing a PDE solver in <strong>CUDA C++</strong>. The solver is a function which in turn calls the cuda kernel to solve the PDE. Now, I want to use the PDE parameters as arguments to the kernel. That means I have to malloc for those variables like
  <code>cudaMalloc((void **)&amp;Nt_d,size);</code> and then <code>cudaMemcpy(&amp;Nt_d,Nt,size,cudaMemcpyHostToDevice);</code>(Nt is an integer) which is for pointers. I want to pass <strong>integers</strong> and as well as <strong>floats</strong>, i.e non-pointer variables but can't find the correct syntax for it. I don't want to use the parameters as global constants. I want to use them as arguments to the kernel. Is there any way to do so?
  Your help is highly appreciated.</p>