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

请问为什么cudaMalloc分配的内存的首地址至少是 256 字节的整数倍? #39

Open
33lulu33 opened this issue Jan 15, 2025 · 2 comments

Comments

@33lulu33
Copy link

为什么至少是256字节而不是128字节呢?书里第七章的例子是128字节的连续内存。

@fever-Wong
Copy link

fever-Wong commented Jan 15, 2025 via email

@brucefan1983
Copy link
Owner

这是CUDA的规定:

Image

例子和这个规定不冲突。

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

3 participants