Skip to content

Commit

Permalink
Fix no 'sinpi' function for __host__
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzs authored and nksauter committed Dec 4, 2021
1 parent 312021d commit a0ca25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simtbx/kokkos/kernel_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ KOKKOS_FUNCTION CUDAREAL sincg(CUDAREAL x, CUDAREAL N) {

}

KOKKOS_FUNCTION CUDAREAL sincgrad(CUDAREAL x, CUDAREAL N) {
KOKKOS_INLINE_FUNCTION CUDAREAL sincgrad(CUDAREAL x, CUDAREAL N) {
if (x != 0.0) {
return sinpi(x * N) / sinpi(x);
}
Expand Down

0 comments on commit a0ca25a

Please sign in to comment.