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

Support non-pitched allocations #29

Open
cwpearson opened this issue Mar 18, 2021 · 1 comment
Open

Support non-pitched allocations #29

cwpearson opened this issue Mar 18, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@cwpearson
Copy link
Owner

stencil/src/local_domain.cu

Lines 186 to 187 in da669b2

CUDA_RUNTIME(cudaMalloc3D(&c, extent));
CUDA_RUNTIME(cudaMalloc3D(&n, extent));

Not all stencil kernels expect the allocation to be pitched. Make this optional.

Need to add a function to the stencil interface, and carry the pitch information through the cudaPitchedPtr.

@cwpearson cwpearson added the enhancement New feature or request label Mar 18, 2021
@cwpearson cwpearson self-assigned this Mar 18, 2021
@cwpearson
Copy link
Owner Author

@oa98105 from our discussion after my defense.

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

No branches or pull requests

1 participant