Files
meta-tegra/classes/cuda-gcc.bbclass
Matt Madison 52f994fbb3 classes: update cuda bbclasses for nvcc/glibc 2.38 workaround
* Add flags for pointing to the compatibility/workaround header tree
  to CUDA_NVCC_PATH_FLAGS in cuda.bbclass
* Add the dependency on cuda-compatibility-workaround in cuda-gcc.bbclass

Signed-off-by: Matt Madison <matt@madison.systems>
2023-08-20 05:43:14 -07:00

9 lines
594 B
Plaintext

# CUDA requires gcc/g++ 10, so add that compiler and its runtime as
# dependencies, and set CC_FOR_CUDA and CXX_FOR_CUDA to point to that compiler.
DEPENDS:append:cuda = " virtual/${TARGET_PREFIX}cuda-gcc gcc-for-nvcc-runtime cuda-compatibility-workarounds"
CUDA_HOST_TOOLCHAIN_SUFFIX ??= ""
CUDA_HOST_TOOLCHAIN_SUFFIX:cuda = "-10.3.0"
CC_FOR_CUDA ?= "${CCACHE}${HOST_PREFIX}gcc${CUDA_HOST_TOOLCHAIN_SUFFIX} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
CXX_FOR_CUDA ?= "${CCACHE}${HOST_PREFIX}g++${CUDA_HOST_TOOLCHAIN_SUFFIX} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
PACKAGE_ARCH:cuda = "${TEGRA_PKGARCH}"