eyalroz / gpu-kernel-runner

Runs a single CUDA/OpenCL kernel, taking its source from a file and arguments from the command-line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve search for the CUDA include directory

eyalroz opened this issue · comments

At the moment, we do a pretty lazy search for the CUDA include directory - which we add as an include directory to the NVRTC compilation.

We should search for it based on:

  1. What CMake used when configuring our build.
  2. Using CUDA_PATH
  3. Using pkg-config

... plus, support not adding it at all.

So, it's not perfect, but it's good enough for now.

Also, CUDA is not exposed via pkg-config.