You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
707 B
35 lines
707 B
# 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"
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="dev-util/nvidia-cuda-toolkit"
|
|
|
|
src_configure() {
|
|
mycmakeargs+=(
|
|
-DCMAKE_CUDA_FLAGS="$(cuda_gccdir -f | tr -d \")"
|
|
-DCUTLASS_ENABLE_HEADERS_ONLY=yes
|
|
-DCUTLASS_ENABLE_TESTS=no
|
|
)
|
|
addpredict /dev/nvidiactl
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
cmake_src_install
|
|
rm -r "${D}"/usr/test || die
|
|
}
|