如何使用 Autotuner 优化动态库
收藏回复举报
如何使用 Autotuner 优化动态库
t('forum.solved') 已解决
发表于2024-04-02 16:34:47
0 查看

查看了这个连接,https://www.hikunpeng.com/document/detail/zh/kunpengdevps/compiler/fg-autotuner/kunpengbisheng_20_0012.html

但是对于如何优化动态库还不是很熟悉。

我想对 geos 进行一些性能的优化,在使用 bisheng 编译器后报错。

CMake Error at /home/hn/cmake-3.29.0-linux-aarch64/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/home/hn/BiShengCompiler-3.2.0-aarch64-linux/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/home/hn/code/geos-3.10.4/CMakeFiles/CMakeScratch/TryCompile-KLvGPO'
    
    Run Build Command(s): /home/hn/cmake-3.29.0-linux-aarch64/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_a32cc/fast
    /usr/bin/gmake  -f CMakeFiles/cmTC_a32cc.dir/build.make CMakeFiles/cmTC_a32cc.dir/build
    gmake[1]: Entering directory '/home/hn/code/geos-3.10.4/CMakeFiles/CMakeScratch/TryCompile-KLvGPO'
    Building C object CMakeFiles/cmTC_a32cc.dir/testCCompiler.c.o
    /home/hn/BiShengCompiler-3.2.0-aarch64-linux/bin/clang   -fautotune-generate  -MD -MT CMakeFiles/cmTC_a32cc.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_a32cc.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_a32cc.dir/testCCompiler.c.o -c /home/hn/code/geos-3.10.4/CMakeFiles/CMakeScratch/TryCompile-KLvGPO/testCCompiler.c
    clang-15: error: -fautotune/-fautotune-generate should not be enabled at -O0
    gmake[1]: *** [CMakeFiles/cmTC_a32cc.dir/build.make:79: CMakeFiles/cmTC_a32cc.dir/testCCompiler.c.o] Error 1
    gmake[1]: Leaving directory '/home/hn/code/geos-3.10.4/CMakeFiles/CMakeScratch/TryCompile-KLvGPO'
    gmake: *** [Makefile:127: cmTC_a32cc/fast] Error 2
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:125 (project)

我写了一个简单的程序调用 GEOS 去计算 buffer ,我该如何去优化 geos 呢?

本帖最后由 匿名用户2024/04/02 16:49:28 编辑

我要发帖子