CUDA-Programming icon indicating copy to clipboard operation
CUDA-Programming copied to clipboard

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

Open 33lulu33 opened this issue 10 months ago • 2 comments

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

33lulu33 avatar Jan 15 '25 03:01 33lulu33

谢谢,您发给我的邮件已经收到,我会尽快处理。Thank you,the email you sent me has been received and I will handle it as soon as possible.王景博fever wong

fever-Wong avatar Jan 15 '25 03:01 fever-Wong

这是CUDA的规定:

Image

例子和这个规定不冲突。

brucefan1983 avatar Feb 06 '25 13:02 brucefan1983