Create/Destroy the context only if there is a cuda-compatible GPU.