Hello,
Is first cudaMalloc() will take more time?
char D_MALLOC(size_t size)
{
char buf = NULL;
CUDA_SAFE_CALL(cudaMalloc((void)&buf, size));
CUDA_SAFE_CALL(cudaMemset(buf, 0, size));
return buf;
}
because I have written some and calculated the time frame for D_MALLOC.
the first D_MALLOC is taking nearly 77ms. and others are just around 0.17 ms.
Is this behaviour fine??