Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/features/musl/, dev-libs/cutlass/
Date: Mon, 27 Feb 2023 14:16:51
Message-Id: 1677507187.72b00eae9b73d5180aed21f90e2f0471ad51047e.tupone@gentoo
1 commit: 72b00eae9b73d5180aed21f90e2f0471ad51047e
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 27 14:13:07 2023 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 14:13:07 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72b00eae
7
8 dev-libs/cutlass: new package, add 2.10.0
9
10 Bug: https://bugs.gentoo.org/895490
11 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
12
13 dev-libs/cutlass/Manifest | 1 +
14 dev-libs/cutlass/cutlass-2.10.0.ebuild | 33 +++++++++++++++++++++++++++++++++
15 dev-libs/cutlass/metadata.xml | 12 ++++++++++++
16 profiles/features/musl/package.mask | 4 ++++
17 4 files changed, 50 insertions(+)
18
19 diff --git a/dev-libs/cutlass/Manifest b/dev-libs/cutlass/Manifest
20 new file mode 100644
21 index 000000000000..5912c749cc75
22 --- /dev/null
23 +++ b/dev-libs/cutlass/Manifest
24 @@ -0,0 +1 @@
25 +DIST cutlass-2.10.0.tar.gz 15241458 BLAKE2B 66779759ac1c7ebcb860bb9b925a236b45959f5ee3bf4e1f95ffd05a98200dcf2eb4fe2907c02e44143d3f51eca1e2a4ebd890e0edab7fd5378684819123f197 SHA512 4310f8da2931815a63a5e9a69c6c073f95148efecbea7026afcd90965dbd2e1921db52b0ac2a06cda64e20bbaa44112ae1fb7c3b557c41416d99dac33d000aa7
26
27 diff --git a/dev-libs/cutlass/cutlass-2.10.0.ebuild b/dev-libs/cutlass/cutlass-2.10.0.ebuild
28 new file mode 100644
29 index 000000000000..a7b1d9da92e3
30 --- /dev/null
31 +++ b/dev-libs/cutlass/cutlass-2.10.0.ebuild
32 @@ -0,0 +1,33 @@
33 +# Copyright 2023 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +inherit cuda cmake
39 +
40 +DESCRIPTION="CUDA Templates for Linear Algebra Subroutines"
41 +HOMEPAGE="https://github.com/NVIDIA/cutlass"
42 +SRC_URI="https://github.com/NVIDIA/${PN}/archive/refs/tags/v${PV}.tar.gz
43 + -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +
49 +DEPEND=""
50 +RDEPEND="${DEPEND}"
51 +BDEPEND="dev-util/nvidia-cuda-toolkit"
52 +
53 +src_configure() {
54 + mycmakeargs+=(
55 + -DCMAKE_CUDA_FLAGS="$(cuda_gccdir -f | tr -d \")"
56 + -DCUTLASS_ENABLE_HEADERS_ONLY=yes
57 + -DCUTLASS_ENABLE_TESTS=no
58 + )
59 + cmake_src_configure
60 +}
61 +
62 +src_install() {
63 + cmake_src_install
64 + rm -r "${D}"/usr/test || die
65 +}
66
67 diff --git a/dev-libs/cutlass/metadata.xml b/dev-libs/cutlass/metadata.xml
68 new file mode 100644
69 index 000000000000..851323cabae4
70 --- /dev/null
71 +++ b/dev-libs/cutlass/metadata.xml
72 @@ -0,0 +1,12 @@
73 +<?xml version="1.0" encoding="UTF-8"?>
74 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
75 +<pkgmetadata>
76 + <maintainer type="person">
77 + <email>tupone@g.o</email>
78 + <name>Tupone Alfredo</name>
79 + </maintainer>
80 + <upstream>
81 + <remote-id type="github">pytorch/pytorch</remote-id>
82 + <remote-id type="github">NVIDIA/cutlass</remote-id>
83 + </upstream>
84 +</pkgmetadata>
85
86 diff --git a/profiles/features/musl/package.mask b/profiles/features/musl/package.mask
87 index 2f45df3c93a3..3c3146bd5ceb 100644
88 --- a/profiles/features/musl/package.mask
89 +++ b/profiles/features/musl/package.mask
90 @@ -1,6 +1,10 @@
91 # Copyright 1999-2023 Gentoo Authors
92 # Distributed under the terms of the GNU General Public License v2
93
94 +# Alfredo Tupone <tupone@g.o> (2023-02-27)
95 +# Uses dev-util/nvidia-cuda-toolkit
96 +dev-libs/cutlass
97 +
98 # Sam James <sam@g.o> (2023-01-02)
99 # Uses error.h, bug #888956
100 =sys-libs/liburing-2.3