openfaas/faas

Research: show GPU attached to a function

開放

#639 建立於 2018年4月12日

 (40 則留言) (11 個反應) (0 位負責人)Go (1,969 個分叉)batch import
area/kubernetesenhancementhelp wantedpriority/middleskill/intermediate

倉庫指標

星標
 (26,155 顆星)
PR 合併指標
 (平均合併 1分鐘) (30 天內合併 1 個 PR)

描述

Description

Show a GPU attached to an OpenFaaS function in Kubernetes

Background

We 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 and then be able to mount a GPU into a function.

Tasks

  • List compatible GPUs
  • Write some code to mount a GPU
  • Produce a short list of steps to document how to test the patches/PR
  • Document any specific requirements / limitations

Other notes

GKE 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/

Otherwise you'll need an Nvidia GPU and the process for configuring your kubelet is not trivial

Documentation page from Kubernetes:

https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/

貢獻者指南