<commit_before>DESCRIPTION = "NVIDIA TensorRT (GPU Inference Engine) for deep learning"
HOMEPAGE = "http://developer.nvidia.com/tensorrt"
LICENSE = "Proprietary"
DEPENDS = "dpkg-native"

SRC_URI = "http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/3.2GA/m892ki/JetPackL4T_32_b196/nv-tensorrt-repo-ubuntu1604-ga-cuda9.0-trt3.0.4-20180208_1-1_arm64.deb"
SRC_URI[md5sum] = "5d625140e1a7c92706191b1f4cbc4cce"
SRC_URI[sha256sum] = "a49b1d23acb4f18e587322907860a714781dc8a1cd0607a0122f9ddfab0106b3"

COMPATIBLE_MACHINE = "(tegra186|tegra210)"
PACKAGE_ARCH = "${SOC_FAMILY_PKGARCH}"

PR = "r0"

LIC_FILES_CHKSUM = "file://NvInfer.h;endline=48;md5=85c72aa9eac0882b53808ab7daa49069"

CUDAPATH ?= "/usr/local/cuda-${CUDA_VERSION}"

S = "${WORKDIR}/var/nv-tensorrt-repo-ubuntu1604-ga-cuda9.0-trt3.0.4-20180208"
B = "${WORKDIR}/build"

do_configure() {
    dpkg-deb --extract ${S}/libnvinfer4_4.0.4-1+cuda9.0_arm64.deb ${B}
    dpkg-deb --extract ${S}/libnvinfer-dev_4.0.4-1+cuda9.0_arm64.deb ${B}
    dpkg-deb --extract ${S}/libnvinfer-samples_4.0.4-1+cuda9.0_arm64.deb ${B}
    # for the LIC_FILES_CHKSUM check
    cp ${B}/usr/include/aarch64-linux-gnu/NvInfer.h ${S}/
}
do_populate_lic[depends] += "${PN}:do_configure"

do_compile() {<commit_msg>tensorrt: correct value for S<commit_after>DESCRIPTION = "NVIDIA TensorRT (GPU Inference Engine) for deep learning"
HOMEPAGE = "http://developer.nvidia.com/tensorrt"
LICENSE = "Proprietary"
DEPENDS = "dpkg-native"

SRC_URI = "http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/3.2GA/m892ki/JetPackL4T_32_b196/nv-tensorrt-repo-ubuntu1604-ga-cuda9.0-trt3.0.4-20180208_1-1_arm64.deb"
SRC_URI[md5sum] = "5d625140e1a7c92706191b1f4cbc4cce"
SRC_URI[sha256sum] = "a49b1d23acb4f18e587322907860a714781dc8a1cd0607a0122f9ddfab0106b3"

COMPATIBLE_MACHINE = "(tegra186|tegra210)"
PACKAGE_ARCH = "${SOC_FAMILY_PKGARCH}"

PR = "r0"

LIC_FILES_CHKSUM = "file://NvInfer.h;endline=48;md5=85c72aa9eac0882b53808ab7daa49069"

CUDAPATH ?= "/usr/local/cuda-${CUDA_VERSION}"

S = "${WORKDIR}/var/nv-tensorrt-repo-ga-cuda9.0-trt3.0.4-20180208"
B = "${WORKDIR}/build"

do_configure() {
    dpkg-deb --extract ${S}/libnvinfer4_4.0.4-1+cuda9.0_arm64.deb ${B}
    dpkg-deb --extract ${S}/libnvinfer-dev_4.0.4-1+cuda9.0_arm64.deb ${B}
    dpkg-deb --extract ${S}/libnvinfer-samples_4.0.4-1+cuda9.0_arm64.deb ${B}
    # for the LIC_FILES_CHKSUM check
    cp ${B}/usr/include/aarch64-linux-gnu/NvInfer.h ${S}/
}
do_populate_lic[depends] += "${PN}:do_configure"

do_compile() {
{'fraction_non_alphanumeric': 0.16462208151958843, 'fraction_numerical': 0.13533834586466165, 'mean_word_length': 5.482051282051282, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1785150', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1198, 'n_words': 120}