PageSourceSearch

https://project-hami.io/assets/js/f0a39518.8748abf9.js

js project-hami.io collected 2026-10-03 19:16:11 UTC 2,753 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk_project_hami_website||=[]).push([[8412],{94374(e,n,i){i.r(n),i.d(n,{assets:()=>o,contentTitle:()=>r,default:()=>p,frontMatter:()=>c,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"userguide/nvidia-device/examples/specify-certain-card","title":"Assign task to a certain GPU","description":"Assign task to a certain GPU","source":"@site/versioned_docs/version-v2.5.0/userguide/nvidia-device/examples/specify-certain-card.md","sourceDirName":"userguide/nvidia-device/examples","slug":"/userguide/nvidia-device/examples/specify-certain-card","permalink":"/docs/v2.5.0/userguide/nvidia-device/examples/specify-certain-card","draft":false,"unlisted":false,"editUrl":"https://github.com/Project-HAMi/website/edit/master/versioned_docs/version-v2.5.0/userguide/nvidia-device/examples/specify-certain-card.md","tags":[],"version":"v2.5.0","lastUpdatedAt":1779280232000,"frontMatter":{"title":"Assign task to a certain GPU"},"sidebar":"docs","previous":{"title":"Assign task to a certain type","permalink":"/docs/v2.5.0/userguide/nvidia-device/examples/specify-card-type-to-use"},"next":{"title":"Assign task to MIG instance","permalink":"/docs/v2.5.0/userguide/nvidia-device/examples/dynamic-mig-example"}}');var s=i(74848),a=i(28453);const c={title:"Assign task to a certain GPU"},r=void 0,o={},d=[{value:"Assign task to a certain GPU",id:"assign-task-to-a-certain-gpu",level:2}];function u(e){const n={code:"code",h2:"h2",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"assign-task-to-a-certain-gpu",children:"Assign task to a certain GPU"}),"\n",(0,s.jsxs)(n.p,{children:["To assign a task to a certain GPU, you need only to assign the ",(0,s.jsx)(n.code,{children:"nvidia.com/use-gpuuuid"})," in annotations field."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-yaml",children:'apiVersion: v1\nkind: Pod\nmetadata:\n  name: gpu-pod\n  annotations:\n    nvidia.com/use-gpuuuid: "GPU-123456"\nspec:\n  containers:\n    - name: ubuntu-container\n      image: ubuntu:18.04\n      command: ["bash", "-c", "sleep 86400"]\n      resources:\n        limits:\n          nvidia.com/gpu: 2 # requesting 2 vGPUs\n'})})]})}function p(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},28453(e,n,i){i.d(n,{R:()=>c,x:()=>r});var t=i(96540);const s={},a=t.createContext(s);function c(e){const n=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),t.createElement(a.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.