[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][xorg-team/lib/mesa][debian-unstable] Package TensorFlow Lite delegate as libteflon (Closes: #1070788)



Title: GitLab

Timo Aaltonen pushed to branch debian-unstable at X Strike Force / lib / mesa

Commits:

  • d9cf2216
    by Christopher Obbard at 2024-07-03T11:07:59+01:00
    Package TensorFlow Lite delegate as libteflon (Closes: #1070788)
    
    Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
    

4 changed files:

Changes:

  • debian/control
    ... ... @@ -7,6 +7,7 @@ Standards-Version: 4.1.4
    7 7
     Build-Depends:
    
    8 8
      debhelper-compat (= 13),
    
    9 9
      directx-headers-dev (>= 1.613.0) [linux-amd64 linux-arm64],
    
    10
    + flatbuffers-compiler [linux-arm64],
    
    10 11
      glslang-tools [amd64 arm64 armel armhf i386 loong64 powerpc ppc64 ppc64el riscv64 s390x sparc64 x32],
    
    11 12
      meson (>= 1.4.0),
    
    12 13
      quilt (>= 0.63-8.2~),
    
    ... ... @@ -15,6 +16,7 @@ Build-Depends:
    15 16
      libx11-dev,
    
    16 17
      libxxf86vm-dev,
    
    17 18
      libexpat1-dev,
    
    19
    + libflatbuffers-dev [linux-arm64],
    
    18 20
      libsensors-dev [!hurd-any],
    
    19 21
      libxfixes-dev,
    
    20 22
      libxext-dev,
    
    ... ... @@ -34,6 +36,7 @@ Build-Depends:
    34 36
      libxcb-sync-dev,
    
    35 37
      libxrandr-dev,
    
    36 38
      libxshmfence-dev (>= 1.1),
    
    39
    + libxtensor-dev [linux-arm64],
    
    37 40
      libzstd-dev,
    
    38 41
      python3,
    
    39 42
      python3-mako,
    
    ... ... @@ -320,6 +323,19 @@ Description: Mesa Off-screen rendering extension -- development files
    320 323
      .
    
    321 324
      For more information on OSmesa see the libosmesa6 package.
    
    322 325
     
    
    326
    +Package: mesa-teflon-delegate
    
    327
    +Section: libs
    
    328
    +Architecture: arm64
    
    329
    +Depends:
    
    330
    + ${shlibs:Depends},
    
    331
    + ${misc:Depends},
    
    332
    +Pre-Depends: ${misc:Pre-Depends}
    
    333
    +Multi-Arch: same
    
    334
    +Description: Mesa TensorFlow Lite external delegate
    
    335
    + TensorFlow Lite delegate which can make use of NPUs to accelerate ML
    
    336
    + inference. It is implemented in the form of a external delegate, a shared
    
    337
    + library which the TensorFlow Lite runtime can load at startup.
    
    338
    +
    
    323 339
     Package: mesa-va-drivers
    
    324 340
     Section: libs
    
    325 341
     Architecture: linux-any
    

  • debian/control.in
    ... ... @@ -7,6 +7,7 @@ Standards-Version: 4.1.4
    7 7
     Build-Depends:
    
    8 8
      debhelper-compat (= 13),
    
    9 9
      directx-headers-dev (>= 1.613.0) [linux-amd64 linux-arm64],
    
    10
    + flatbuffers-compiler [linux-arm64],
    
    10 11
      glslang-tools [@LLVM_ARCHS@],
    
    11 12
      meson (>= 1.4.0),
    
    12 13
      quilt (>= 0.63-8.2~),
    
    ... ... @@ -15,6 +16,7 @@ Build-Depends:
    15 16
      libx11-dev,
    
    16 17
      libxxf86vm-dev,
    
    17 18
      libexpat1-dev,
    
    19
    + libflatbuffers-dev [linux-arm64],
    
    18 20
      libsensors-dev [!hurd-any],
    
    19 21
      libxfixes-dev,
    
    20 22
      libxext-dev,
    
    ... ... @@ -34,6 +36,7 @@ Build-Depends:
    34 36
      libxcb-sync-dev,
    
    35 37
      libxrandr-dev,
    
    36 38
      libxshmfence-dev (>= 1.1),
    
    39
    + libxtensor-dev [linux-arm64],
    
    37 40
      libzstd-dev,
    
    38 41
      python3,
    
    39 42
      python3-mako,
    
    ... ... @@ -320,6 +323,19 @@ Description: Mesa Off-screen rendering extension -- development files
    320 323
      .
    
    321 324
      For more information on OSmesa see the libosmesa6 package.
    
    322 325
     
    
    326
    +Package: mesa-teflon-delegate
    
    327
    +Section: libs
    
    328
    +Architecture: arm64
    
    329
    +Depends:
    
    330
    + ${shlibs:Depends},
    
    331
    + ${misc:Depends},
    
    332
    +Pre-Depends: ${misc:Pre-Depends}
    
    333
    +Multi-Arch: same
    
    334
    +Description: Mesa TensorFlow Lite external delegate
    
    335
    + TensorFlow Lite delegate which can make use of NPUs to accelerate ML
    
    336
    + inference. It is implemented in the form of a external delegate, a shared
    
    337
    + library which the TensorFlow Lite runtime can load at startup.
    
    338
    +
    
    323 339
     Package: mesa-va-drivers
    
    324 340
     Section: libs
    
    325 341
     Architecture: linux-any
    

  • debian/mesa-teflon-delegate.install
    1
    +usr/lib/*/libteflon.so usr/lib/teflon/libteflon.so

  • debian/rules
    ... ... @@ -41,6 +41,7 @@ VULKAN_LAYERS =
    41 41
     confflags_DRI3 = -Ddri3=disabled
    
    42 42
     confflags_OSMESA = -Dosmesa=true
    
    43 43
     confflags_SSE2 = -Dsse2=true
    
    44
    +confflags_TEFLON = -Dteflon=false
    
    44 45
     
    
    45 46
     LLVM_ARCHS     = amd64 arm64 armel armhf i386 loong64 powerpc ppc64 ppc64el riscv64 s390x sparc64 x32
    
    46 47
     RUSTICL_ARCHS  = amd64 arm64 armel armhf i386 loong64 powerpc ppc64 ppc64el riscv64 s390x x32
    
    ... ... @@ -140,6 +141,11 @@ else
    140 141
     	confflags_GALLIUM += -Dgallium-va=enabled
    
    141 142
     	confflags_GALLIUM += -Dvideo-codecs="all"
    
    142 143
       endif
    
    144
    +
    
    145
    +  # Teflon only supports arm64
    
    146
    +  ifneq (,$(filter $(DEB_HOST_ARCH), arm64))
    
    147
    +	confflags_TEFLON = -Dteflon=true
    
    148
    +  endif
    
    143 149
     endif
    
    144 150
     
    
    145 151
     ifeq ($(DEB_HOST_ARCH), i386)
    
    ... ... @@ -180,7 +186,8 @@ confflags += \
    180 186
     	$(confflags_GLES) \
    
    181 187
     	$(confflags_OSMESA) \
    
    182 188
     	$(confflags_SSE2) \
    
    183
    -	$(confflags_VALGRIND)
    
    189
    +	$(confflags_VALGRIND) \
    
    190
    +	$(confflags_TEFLON)
    
    184 191
     
    
    185 192
     override_dh_clean: regen_control
    
    186 193
     	dpkg-parsechangelog | awk '/^Version:/ {print $$2}' | sed 's/-.*//;s/~/-/' > VERSION
    


  • Reply to: