diff --git a/include/clad/Differentiator/Differentiator.h b/include/clad/Differentiator/Differentiator.h index ce99c1b5c..72b4d62ab 100644 --- a/include/clad/Differentiator/Differentiator.h +++ b/include/clad/Differentiator/Differentiator.h @@ -134,7 +134,8 @@ CUDA_HOST_DEVICE T push(tape& to, ArgsT... val) { for (size_t i = sizeof...(args); i < totalArgs; ++i) argPtrs[i] = &null_param; - cudaLaunchKernel((void*)f, grid, block, argPtrs.data(), shared_mem, stream); + cudaLaunchKernel((void*)f, grid, block, argPtrs.data(), shared_mem, + stream); return return_type_t(); } else { return f(static_cast(args)..., static_cast(nullptr)...);