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/

贡献者指南