proper release workspace in CUDA convolution