{"action":"created","issue":{"url":"https://api.github.com/repos/openfaas/faas/issues/639","repository_url":"https://api.github.com/repos/openfaas/faas","labels_url":"https://api.github.com/repos/openfaas/faas/issues/639/labels{/name}","comments_url":"https://api.github.com/repos/openfaas/faas/issues/639/comments","events_url":"https://api.github.com/repos/openfaas/faas/issues/639/events","html_url":"https://github.com/openfaas/faas/issues/639","id":313782367,"number":639,"title":"Research: show GPU attached to a function","user":{"login":"alexellis","id":6358735,"avatar_url":"https://avatars1.githubusercontent.com/u/6358735?v=4","gravatar_id":"","url":"https://api.github.com/users/alexellis","html_url":"https://github.com/alexellis","followers_url":"https://api.github.com/users/alexellis/followers","following_url":"https://api.github.com/users/alexellis/following{/other_user}","gists_url":"https://api.github.com/users/alexellis/gists{/gist_id}","starred_url":"https://api.github.com/users/alexellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexellis/subscriptions","organizations_url":"https://api.github.com/users/alexellis/orgs","repos_url":"https://api.github.com/users/alexellis/repos","events_url":"https://api.github.com/users/alexellis/events{/privacy}","received_events_url":"https://api.github.com/users/alexellis/received_events","type":"User","site_admin":false},"labels":[{"id":869237883,"url":"https://api.github.com/repos/openfaas/faas/labels/area/kubernetes","name":"area/kubernetes","color":"86f9c6","default":false},{"id":505489876,"url":"https://api.github.com/repos/openfaas/faas/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":505489877,"url":"https://api.github.com/repos/openfaas/faas/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true},{"id":691885233,"url":"https://api.github.com/repos/openfaas/faas/labels/priority/middle","name":"priority/middle","color":"ededed","default":false},{"id":653680993,"url":"https://api.github.com/repos/openfaas/faas/labels/skill/intermediate","name":"skill/intermediate","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-12T15:40:10Z","updated_at":"2018-05-09T19:33:49Z","closed_at":null,"author_association":"OWNER","body":"## Description\r\n\r\nShow a GPU attached to an OpenFaaS function in Kubernetes\r\n\r\n## Background\r\n\r\nWe have several users using Python for data-science where GPU acceleration is available. From the investigation I've done so far we should be able to make a few minor changes to [faas-netes](https://github.com/openfaas/faas-netes/) and then be able to mount a GPU into a function.\r\n\r\n## Tasks\r\n\r\n* List compatible GPUs\r\n* Write some code to mount a GPU\r\n* Produce a short list of steps to document how to test the patches/PR\r\n* Document any specific requirements / limitations\r\n\r\n## Other notes\r\n\r\nGKE has GPUs available pre-configured under Kubernetes - I think this would be the easiest way to test - https://thenewstack.io/getting-started-with-gpus-in-google-kubernetes-engine/\r\n\r\nOtherwise you'll need an Nvidia GPU and the process for configuring your `kubelet` is not trivial\r\n\r\nDocumentation page from Kubernetes:\r\n\r\nhttps://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/"},"comment":{"url":"https://api.github.com/repos/openfaas/faas/issues/comments/387850739","html_url":"https://github.com/openfaas/faas/issues/639#issuecomment-387850739","issue_url":"https://api.github.com/repos/openfaas/faas/issues/639","id":387850739,"user":{"login":"alexellis","id":6358735,"avatar_url":"https://avatars1.githubusercontent.com/u/6358735?v=4","gravatar_id":"","url":"https://api.github.com/users/alexellis","html_url":"https://github.com/alexellis","followers_url":"https://api.github.com/users/alexellis/followers","following_url":"https://api.github.com/users/alexellis/following{/other_user}","gists_url":"https://api.github.com/users/alexellis/gists{/gist_id}","starred_url":"https://api.github.com/users/alexellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexellis/subscriptions","organizations_url":"https://api.github.com/users/alexellis/orgs","repos_url":"https://api.github.com/users/alexellis/repos","events_url":"https://api.github.com/users/alexellis/events{/privacy}","received_events_url":"https://api.github.com/users/alexellis/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T19:33:49Z","updated_at":"2018-05-09T19:33:49Z","author_association":"OWNER","body":"> > could you run two different functions using GPU at the same time?\r\n> Yes, I can\r\n\r\nI'm confused by this comment - I thought we were talking about scheduling constraints on Slack because two Pods cannot use the same GPU at the same time?"}}
{"actor":{"display_login":"alexellis"}}