default value of pitched memory ?

Hi,

I’m allocating memory with cudaMallocPitch(). Does anybody know if
the memory between the memory chunks is initialized ?

Greetings, Uwe

With respect to initialisation to value? It very probably isn’t. I don’t know what the spec is, but I’ve never seen any automatic initialization of device memory upoin allocation. Whatever is in the RAM chips is what you get.

You can USE the intermediate “padding” chunks as you wish though, they’re valid members of the array space, as far as I know.

Wouldn’t the size of the padding be platform dependant though?

Potentially. But since you know the width you put in and the pitch returned back from cudaMallocPitch, you always know where the padded bytes are.