sample 执行 ./build 无法加载头文件
收藏回复举报
sample 执行 ./build 无法加载头文件
t('forum.solved') 已解决
发表于2024-04-11 13:03:31
0 查看

问题描述

cd AddcdivCustom/
./build.sh


>>>build ops lib error: In file included from /root/Documents/AddcdivCustomSample/AddcdivCustom/op_host/addcdiv_custom.cpp:2:
/root/Documents/AddcdivCustomSample/AddcdivCustom/op_host/addcdiv_custom_tiling.h:6:10: fatal error: register/tilingdata_base.h: No such file or directory
    6 | #include "register/tilingdata_base.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

CMake Error at cmake/func.cmake:27 (message):
  opbuild run failed!
Call Stack (most recent call first):
  op_host/CMakeLists.txt:4 (opbuild)

但另一个示例AddCustom的却可以执行,对比发现二者op_host中的CMakeList文件无差别,这是为什么呢?

cd AddCustom
./build.sh

>>>- Opbuild generating sources - done
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CROSS_PLATFORM_COMPILER

我要发帖子