Hello.
I am studying CUDA by myself… that’s really hard to me…
I used cudaMalloc API.
For example,
cudaMalloc((void **)&d_test, 10 * sizeof(int));
in this line, I thought d_test uses 40 bytes.
But in practice, it is assigned for about 2MB (2,097,152 bytes)…
I attach about device memory info.
before memory: 2601792307 bytes
after memory: 2599695155 bytes
How big is minimum assigned size in cudaMalloc?
because my data set is for about 12MB in reality.
But when I call the cudaMalloc, it takes bigger size than real size…
My graphic card memory size is 3GB and test data set is 12MB.
but memory is lack… I am panic now…
Please help me…