Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Eutenacity opened this issue Aug 22, 2024 · 0 comments
Open

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

Eutenacity opened this issue Aug 22, 2024 · 0 comments

Comments

@Eutenacity
Copy link

Eutenacity commented Aug 22, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant