forked from tinygrad/tinygrad
Don't hardcode default CLOUDDEV (#9935)
This commit is contained in:
@@ -124,7 +124,7 @@ class CloudHandler(BaseHTTPRequestHandler):
|
||||
def do_POST(self): return self._do("POST")
|
||||
|
||||
def cloud_server(port:int):
|
||||
CloudHandler.device = getenv("CLOUDDEV", "METAL") if Device.DEFAULT == "CLOUD" else Device.DEFAULT
|
||||
CloudHandler.device = getenv("CLOUDDEV", next(Device.get_available_devices()) if Device.DEFAULT == "CLOUD" else Device.DEFAULT)
|
||||
print(f"start cloud server on {port} with device {CloudHandler.device}")
|
||||
server = HTTPServer(('', port), CloudHandler)
|
||||
server.serve_forever()
|
||||
|
||||
Reference in New Issue
Block a user