AMD AOCC安装

AOCC是AMD的一款商用编译器,也称为AMD Optimizing C/C++ Compiler,官网地址为:https://developer.amd.com/amd-aocc/ 。

目前的最新版是AOCC 2.1版本,它基于LLVM 9.0版本,它针对AMD系列17h处理器进行了调整;对部分AMD的机型进行了优化;优化了AMD LibM等库;LLVM链接器(lld)作为默认链接器,不再需要Gold linker;它把改进的Flang作为默认的Fortran前端,而不再使用dragonegg插件配合gfortran作为Fortran前端。

AOCC 2.0和AOCC 2.1版本安装包都整合在一个文件里面了,安装比较简单,如下所示:

  1. 从官网下载安装包,在此下载源码
    aocc

  2. 解压并进入目录

tar -xvf aocc-compiler-2.0.0.tar
cd aocc-compiler-2.0.0
./install.sh
  1. 此时在文件上层目录生成一个setenv_AOCC.sh文件,表示安装成功
export PATH=/home/zgl/aocc-2.0/aocc-compiler-2.0.0/bin:$PATH
export LIBRARY_PATH=/home/zgl/aocc-2.0/aocc-compiler-2.0.0/lib:/home/zgl/aocc-2.0/aocc-compiler-2.0.0/lib32:$LIBRARY_PATH
export LD_LIBRARY_PATH=/home/zgl/aocc-2.0/aocc-compiler-2.0.0/lib:/home/zgl/aocc-2.0/aocc-compiler-2.0.0/lib32:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=$C_INCLUDE_PATH:/home/zgl/aocc-2.0/aocc-compiler-2.0.0/include
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/home/zgl/aocc-2.0/aocc-compiler-2.0.0/include
export LIBRARY_PATH=/usr/lib:/usr/lib64:$LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/lib:/usr/lib64:$LD_LIBRARY_PATH
  1. 执行source setenv_AOCC.sh命令便可使用AOCC

AOCC 1.3和之前的版本,包含三个文件:AOCC CompilerAOCC Fortran PluginAOCC Prerequisites,需要分别下载这三个文件。
执行tar -xvf AOCC-1.2.1-*解压之后,cd aocc-compiler/./install.sh进行安装,若安装时报错:Error: package AOCC Compiler is missing in your PWD。解决办法是:把三个.tar和解压文件放在一起,安装完成后再删除.tar即可。


References:
  • https://developer.amd.com/amd-aocc/
  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
amdcpu超频,全中文操作 WARNING: AMD and ATI processors are intended to be operated only within their associated specifications and factory settings. Operating your AMD or ATI processor outside of official AMD specifications or outside of factory settings, including but not limited to the conducting of overclocking (including use of this overclocking software, even if such software has been directly or indirectly provided by AMD or otherwise affiliated in any way with AMD), may damage your processor and/or lead to other problems, including but not limited to, damage to your system components (including your motherboard and components thereon (e.g. memory)), system instabilities (e.g. data loss and corrupted images), reduction in system performance, shortened processor, system component and/or system life and in extreme cases, total system failure. AMD does not provide support or service for issues or damages related to use of an AMD or ATI processor outside of official AMD specifications or outside of factory settings. You may also not receive support or service from your board or system manufacturer. Please make sure you have saved all important data before using this overclocking software. DAMAGES CAUSED BY USE OF YOUR AMD OR ATI PROCESSOR OUTSIDE OF OFFICIAL AMD SPECIFICATIONS OR OUTSIDE OF FACTORY SETTINGS ARE NOT COVERED UNDER ANY AMD PRODUCT WARRANTY AND MAY NOT BE COVERED BY YOUR BOARD OR SYSTEM MANUFACTURER’S WARRANTY. See End User License Agreement under AMD Overdrive or the applicable AMD overclocking utility for details.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值