quantum espresso_7.3.1 openmpi+mkl编译---以ubuntu22.04为例

1、首先安装好gcc、g++、gfortran、build-essential、autoconf、openmpi 及intel oneapi;
2、在QE官网下载qe-7.3.1-ReleasePack.tar.gz(需登录);
QE官网下载页面
3、解压:tar -xvf qe-7.3.1-ReleasePack.tar.gz
4、编译:首先加载好intel mkl的环境变量,source /opt/intel/oneapi/mkl/2024.2/env/vars.sh && cd qe-7.3.1 && ./configure ;
./configure 结果
然后直接make all 等待编译完成即可;
编译过程部分截图1
在编译过程部分截图2
编译完成
编译好的程序在bin目录内;
qe的运行程序
5、可能遇到的错误:
Fatal error device_memcpy_m.mod
解决办法:sudo apt-get install libdevicexlib-dev;
6、测试cd PW/examples/cluster_example/ && ./run_example:测试结果
7、enjoy your work !

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
引用\[1\]中提到了一个编译错误,错误信息是"implicit declaration of function ‘RAND_egd’"。这个错误是因为在调用函数之前没有显示声明函数。在C语言中,如果要调用一个函数,必须在调用之前进行函数声明。引用\[2\]和引用\[3\]中提供了函数声明的示例代码。你可以在调用函数之前添加函数声明来解决这个编译错误。在你的情况下,你需要在调用函数"isr_bkd_get_channellist"之前进行函数声明。 #### 引用[.reference_title] - *1* [error: implicit declaration of function ‘RAND_egd’ [-Werror=implicit-function-declaration]](https://blog.csdn.net/quantum7/article/details/119573046)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [编译错误 error: implicit declaration of function ‘getopt’ [-Werror=implicit-function-declaration] ...](https://blog.csdn.net/qq_44839144/article/details/128067523)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Paranoaaa

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值