Skip to content

How to move the pointer of B and s in cuda kernel #34

Description

@Eutenacity

I put two B and s in contiguous space like B s B s
And I send the ptr of the first B and s into the kernel as well as a pointer of offset tensor

I try to revise the code like
B = B + offset_ptr[0];
s = s + offset_ptr[1];

I want the kernel to run with the second B and s

But it seems that it dose not work

Can you give me some help?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions