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

Do not relocate the tape elements #793

Open
vgvassilev opened this issue Mar 3, 2024 · 1 comment
Open

Do not relocate the tape elements #793

vgvassilev opened this issue Mar 3, 2024 · 1 comment

Comments

@vgvassilev
Copy link
Owner

In the current implementation of clad::tape we ensure the elements are contiguous. The grow operation relocates the elements when the size exceeds the tape capacity:

CUDA_HOST_DEVICE void grow() {

Instead we should allocate slabs of 32 or 64 elements and the last element should point to the next slab.

@Deepanshu9376
Copy link

Hey @vgvassilev I have made some changes to resolve this. check that branch once

Deepanshu9376 added a commit to Deepanshu9376/clad that referenced this issue Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants