计算化学公社

 找回密码 Forget password
 注册 Register
Views: 4270|回复 Reply: 32
打印 Print 上一主题 Last thread 下一主题 Next thread

[VASP] 求教大神,想查看intel编译器目录,怎样找到路径?

[复制链接 Copy URL]

257

帖子

0

威望

1167

eV
积分
1424

Level 4 (黑子)

求教大神,我安装了intel编译器,想查看intel编译器目录,想查找路径,我直接  find -name compilervars.sh 查找一下文件路径。为什么没显示路径?  怎样查找路径? 

QQ图片20230802110104.jpg (902.69 KB, 下载次数 Times of downloads: 41)

QQ图片20230802110104.jpg

QQ图片20230802110249.png (517.1 KB, 下载次数 Times of downloads: 30)

QQ图片20230802110249.png

496

帖子

11

威望

4279

eV
积分
4995

Level 6 (一方通行)

2#
发表于 Post on 2023-8-2 11:14:21 | 只看该作者 Only view this author
假如你安装的是oneapi,以root身份安装的话在/opt/intel/oneapi中。个人用户安装就在家目录的~/intel目录下。
直接locate ifort可以查看路径
自由发挥,野蛮生长

1155

帖子

0

威望

4429

eV
积分
5584

Level 6 (一方通行)

3#
发表于 Post on 2023-8-2 11:15:02 | 只看该作者 Only view this author
本帖最后由 乐平 于 2023-8-2 11:22 编辑

你截图里至少有 parallel_studio_xe_2018_cluster_edition, l_BaseKit_p_2023.1,l_HPCKit_p_2023.1(即常说的 Intel OneAPI), 你安装的是哪个版本的 Intel 编译器?

另外,如果你在安装的时候没有修改路径,也就是说,你用是默认路径。
那么你应该在 /opt/intel 路径下找。一般而言,

对于 parallel_studio 而言,
  1. source /opt/intel/parallel_studio_xe_2018/psxevars.sh intel64         (注意路径要对应你自己的安装路径)
复制代码



对于 Intel OneAPI 而言,
  1. source /opt/intel/oneapi/setvars.sh intel64      (注意路径要对应你自己的安装路径)
复制代码



另外,我看你的截图里有 VASP 6.1.2,建议看看 VASP wiki 官方推荐的编译器
https://www.vasp.at/wiki/index.php/Toolchains


213

帖子

1

威望

2414

eV
积分
2647

Level 5 (御坂)

4#
发表于 Post on 2023-8-2 14:25:01 | 只看该作者 Only view this author
你只是在root的HOME下面找,肯定不对。
默认是在/opt/intel 下。如果要全局找要从根分区/ 开始找。

257

帖子

0

威望

1167

eV
积分
1424

Level 4 (黑子)

5#
 楼主 Author| 发表于 Post on 2023-8-2 18:23:37 | 只看该作者 Only view this author
abdoman 发表于 2023-8-2 14:25
你只是在root的HOME下面找,肯定不对。
默认是在/opt/intel 下。如果要全局找要从根分区/ 开始找。

好像找到了 : 
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh

257

帖子

0

威望

1167

eV
积分
1424

Level 4 (黑子)

6#
 楼主 Author| 发表于 Post on 2023-8-2 18:24:34 | 只看该作者 Only view this author
abdoman 发表于 2023-8-2 14:25
你只是在root的HOME下面找,肯定不对。
默认是在/opt/intel 下。如果要全局找要从根分区/ 开始找。

是这个吗?
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh

257

帖子

0

威望

1167

eV
积分
1424

Level 4 (黑子)

7#
 楼主 Author| 发表于 Post on 2023-8-2 18:27:02 | 只看该作者 Only view this author
乐平 发表于 2023-8-2 11:15
你截图里至少有 parallel_studio_xe_2018_cluster_edition, l_BaseKit_p_2023.1,l_HPCKit_p_2023.1(即常 ...

是这个吗? 
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh

213

帖子

1

威望

2414

eV
积分
2647

Level 5 (御坂)

8#
发表于 Post on 2023-8-3 08:56:37 | 只看该作者 Only view this author
wmg166 发表于 2023-8-2 18:27
是这个吗? 
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh

你source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh intel64
然后which icc 看有没有找到编译器,就知道了哦

1155

帖子

0

威望

4429

eV
积分
5584

Level 6 (一方通行)

9#
发表于 Post on 2023-8-3 10:57:07 | 只看该作者 Only view this author
wmg166 发表于 2023-8-2 18:27
是这个吗? 
[root@localhost ~]# cd /
[root@localhost /]# find -name compilervars.sh

是,这三个是等价的。

257

帖子

0

威望

1167

eV
积分
1424

Level 4 (黑子)

10#
 楼主 Author| 发表于 Post on 2023-8-3 15:44:46 | 只看该作者 Only view this author
abdoman 发表于 2023-8-3 08:56
你source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh intel64
然后whi ...

[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh
[root@localhost /]# cd ./home/intel/parallel_studio_xe_2018_cluster_edition/bin/
[root@localhost bin]# source compilervars.sh intel64
WARNING: 'gcc' was not found
WARNING: 'gcc' was not found


怎么办

257

帖子

0

威望

1167

eV
积分
1424

Level 4 (黑子)

11#
 楼主 Author| 发表于 Post on 2023-8-3 15:45:36 | 只看该作者 Only view this author
乐平 发表于 2023-8-3 10:57
是,这三个是等价的。

[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018/linux/bin/compilervars.sh
[root@localhost /]# cd ./home/intel/parallel_studio_xe_2018_cluster_edition/bin/
[root@localhost bin]# source compilervars.sh intel64
WARNING: 'gcc' was not found
WARNING: 'gcc' was not found


咋办  大神

1155

帖子

0

威望

4429

eV
积分
5584

Level 6 (一方通行)

12#
发表于 Post on 2023-8-3 15:59:57 | 只看该作者 Only view this author
wmg166 发表于 2023-8-3 15:45
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edit ...

……

你用 source 激活的是 Intel 的编译器,然后你调用 gcc ……

打个比方,你找你大哥帮忙,结果一进门叫人家嫂子……

213

帖子

1

威望

2414

eV
积分
2647

Level 5 (御坂)

13#
发表于 Post on 2023-8-3 16:46:33 | 只看该作者 Only view this author
wmg166 发表于 2023-8-3 15:45
[root@localhost /]# find -name compilervars.sh
./home/intel/parallel_studio_xe_2018_cluster_edit ...

echo $SHELL; 看root默认是csh 还是bash

# csh 就
source compilervars.csh
#bash 就
source compilervars.sh

看看返回什么,默认是
compilervars.sh [-arch] <arch> [-platform <platform>]

  <arch> must be one of the following:
      ia32           : Set up for IA-32 target.
      intel64        : Set up for Intel(R)64 target.
  <platform> must be of the following:
      android        : Set to Android* target.
      linux          : Set to Linux* target.(default)

If the arguments to the sourced script are ignored (consult docs
for your shell) the alternative way to specify target is environment
variables COMPILERVARS_ARCHITECTURE to pass <arch> to the script
and COMPILERVARS_PLATFORM to pass <platform>

257

帖子

0

威望

1167

eV
积分
1424

Level 4 (黑子)

14#
 楼主 Author| 发表于 Post on 2023-8-4 10:53:13 | 只看该作者 Only view this author
乐平 发表于 2023-8-3 15:59
……

你用 source 激活的是 Intel 的编译器,然后你调用 gcc ……

大神  您比喻的很形象, 我应该怎样操作,输入什么代码?  

257

帖子

0

威望

1167

eV
积分
1424

Level 4 (黑子)

15#
 楼主 Author| 发表于 Post on 2023-8-4 11:04:18 | 只看该作者 Only view this author
abdoman 发表于 2023-8-3 16:46
echo $SHELL; 看root默认是csh 还是bash

# csh 就

[root@localhost ~]# echo $SHELL
/bin/bash
[root@localhost ~]# source compilervars.sh
-bash: compilervars.sh: No such file or directory

咋办 ?  大神

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-21 04:09 , Processed in 0.198550 second(s), 23 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list