Skip to content

Issue with vectorized functions on GPU #174

@pculbertson

Description

@pculbertson

Hi, I am using Tullio for a CUDA project and having some trouble using it to slice into CUDA arrays (maybe this is inappropriate).

Here is a minimal example of the issue:

using CUDA, Tullio

# Define function that takes slices of z on the RHS.
batch_maximum(z) = @tullio res[ii] := maximum(z[:, ii])

x_cpu = randn(2,5)
batch_maximum(x_cpu) # Runs fine.

x_gpu = CUDA.randn(2,5)
batch_maximum(x_gpu) # Errors with Reason: unsupported dynamic function invocation

Any help would be very appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions