 easiest way to compile Taskflow with CUDA code (e.g., cudaFlow, kernels) is to use <a href="https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html">nvcc</a>:</p><pre class="m-code">~$<span class="w"> </span>nvcc<span class="w"> </span>-std<span class="o">=</span>c++17<span class="w"> </span>-I<span class="w"> </span>path/to/taskflow/<span class="w"> </span>--extended-lambda<span class="w"> </span>simple.cu<span class="w"> </span>-o<span class="w"> </span>simple
~$<span class="w"> </span>./simple