Package Details: python-triton 3.1.0-1

Git Clone URL: https://aur.archlinux.org/python-triton.git (read-only, click to copy)
Package Base: python-triton
Description: Triton compiler
Upstream URL: https://github.com/openai/triton
Licenses: MIT
Groups: openai
Submitter: daskol
Maintainer: daskol
Last Packager: daskol
Votes: 1
Popularity: 0.80
First Submitted: 2023-07-03 12:39 (UTC)
Last Updated: 2024-11-03 13:40 (UTC)

Latest Comments

evorster commented on 2024-11-03 08:04 (UTC)

It's been quite a while since this package has been updated, and this specific version does not compile.

The PKGBUILD provided by redponike below works, and involves a lot less compiling. This package is becoming an optional requirement of whisper, which in turn is an optional requirement to kdenlive.

redponike commented on 2024-10-14 20:26 (UTC)

The github release tags are stuck at 2.1.0:

https://github.com/triton-lang/triton/issues/3535

For those who want to upgrade to the latest release 3.1.0, here's the PKGBUILD I edited:

pkgname=python-triton
_pkgname=${pkgname#python-}
pkgver=3.1.0
pkgrel=0
pkgdesc='Triton compiler'
arch=('x86_64')
url='https://github.com/triton-lang/triton'
license=('MIT')
depends=()
makedepends=('python-installer' 'python-wheel')
optdepends=()
source=(
    'https://files.pythonhosted.org/packages/78/eb/65f5ba83c2a123f6498a3097746607e5b2f16add29e36765305e4ac7fdd8/triton-3.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl'
)
sha256sums=('c8182f42fd8080a7d39d666814fa36c5e30cc00ea7eeeb1a2983dbb4c99a0fdc')

package() {
    python -m installer \
        --compile-bytecode 1 \
        --destdir $pkgdir \
        $_pkgname-$pkgver-*.whl
}

Strykar commented on 2024-09-28 03:20 (UTC)

Fails to build with

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in <module>
    main()
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 357, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 271, in build_wheel
    return _build_backend().build_wheel(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 410, in build_wheel
    return self._build_with_temp_dir(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 395, in _build_with_temp_dir
    self.run_setup()
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 487, in run_setup
    super().run_setup(setup_script=setup_script)
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
    exec(code, locals())
  File "<string>", line 268, in <module>
  File "/usr/lib/python3.12/site-packages/setuptools/__init__.py", line 104, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
    dist.run_commands()
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command
    super().run_command(command)
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.12/site-packages/wheel/_bdist_wheel.py", line 378, in run
    self.run_command("build")
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command
    super().run_command(command)
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 132, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command
    super().run_command(command)
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "<string>", line 157, in run
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command
    super().run_command(command)
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "<string>", line 193, in run
  File "<string>", line 262, in build_extension
  File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'TritonRelBuildWithAsserts', '-j48']' returned non-zero exit status 2.

ERROR Backend subprocess exited when trying to invoke build_w

evorster commented on 2024-08-25 08:57 (UTC) (edited on 2024-08-25 08:58 (UTC) by evorster)

I get a compile error when trying to install this package

[ 79%] Built target TritonTestAnalysis
In file included from /home/evert/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/include/mlir/IR/BlockSupport.h:16,
                 from /home/evert/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/include/mlir/IR/Block.h:16,
                 from /home/evert/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/include/mlir/IR/Operation.h:16,
                 from /home/evert/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/include/mlir/Analysis/DataFlowFramework.h:19,
                 from /mnt/int/system/aur/python-triton/src/triton-2.1.0/include/triton/Analysis/Utility.h:4,
                 from /mnt/int/system/aur/python-triton/src/triton-2.1.0/include/triton/Analysis/Allocation.h:4,
                 from /mnt/int/system/aur/python-triton/src/triton-2.1.0/lib/Conversion/TritonGPUToLLVM/ConvertLayoutOpToLLVM/../TritonGPUToLLVMBase.h:7,
                 from /mnt/int/system/aur/python-triton/src/triton-2.1.0/lib/Conversion/TritonGPUToLLVM/ConvertLayoutOpToLLVM/../ConvertLayoutOpToLLVM.h:4,
                 from /mnt/int/system/aur/python-triton/src/triton-2.1.0/lib/Conversion/TritonGPUToLLVM/ConvertLayoutOpToLLVM/SharedToDotOperandMMAv2.cpp:1:
In constructor ‘constexpr mlir::Value::Value(mlir::detail::ValueImpl*)’,
    inlined from ‘void llvm::SmallVectorImpl<T>::resizeImpl(size_type) [with bool ForOverwrite = false; T = mlir::Value]’ at /home/evert/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/include/llvm/ADT/SmallVector.h:637:9,
    inlined from ‘void llvm::SmallVectorImpl<T>::resizeImpl(size_type) [with bool ForOverwrite = false; T = mlir::Value]’ at /home/evert/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/include/llvm/ADT/SmallVector.h:623:37,
    inlined from ‘void llvm::SmallVectorImpl<T>::resize(size_type) [with T = mlir::Value]’ at /home/evert/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/include/llvm/ADT/SmallVector.h:642:47,
    inlined from ‘llvm::SmallVector<T, N>::SmallVector(size_t) [with T = mlir::Value; unsigned int N = 6]’ at /home/evert/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/include/llvm/ADT/SmallVector.h:1211:17,
    inlined from ‘std::tuple<mlir::Value, mlir::Value, mlir::Value, mlir::Value> MMA16816SmemLoader::loadX4(int, int, llvm::ArrayRef<mlir::Value>, mlir::Type, mlir::Type) const’ at /mnt/int/system/aur/python-triton/src/triton-2.1.0/lib/Conversion/TritonGPUToLLVM/ConvertLayoutOpToLLVM/SharedToDotOperandMMAv2.cpp:347:73:
/home/evert/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/include/mlir/IR/Value.h:95:56: error: ‘void* __builtin_memset(void*, int, long unsigned int)’ specified size between 18446744039349813224 and 18446744073709551608 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
   95 |   constexpr Value(detail::ValueImpl *impl = nullptr) : impl(impl) {}
      |                                                        ^~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-covered-switch-default’ may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
make[2]: *** [lib/Conversion/TritonGPUToLLVM/CMakeFiles/obj.TritonGPUToLLVM.dir/build.make:163: lib/Conversion/TritonGPUToLLVM/CMakeFiles/obj.TritonGPUToLLVM.dir/ConvertLayoutOpToLLVM/SharedToDotOperandMMAv2.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....