<commit_before>require cuda-shared-binaries.inc

CUDA_PKGS = " \
    nvrtc \
    nvrtc-dev \
    cusolver \
    cusolver-dev \
    cublas \
    cublas-dev \
    cufft \
    cufft-dev \
    curand \
    curand-dev \
    cusparse \
    cusparse-dev \
    npp \
    npp-dev \
"

DEPENDS = "cuda-cudart"
RDEPENDS_${PN} = "tegra-libraries"

do_compile() {
    for pkg in ${CUDA_PKGS}; do
      dpkg-deb --extract ${S}/var/cuda-repo-7-0-local/cuda-$pkg-7-0_${PV}_arm64.deb ${B}
    done
    rm -rf ${B}/usr/share
}

do_install() {
    install -d ${D}${prefix}/local/cuda-7.0/include
    install -d ${D}${prefix}/local/cuda-7.0/lib
    install -d ${D}${libdir}/pkgconfig
    cp -R --preserve=mode,timestamps ${B}/usr/local/cuda-7.0/targets/aarch64-linux/lib/* ${D}${prefix}/local/cuda-7.0/lib/
    cp -R --preserve=mode,timestamps ${B}/usr/local/cuda-7.0/targets/aarch64-linux/include/* ${D}${prefix}/local/cuda-7.0/include/
    for f in ${B}/usr/lib/pkgconfig/*; do
        install -m0644 $f ${D}${libdir}/pkgconfig/
    done
}

FILES_${PN} = "${prefix}/local/cuda-7.0/lib/*.so*"
FILES_${PN}-dev = "${prefix}/local/cuda-7.0/include ${prefix}/local/cuda-7.0/lib/*.a ${prefix}/local/cuda-7.0/lib/stubs ${libdir}"

INSANE_SKIP_${PN} += "dev-so dev-deps"
INSANE_SKIP_${PN}-dev = "ldflags staticdev libdir dev-elf"<commit_msg>cuda-toolkit: filter files more carefully into respective -dev packages<commit_after>require cuda-shared-binaries.inc

CUDA_PKGS = " \
    nvrtc \
    nvrtc-dev \
    cusolver \
    cusolver-dev \
    cublas \
    cublas-dev \
    cufft \
    cufft-dev \
    curand \
    curand-dev \
    cusparse \
    cusparse-dev \
    npp \
    npp-dev \
"

DEPENDS = "cuda-cudart"
RDEPENDS_${PN} = "tegra-libraries"

do_compile() {
    for pkg in ${CUDA_PKGS}; do
      dpkg-deb --extract ${S}/var/cuda-repo-7-0-local/cuda-$pkg-7-0_${PV}_arm64.deb ${B}
    done
    rm -rf ${B}/usr/share
}

do_install() {
    install -d ${D}${prefix}/local/cuda-7.0/include
    install -d ${D}${prefix}/local/cuda-7.0/lib
    install -d ${D}${libdir}/pkgconfig
    cp -R --preserve=mode,timestamps ${B}/usr/local/cuda-7.0/targets/aarch64-linux/lib/* ${D}${prefix}/local/cuda-7.0/lib/
    cp -R --preserve=mode,timestamps ${B}/usr/local/cuda-7.0/targets/aarch64-linux/include/* ${D}${prefix}/local/cuda-7.0/include/
    for f in ${B}/usr/lib/pkgconfig/*; do
        install -m0644 $f ${D}${libdir}/pkgconfig/
    done
}

FILES_${PN} = "${prefix}/local/cuda-7.0/lib/*${SOLIBS} ${prefix}/local/cuda-7.0/lib/stubs"
FILES_${PN}-staticdev = "${prefix}/local/cuda-7.0/lib/*.a"
FILES_${PN}-dev = "${prefix}/local/cuda-7.0/include ${libdir} ${prefix}/local/cuda-7.0/lib/*.so"

INSANE_SKIP_${PN} += "dev-so dev-deps"
INSANE_SKIP_${PN}-dev = "ldflags staticdev libdir dev-elf"
{'fraction_non_alphanumeric': 0.2041409371594624, 'fraction_numerical': 0.025426807119505995, 'mean_word_length': 2.757162346521146, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4322902', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1176, 'n_words': 169}