diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-12-28 11:02:23 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-12-28 11:02:55 +0100 |
commit | ac5f0c91f90fbd4b979978ee1478d8c31598adad (patch) | |
tree | 80152ddca88d83c6bd83d2f1f212a3b3c7b494b1 /dev-libs/cutlass/cutlass-3.3.0.ebuild | |
parent | dev-embedded/sdcc: Stabilize 4.3.0-r1 amd64, #920851 (diff) | |
download | gentoo-ac5f0c91f90fbd4b979978ee1478d8c31598adad.tar.gz gentoo-ac5f0c91f90fbd4b979978ee1478d8c31598adad.tar.bz2 gentoo-ac5f0c91f90fbd4b979978ee1478d8c31598adad.zip |
dev-libs/cutlass: add 3.3.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-libs/cutlass/cutlass-3.3.0.ebuild')
-rw-r--r-- | dev-libs/cutlass/cutlass-3.3.0.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-libs/cutlass/cutlass-3.3.0.ebuild b/dev-libs/cutlass/cutlass-3.3.0.ebuild new file mode 100644 index 000000000000..d85941a8c5e4 --- /dev/null +++ b/dev-libs/cutlass/cutlass-3.3.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cuda cmake + +DESCRIPTION="CUDA Templates for Linear Algebra Subroutines" +HOMEPAGE="https://github.com/NVIDIA/cutlass" +SRC_URI="https://github.com/NVIDIA/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="dev-util/nvidia-cuda-toolkit" + +src_prepare() { + cmake_src_prepare + cuda_src_prepare +} + +src_configure() { + mycmakeargs+=( + -DCMAKE_CUDA_FLAGS="$(cuda_gccdir -f | tr -d \")" + -DCUTLASS_ENABLE_HEADERS_ONLY=yes + -DCUTLASS_ENABLE_TESTS=no + ) + cuda_add_sandbox -w + addpredict /dev/char + cmake_src_configure +} + +src_install() { + cmake_src_install + rm -r "${ED}"/usr/test || die +} |