Remove CXX11/ directory nesting for Tensor modules

libeigen/eigen!2199

Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
Rasmus Munk Larsen
2026-02-26 07:03:38 -08:00
parent 11eb66e1b5
commit 064d686c57
191 changed files with 336 additions and 323 deletions

View File

@@ -15,11 +15,11 @@
// There is code in the Tensorflow codebase that will define EIGEN_USE_GPU, but
// for some reason gets sent to the gcc/host compiler instead of the gpu/nvcc/hipcc compiler
// When compiling such files, gcc will end up trying to pick up the CUDA headers by
// default (see the code within "unsupported/Eigen/CXX11/Tensor" that is guarded by EIGEN_USE_GPU)
// default (see the code within "unsupported/Eigen/Tensor" that is guarded by EIGEN_USE_GPU)
// This will obviously not work when trying to compile tensorflow on a system with no CUDA
// To work around this issue for HIP systems (and leave the default behaviour intact), the
// HIP tensorflow build defines EIGEN_USE_HIP when compiling all source files, and
// "unsupported/Eigen/CXX11/Tensor" has been updated to use HIP header when EIGEN_USE_HIP is
// "unsupported/Eigen/Tensor" has been updated to use HIP header when EIGEN_USE_HIP is
// defined. In continuation of that requirement, the guard here needs to be EIGEN_USE_HIP as well
#if defined(EIGEN_USE_HIP)

View File

@@ -1,4 +1,3 @@
#ifndef EIGEN_THREADPOOL_MODULE_H
#error \
"Please include unsupported/Eigen/CXX11/ThreadPool instead of including headers inside the src directory directly."
#error "Please include Eigen/ThreadPool instead of including headers inside the src directory directly."
#endif