Set primary device to CPU if in CPU-only mode
This commit is contained in:
parent
bd7d7b41a1
commit
ab5ab79003
|
@ -616,6 +616,8 @@ def device_config(config):
|
||||||
|
|
||||||
if(not breakmodel.gpu_blocks):
|
if(not breakmodel.gpu_blocks):
|
||||||
print("Nothing assigned to a GPU, reverting to CPU only mode")
|
print("Nothing assigned to a GPU, reverting to CPU only mode")
|
||||||
|
import breakmodel
|
||||||
|
breakmodel.primary_device = "cpu"
|
||||||
vars.breakmodel = False
|
vars.breakmodel = False
|
||||||
vars.usegpu = False
|
vars.usegpu = False
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue