arkitektio / arkitekt

arkitekt is the python api client for the arkitekt-framework
https://arkitekt.live
MIT License
2 stars 1 forks source link

allow arkitekt to run without gpu support #7

Closed alexschroeter closed 6 months ago

alexschroeter commented 7 months ago

Even without needing gpu capability I was unable to run arkitekt port stage without the nvidia-container-toolkit. I believe this should probably be possible since some people might not even have nvidia GPUs installed.

Error when running without nvidia-container-toolkit

(arkitekt) aschroeter:~/src/arkitekt-matlab-example$ arkitekt port stage                                                                                                                             
Running inside docker: arkitekt-matlab-example:0.0.1
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
ERRO[0000] error waiting for container:                 
╭─ Error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Docker container exited                                                                                                                                                                                         │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

 To find out more, visit https://arkitekt.live                                                                                                                                                                     
jhnnsrs commented 7 months ago

yes, stupid me forgot to add the "check the requirements" for it. Its in the bug-fixes for the next release

until then `docker run -it --net host BUILD_ID_OR_DOCKER_BUILD_TAG arkitekt run prod --builder easy --headless --url FAKTS_URL" does the same trick.