Skip to content

Fall back to CPU in GPU kernels #4380

Discussion options

You must be logged in to vote

I think the custom call targets you register on the GPU backend are really host functions (that get device pointers, and can call device kernels). So it would be fine to pull a value back to the host, perform computation there (e.g. by calling a CPU custom call target function), and push it back to the device all within a function registered as a GPU custom call.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dionhaefner
Comment options

@jekbradbury
Comment options

Answer selected by dionhaefner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants