From fb9f874df9b44aee881b8b41c786b72a5f28d038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E5=BC=80=E5=AE=89?= Date: Mon, 1 Apr 2024 17:10:18 +0800 Subject: [PATCH] =?UTF-8?q?A-FOT=E5=AE=89=E8=A3=85=E6=8C=87=E5=AF=BC?= =?UTF-8?q?=E8=B5=84=E6=96=99=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...346\214\207\345\257\274\350\257\264\346\230\216.md" | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git "a/document/A-FOT\345\256\211\350\243\205\351\203\250\347\275\262\346\214\207\345\257\274/A-FOT\345\256\211\350\243\205\344\275\277\347\224\250\344\273\245\345\217\212\351\233\206\346\210\220\345\210\260Jenkins\346\214\207\345\257\274\350\257\264\346\230\216.md" "b/document/A-FOT\345\256\211\350\243\205\351\203\250\347\275\262\346\214\207\345\257\274/A-FOT\345\256\211\350\243\205\344\275\277\347\224\250\344\273\245\345\217\212\351\233\206\346\210\220\345\210\260Jenkins\346\214\207\345\257\274\350\257\264\346\230\216.md" index 25d4f72..62fe255 100644 --- "a/document/A-FOT\345\256\211\350\243\205\351\203\250\347\275\262\346\214\207\345\257\274/A-FOT\345\256\211\350\243\205\344\275\277\347\224\250\344\273\245\345\217\212\351\233\206\346\210\220\345\210\260Jenkins\346\214\207\345\257\274\350\257\264\346\230\216.md" +++ "b/document/A-FOT\345\256\211\350\243\205\351\203\250\347\275\262\346\214\207\345\257\274/A-FOT\345\256\211\350\243\205\344\275\277\347\224\250\344\273\245\345\217\212\351\233\206\346\210\220\345\210\260Jenkins\346\214\207\345\257\274\350\257\264\346\230\216.md" @@ -113,6 +113,10 @@ A-FOT是一款用于提升编译器GCC for openEuler自动反馈优化特性的 - 选择“Wrapper”构建模式,会使用A-FOT中的包装器编译。 - 选择“Bear”构建模式,会进行两次编译。 +3)脚本工作目录 + +在配置文件中,脚本工作目录示例在/opt下,实际应用中请修改为家目录或者./目录下 + ### 6.启动优化: ```shell @@ -123,8 +127,8 @@ a-fot --config_file a-fot.ini ```shell # 命令格式为 a-fot [OPTION1 ARG1] [OPTION2 ARG2] -# 例如以优化模式为AutoFDO,GCC路径/usr,应用运行脚本路径/root/run.sh,构建模式为Bear,命令如下 -a-fot --opt_mode AutoFDO --gcc_path /usr --run_script /root/run.sh --build_mode Wrapper +# 例如以优化模式为AutoFDO,GCC路径/usr,应用运行脚本路径/root/run.sh,应用构建脚本路径/root/build.sh构建模式为Bear, 脚本工作目录为当前目录,命令如下 +a-fot --opt_mode AutoFDO --gcc_path /usr --run_script /root/run.sh --build_script /root/build.sh --build_mode Wrapper --work_path ./ ``` 详细命令行参数如下: @@ -202,7 +206,7 @@ pipeline { label 'Linux_aarch64' } steps{ - sh 'a-fot --opt_mode AutoFDO --gcc_path /usr --run_script /root/run.sh --build_mode Wrapper' + sh 'a-fot --opt_mode AutoFDO --gcc_path /usr --run_script /root/run.sh --build_script /root/build.sh --build_mode Wrapper --work_path ./' } } } -- Gitee