cudaError_t cudastatus;
cudastatus = cudaMalloc((void**)&d_data,NByte);
if (cudastatus != cudaSuccess)
{
qDebug("%s", cudaGetErrorString(cudastatus));
}
cudaError_t cudastatus;
cudastatus = cudaMalloc((void**)&d_data,NByte);
if (cudastatus != cudaSuccess)
{
qDebug("%s", cudaGetErrorString(cudastatus));
}