Skip to main content

Intel NCS2 device plugin for Kubernetes

Project description

Intel NCS2 device plugin for Kubernetes

PyPI

A Kubernetes device plugin for the Intel Neural Compute Stick 2 (NCS2) / Intel Movidius MyriadX

Annotations

Annotations are produced for the per-device full device name, allowing for different device types to be explicitly targeted, regardless of their insertion order into the system:

# For a single device
ncs2.intel.com/MYRIAD.name: Intel Movidius Myriad X VPU

# For multiple devices
ncs2.intel.com/MYRIAD.0.name: Intel Movidius Myriad X VPU
...

Node Labels

Node labels are produced for the number of devices and per-device optimization capabilities:

intel.com/ncs2=<number of NCS2 devices>

# For a single device
ncs2.intel.com/MYRIAD.FP16=true

# For multiple devices
ncs2.intel.com/MYRIAD.0.FP16=true
...

USB Hotplug Event Reconciliation

Node labels and annotations are reconciled on the node each time a USB device is added or removed from the system. This can be seen below:

2020-11-16 00:16:52 INFO     Discovered 1 NCS2 device(s):
2020-11-16 00:16:52 INFO     	MYRIAD: Intel Movidius Myriad X VPU, Optimizations: ['FP16']
2020-11-16 00:16:52 INFO     Applying initial labels and annotations to current node...
2020-11-16 00:16:52 INFO     Reconciling node sgx-celsius-w550power
2020-11-16 00:16:52 INFO     Starting USB monitor...
2020-11-16 00:17:04 INFO     Received a USB remove event for Device('/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4')
2020-11-16 00:17:04 INFO     Reconciling node sgx-celsius-w550power
2020-11-16 00:17:26 INFO     Received a USB add event for Device('/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4')
2020-11-16 00:17:26 INFO     Reconciling node sgx-celsius-w550power

Features and bugs

Please file feature requests and bugs in the issue tracker.

Acknowledgements

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 825480 (SODALITE).

License

ncs2-device-plugin is licensed under the terms of the Apache 2.0 license, the full version of which can be found in the LICENSE file included in the distribution.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ncs2_device_plugin-0.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ncs2_device_plugin-0.0.1-py3.7.egg (10.2 kB view details)

Uploaded Egg

ncs2_device_plugin-0.0.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file ncs2_device_plugin-0.0.1.tar.gz.

File metadata

  • Download URL: ncs2_device_plugin-0.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.9

File hashes

Hashes for ncs2_device_plugin-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3aaeb267bbceb37b0a3fd046fe48ada232b6332ff8f7547865b7c11f3607c650
MD5 66641d9e880ed767d88b5e701deb4f31
BLAKE2b-256 894f4f39a07180ebc289652d0ab5be663d9bb88ca8d54a9a0814671de00981dd

See more details on using hashes here.

File details

Details for the file ncs2_device_plugin-0.0.1-py3.7.egg.

File metadata

  • Download URL: ncs2_device_plugin-0.0.1-py3.7.egg
  • Upload date:
  • Size: 10.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.9

File hashes

Hashes for ncs2_device_plugin-0.0.1-py3.7.egg
Algorithm Hash digest
SHA256 df1515c5e6089541889aaccd36143fa7f8c15e303dbf11bcdb4442d793974f01
MD5 c98717db4dc790e93041bf6d93f52004
BLAKE2b-256 ae9c21a18ef7c39773a818d241dce80596b542fe12cb33223d121eec7430a04b

See more details on using hashes here.

File details

Details for the file ncs2_device_plugin-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ncs2_device_plugin-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.9

File hashes

Hashes for ncs2_device_plugin-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9cf3af3f692665d5dd7a61d9ce82207888119c70df8230f3b3c9b15927e58be9
MD5 41fe0ec1c6a1220d4c3a2c72e18ccb87
BLAKE2b-256 3c9bd25b8efbe71345131be1203e642953228e66d8001aa8664c060f637019e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page