diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..f087b429e2f81a9f37b28a8308e2210f84df6c9b --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000000000000000000000000000000000000..e3a61b03d6e0b3a8f65d229c08466adef1eec2f9 --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/triton-cpu diff --git a/llvmorg-19.1.7.tar.gz b/llvmorg-19.1.7.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..41e92b7d5b9d40045a7ccca9f0dbef249013faa9 --- /dev/null +++ b/llvmorg-19.1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59abea1c22e64933fad4de1671a61cdb934098793c7a31b333ff58dc41bff36c +size 217422846 diff --git a/llvmorg-19.1.7.tar.gz.00 b/llvmorg-19.1.7.tar.gz.00 deleted file mode 100644 index e2f5094345ac373ec3c87205ebb315048bdc89bc..0000000000000000000000000000000000000000 Binary files a/llvmorg-19.1.7.tar.gz.00 and /dev/null differ diff --git a/llvmorg-19.1.7.tar.gz.01 b/llvmorg-19.1.7.tar.gz.01 deleted file mode 100644 index a861fe6cf045d93c3faee99c374fa79a83eddbaa..0000000000000000000000000000000000000000 Binary files a/llvmorg-19.1.7.tar.gz.01 and /dev/null differ diff --git a/llvmorg-19.1.7.tar.gz.02 b/llvmorg-19.1.7.tar.gz.02 deleted file mode 100644 index f56e1e7dbb5e5987543304312007ca430ed684f1..0000000000000000000000000000000000000000 Binary files a/llvmorg-19.1.7.tar.gz.02 and /dev/null differ diff --git a/triton-cpu-3.0.0-v1.tar.gz b/triton-cpu-3.0.0-v1.tar.gz index a0bdc83ea008ec3e6605911135767d859623fc7d..f0088e5238cc7c47a533793a9f3cd183e2bef0b1 100644 Binary files a/triton-cpu-3.0.0-v1.tar.gz and b/triton-cpu-3.0.0-v1.tar.gz differ diff --git a/triton-cpu.spec b/triton-cpu.spec index ac596b5ff0d44aa5ea6cbdbe144c7659d6642f5b..98f49cf8cf965eda484d3534f6696ec619c00ae0 100644 --- a/triton-cpu.spec +++ b/triton-cpu.spec @@ -1,14 +1,12 @@ Name: triton-cpu Version: 3.0.0 -Release: 1 +Release: 2 Summary: A CPU backend for Triton. License: MIT URL: https://gitee.com/openeuler/triton-cpu Source0: https://gitee.com/openeuler/triton-cpu/repository/archive/%{name}-%{version}-v1.tar.gz Source1: triton-downloads.tar.gz -Source2: llvmorg-19.1.7.tar.gz.00 -Source3: llvmorg-19.1.7.tar.gz.01 -Source4: llvmorg-19.1.7.tar.gz.02 +Source2: llvmorg-19.1.7.tar.gz ExclusiveArch: aarch64 BuildRequires: python3-devel, python3-pip, python3-wheel, python3-lit, python3-pybind11 @@ -30,14 +28,14 @@ mkdir %{name}/third_party/nvidia/backend/bin cp -r .triton/nvidia/bin/* %{name}/third_party/nvidia/backend/bin mkdir %{name}/third_party/nvidia/backend/include cp -r .triton/nvidia/include/* %{name}/third_party/nvidia/backend/include -cat %{_sourcedir}/llvmorg-19.1.7.tar.gz.* | tar -zxf - -cd llvm-project-llvmorg-19.1.7/ +tar -zxf %{_sourcedir}/llvmorg-19.1.7.tar.gz + +%build +cd %{_builddir}/llvm-project-llvmorg-19.1.7/ mkdir build && cd build cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON ../llvm -DLLVM_ENABLE_PROJECTS="clang;mlir;llvm;lld" -DLLVM_TARGETS_TO_BUILD="AArch64;NVPTX;AMDGPU" -DLLVM_DEFAULT_TARGET_TRIPLE="aarch64-openEuler-linux" ninja -%build - %install export LLVM_BUILD_DIR=%{_builddir}/llvm-project-llvmorg-19.1.7/build export LLVM_INCLUDE_DIRS=$LLVM_BUILD_DIR/include @@ -59,6 +57,7 @@ pip install python/ --no-build-isolation --prefix=%{buildroot}%{_prefix} %{python3_sitearch}/triton %changelog +* Tue May 20 2025 huangkaiyao - 3.0.0-2 +- Move large files to git-lfs * Fri May 9 2025 huangkaiyao - 3.0.0-1 - Package init - diff --git a/triton-downloads.tar.gz b/triton-downloads.tar.gz index c216aa26dbd15f5eb2c311fdd04a7648e3a86b8e..c13862452d8c4b71dab56d13a5b322a2d20fc23c 100644 Binary files a/triton-downloads.tar.gz and b/triton-downloads.tar.gz differ