PageSourceSearch

https://project-hami.io/assets/js/4bb4c54f.5e01a57e.js

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

1"use strict";(globalThis.webpackChunk_project_hami_website||=[]).push([[9389],{85363(e,n,t){t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>a,default:()=>d,frontMatter:()=>c,metadata:()=>o,toc:()=>r});const o=JSON.parse('{"id":"userguide/kunlunxin-device/examples/allocate-vxpu","title":"Allocate vxpu device","description":"To allocate a certain part of device core resource, you need only to assign the kunlunxin.com/vxpu along with the kunlunxin.com/vxpu-memory","source":"@site/versioned_docs/version-v2.9.0/userguide/kunlunxin-device/examples/allocate-vxpu.md","sourceDirName":"userguide/kunlunxin-device/examples","slug":"/userguide/kunlunxin-device/examples/allocate-vxpu","permalink":"/docs/v2.9.0/userguide/kunlunxin-device/examples/allocate-vxpu","draft":false,"unlisted":false,"editUrl":"https://github.com/Project-HAMi/website/edit/master/versioned_docs/version-v2.9.0/userguide/kunlunxin-device/examples/allocate-vxpu.md","tags":[],"version":"v2.9.0","lastUpdatedAt":1781772745000,"frontMatter":{"title":"Allocate vxpu device"},"sidebar":"docs","previous":{"title":"Allocate a whole xpu card","permalink":"/docs/v2.9.0/userguide/kunlunxin-device/examples/allocate-whole-xpu"},"next":{"title":"Enable MetaX GPU sharing","permalink":"/docs/v2.9.0/userguide/metax-device/metax-sgpu/enable-metax-gpu-sharing"}}');var i=t(74848),u=t(28453);const c={title:"Allocate vxpu device"},a=void 0,s={},r=[];function l(e){const n={code:"code",p:"p",pre:"pre",...(0,u.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.p,{children:["To allocate a certain part of device core resource, you need only to assign the ",(0,i.jsx)(n.code,{children:"kunlunxin.com/vxpu"})," along with the ",(0,i.jsx)(n.code,{children:"kunlunxin.com/vxpu-memory"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-yaml",children:'apiVersion: v1\nkind: Pod\nmetadata:\n  name: xpu-pod\nspec:\n  containers:\n    - name: ubuntu-container\n      image: ubuntu:22.04\n      imagePullPolicy: IfNotPresent\n      command: ["sleep", "infinity"]\n      resources:\n        limits:\n          kunlunxin.com/vxpu: 1 # requesting 1 XPU\n          kunlunxin.com/vxpu-memory: 24576 # each XPU require 24576 MiB device memory\n'})})]})}function d(e={}){const{wrapper:n}={...(0,u.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},28453(e,n,t){t.d(n,{R:()=>c,x:()=>a});var o=t(96540);const i={},u=o.createContext(i);function c(e){const n=o.useContext(u);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),o.createElement(u.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.