Skip to content

Commit

Permalink
[cuda] Add a return statement to suppress diagnostics.
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev committed Sep 14, 2024
1 parent 000754a commit 3ca7de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/clad/Differentiator/Differentiator.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ CUDA_HOST_DEVICE T push(tape<T>& to, ArgsT... val) {
if (CUDAkernel) {
void* argPtrs[] = {(void*)&args...};
cudaLaunchKernel((void*)f, grid, block, argPtrs, shared_mem, stream);
} else {
return f(static_cast<Args>(args)...);
return return_type_t<F>();
}
return f(static_cast<Args>(args)...);
#else
return f(static_cast<Args>(args)...);
#endif
Expand Down

0 comments on commit 3ca7de7

Please sign in to comment.