Uploaded image for project: 'OpenShift Node'
  1. OpenShift Node
  2. OCPNODE-4079

Implement partitionable devices support in dra-example-driver

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Goal

      Add partitionable devices (KEP-4815) support to the kubernetes-sigs/dra-example-driver, enabling demonstration and testing of the DRAPartitionableDevices feature.

      Links

      Implementation Approach

      1. Extend EnumerateDevices() in internal/profiles/gpu/gpu.go to publish SharedCounters
      2. Add DeviceCounterConsumption to device definitions
      3. Add CLI flags -partitionable-devices and -partitions-per-gpu
      4. Create partition devices that consume from shared counter sets
      5. Add unit tests for partitionable device enumeration

      Key Files Modified

      • cmd/dra-example-kubeletplugin/main.go - Added CLI flags for partitionable devices
      • internal/profiles/gpu/gpu.go - Added partitionable devices enumeration logic
      • internal/profiles/gpu/gpu_test.go - Added unit tests

      Acceptance Criteria

      • Driver can publish devices with SharedCounters (CounterSet)
      • Devices can declare counter consumption via DeviceCounterConsumption
      • Scheduler correctly allocates partitioned devices based on available counters
      • Unit tests pass

      Done Checklist

              harpatil@redhat.com Harshal Patil
              harpatil@redhat.com Harshal Patil
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: