Set the right context as current before using the cuda api in GpuConv.