FDO测试性能, AutoFDO, google

-O0
Bubble sorting array of 30000 elements
7757 ms
-O3
Bubble sorting array of 30000 elements
2997 ms
-fprofile-generate
Bubble sorting array of 30000 elements
8260 ms
c1.sort.c: In function ‘main’:
c1.sort.c:49:1: warning: ‘sort_instrumented-c1.sort.gcda/#thfs4#home#test653#z2.chen#c5.fdo#c9.src9#sort_fdo-c1.sort.gcda’ profile count data file not found [-Wmissing-profile]
   49 | }
      | ^
Bubble sorting array of 30000 elements
2459 ms
 

2)

CMake Error at /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.22/Modules/FindProtobuf.cmake:650 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:10 (find_package)
  CMakeLists.txt:841 (execute_perf_protobuf)
 

修改:

cmake -DENABLE_TOOL=GCOV -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED=On ../  -DProtobuf_LIBRARIES="/thfs4/software/protobuf/27.3-gcc11.1.0/lib" -DProtobuf_INCLUDE_DIR="/thfs4/software/protobuf/27.3-gcc11.1.0/include"

3)

仍然报错

-- Found Protobuf: /thfs4/software/protobuf/27.3-gcc11.1.0/lib (found version "5.29.0")
-- Building tool "GCOV" ...
CMake Error at CMakeLists.txt:22 (add_subdirectory):
  The source directory

    *autofdo-master/third_party/abseil

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:844 (build_gcov)


-- Configuring incomplete, errors occurred!

abseil是空的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值