Shared gpu on cpu

What I have cuda installed but `config.device = gpu`? I want in this case to have CPU-compatible variables.