immich-app / immich-charts

Helm chart implementation of Immich
https://immich.app
GNU Affero General Public License v3.0
106 stars 45 forks source link

Support for GPU resources settings in Helm Chart to enable hardware transcoding #47

Closed lostz closed 9 months ago

lostz commented 10 months ago

It seems that there is no option available to configure GPU resources in the Helm chart. This lack of configurability prevents the leveraging of GPU resources for tasks such as video transcoding, which could greatly benefit from the parallel computing capabilities provided by GPUs.

PixelJonas commented 10 months ago

Hey lostz,

can you provide an example Manifest how you would like to configure the GPU resource?

SISheogorath commented 9 months ago

You can just configure GPU resources like any other resources:

# values.yaml
microservices:
  resources:
    requests:
      amd.com/gpu: "1"
      memory: 1Gi
      cpu: 500m
    limits:
      amd.com/gpu: "1"
      memory: 2Gi
      cpu: "1"

There shouldn't be any further setup needed.

PS: Make sure your cluster has the relevant resources installed and your GPU is actually compatible with immich: https://immich.app/docs/features/hardware-transcoding

RogerSik commented 8 months ago

How can i issue this with Intel Quick Sync?

With Plex i have mounted it as:

# extracted from kind: Deployment
      containers:
        - name: plex
          image: linuxserver/plex:1.32.8
          securityContext:
            privileged: true
          volumeMounts:
            # Intel Quick Sync
            - mountPath: /dev/dri/
              name: quicksync
      volumes:
        # Intel Quick Sync
        - name: quicksync
          hostPath:
            path: /dev/dri/