title: Problems with compiling C++/Cuda code after Linux update
body: <p>We have an in-house C++-code which partly uses CUDA. The CUDA-code is spread between the files &quot;cuda_kernel.hpp&quot; and &quot;cuda_kernel.cu&quot;.
  All was good and the code compiled both on my local machine and our cluster.</p>
  <p>Now I had to update my Linux from impish to jammy, which I did on Friday. When trying to compile said project today I received the following error message:</p>
  <pre><code> Making all in dergeraet
   make[1]: Entering directory '/home/paul/Projekte/DerGeraet/dergeraet'
   make  all-am
   make[2]: Entering directory '/home/paul/Projekte/DerGeraet/dergeraet'
   CXX      poisson.o
   make[2]: *** No rule to make target '/usr/include/c++/10/new', needed by 'cuda_kernel.o'.  Stop.
   make[2]: Leaving directory '/home/paul/Projekte/DerGeraet/dergeraet'
   make[1]: *** [makefile:306: all] Error 2
   make[1]: Leaving directory '/home/paul/Projekte/DerGeraet/dergeraet'
   make: *** [Makefile:374: all-recursive] Error 1
  </code></pre>
  <p>So I checked whether nvcc was installed. <code>nvcc --version</code> returned nothing so I followed the instructions on <a href="https://developer.nvidia.com/cuda-downloads" rel="nofollow noreferrer">https://developer.nvidia.com/cuda-downloads</a> to install cuda and then ran <code>sudo apt install nvidia-cuda-toolkit</code>. Now when calling <code>nvcc --version</code> Linux returns</p>
  <pre><code>nvcc: NVIDIA (R) Cuda compiler driver
  Copyright (c) 2005-2021 NVIDIA Corporation
  Built on Thu_Nov_18_09:45:30_PST_2021
  Cuda compilation tools, release 11.5, V11.5.119
  Build cuda_11.5.r11.5/compiler.30672275_0
  </code></pre>
  <p>Ok, me thinks, let's compile again but the error-message still remains the same.</p>
  <p>I checked '/usr/include/c++/10/new' and there is only
  '/usr/include/c++/11/new', i.e., no '/usr/include/c++/10' folder.</p>
  <p>I am really out of clues here. Tried reinstalling cuda twice with different version numbers (11.6 and 11.7) but the error persisted. Is this some weird incompatibility issues between gcc and nvcc?</p>
  <p>Other in-house code (without CUDA) compiles fine, thus I think it must be a cuda-related problem.</p>
  <p>Thanks for any help in advance!</p>