Allow loop of call to cuda.use() and cuda.unuse().