计算化学公社

 找回密码 Forget password
 注册 Register

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

查看数: 4268 | 评论数: 32 | 收藏 Add to favorites 2
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2023-8-2 11:04

正文摘要:

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

回复 Reply

wmg166 发表于 Post on 2023-8-16 17:24:50
wmg166 发表于 2023-8-16 17:01
大神  解压vasp 6.1.2后,运行 make std   或者 make all 出错,咋办?

[root@localhost ~]# cd /opt/v ...

我 yum install rsync
运行  make std
出现提示:
make[3]: *** [makefile:31: sites.o] Error 2
make[3]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/parser'
make[2]: *** [makefile:12: all] Error 2
make[2]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/parser'
make[1]: *** [makefile:156: parser] Error 2
make[1]: Leaving directory '/opt/vasp.6.1.2_patched/build/std'
make: *** [makefile:6: std] Error 2
[root@localhost vasp.6.1.2_patched]# make all
if [ ! -d build/std ] ; then mkdir build/std  ; fi; \
cp src/makefile src/.objects makefile.include build/std ; \
make -C build/std VERSION=std all
make[1]: Entering directory '/opt/vasp.6.1.2_patched/build/std'
rsync -ru ../../src/lib .
cp makefile.include lib
make -C lib -j1
make[2]: Entering directory '/opt/vasp.6.1.2_patched/build/std/lib'
make libdmy.a
make[3]: Entering directory '/opt/vasp.6.1.2_patched/build/std/lib'
make[3]: 'libdmy.a' is up to date.
make[3]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/lib'
make[2]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/lib'
rsync -ru ../../src/parser .
cp makefile.include parser
make -C parser -j1
make[2]: Entering directory '/opt/vasp.6.1.2_patched/build/std/parser'
make libparser.a
make[3]: Entering directory '/opt/vasp.6.1.2_patched/build/std/parser'
icpc -D YY_parse_DEBUG=1 -c sites.cpp -o sites.o
In file included from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/move.h(55),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_pair.h(59),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_algobase.h(64),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/vector(60),
                 from sites.hpp(4),
                 from sites.cpp(1):
/opt/rh/devtoolset-9/root/usr/include/c++/9/type_traits(1018): error: type name is not allowed
        : public __bool_constant<__is_assignable(_Tp, _Up)>
                                                 ^

In file included from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/move.h(55),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_pair.h(59),
                  from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_algobase.h(64),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/vector(60),
                 from sites.hpp(4),
                 from sites.cpp(1):
/opt/rh/devtoolset-9/root/usr/include/c++/9/type_traits(1018): error: type name is not allowed
        : public __bool_constant<__is_assignable(_Tp, _Up)>
                                                      ^

In file included from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/move.h(55),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_pair.h(59),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_algobase.h(64),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/vector(60),
                 from sites.hpp(4),
                 from sites.cpp(1):
/opt/rh/devtoolset-9/root/usr/include/c++/9/type_traits(1018): error: identifier "__is_assignable" is undefined
        : public __bool_constant<__is_assignable(_Tp, _Up)>
                                 ^

In file included from /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/ios_base.h(46),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/ios(42),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/ostream(38),
                 from /opt/rh/devtoolset-9/root/usr/include/c++/9/iostream(39),
                 from sites.cpp(2):
/opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_function.h(437): error: identifier "__builtin_is_constant_evaluated" is undefined
        if (__builtin_is_constant_evaluated())
            ^

compilation aborted for sites.cpp (code 2)
make[3]: *** [makefile:31: sites.o] Error 2
make[3]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/parser'
make[2]: *** [makefile:12: all] Error 2
make[2]: Leaving directory '/opt/vasp.6.1.2_patched/build/std/parser'
make[1]: *** [makefile:156: parser] Error 2
make[1]: Leaving directory '/opt/vasp.6.1.2_patched/build/std'
make: *** [makefile:6: std] Error 2
wmg166 发表于 Post on 2023-8-16 17:01:07
大神  解压vasp 6.1.2后,运行 make std   或者 make all 出错,咋办?

[root@localhost ~]# cd /opt/vasp.6.1.2/
bash: cd: /opt/vasp.6.1.2/: No such file or directory
[root@localhost ~]# cd /opt
[root@localhost opt]# ls
intel  parallel_studio_xe_2018_cluster_edition  rh  software  vasp.6.1.2_patched
[root@localhost opt]# cd  vasp.6.1.2_patched
[root@localhost vasp.6.1.2_patched]# ls
arch  bin  build  makefile  README.md  src  testsuite  tools
[root@localhost vasp.6.1.2_patched]# cp arch/makefile.include.linux.intel.
cp: missing destination file operand after 鈇rch/makefile.include.linux.intel.?
Try 'cp --help' for more information.
[root@localhost vasp.6.1.2_patched]# cp arch/makefile.include.linux_intel.
cp: missing destination file operand after 鈇rch/makefile.include.linux_intel.?
Try 'cp --help' for more information.
[root@localhost vasp.6.1.2_patched]# cp arch/makefile.include.linux_intel .
[root@localhost vasp.6.1.2_patched]# ls
arch  bin  build  makefile  makefile.include.linux_intel  README.md  src  testsuite  tools
[root@localhost vasp.6.1.2_patched]# mv makefile.include.linux_intel makefile.include  
[root@localhost vasp.6.1.2_patched]# make std
if [ ! -d build/std ] ; then mkdir build/std  ; fi; \
cp src/makefile src/.objects makefile.include build/std ; \
make -C build/std VERSION=std all
make[1]: Entering directory '/opt/vasp.6.1.2_patched/build/std'
rsync -ru ../../src/lib .
make[1]: rsync: Command not found
make[1]: *** [makefile:154: lib] Error 127
make[1]: Leaving directory '/opt/vasp.6.1.2_patched/build/std'
make: *** [makefile:6: std] Error 2
[root@localhost vasp.6.1.2_patched]# make all
if [ ! -d build/std ] ; then mkdir build/std  ; fi; \
cp src/makefile src/.objects makefile.include build/std ; \
make -C build/std VERSION=std all
make[1]: Entering directory '/opt/vasp.6.1.2_patched/build/std'
rsync -ru ../../src/lib .
make[1]: rsync: Command not found
make[1]: *** [makefile:154: lib] Error 127
make[1]: Leaving directory '/opt/vasp.6.1.2_patched/build/std'
make: *** [makefile:6: std] Error 2
[root@localhost vasp.6.1.2_patched]#
乐平 发表于 Post on 2023-8-11 20:30:41
wmg166 发表于 2023-8-11 17:14
太好了  ,谢谢大神指导,我接下来打算安装 vasp软件。

我看你第一个帖子里贴图是 vasp 6.1.2 ?

如果你的老师买了版权,建议下载最新的 vasp 6.4.1
wmg166 发表于 Post on 2023-8-11 17:14:11
乐平 发表于 2023-8-6 20:50
这是编译 Intel MKL 对应的快速傅里叶变换库 fftw3 Fortran 版本。
你成功了。

太好了  ,谢谢大神指导,我接下来打算安装 vasp软件。  
乐平 发表于 Post on 2023-8-6 20:50:21
wmg166 发表于 2023-8-6 16:28
大神,加载了 gcc和 Intel 编译器,之后,是不是要编译,产生库文件,是这样编译吗?
我输入: cd /home ...

这是编译 Intel MKL 对应的快速傅里叶变换库 fftw3 Fortran 版本。
你成功了。
wmg166 发表于 Post on 2023-8-6 16:28:26
乐平 发表于 2023-8-6 15:22
icpc -v

前面笔误写错了,已经更正

大神,加载了 gcc和 Intel 编译器,之后,是不是要编译,产生库文件,是这样编译吗?
我输入: cd /home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/mkl/interfaces/fftw3xf   

make libintel64

最后一行出现:ar: creating libfftw3xf_intel.a
rm -rf ./obj_intel
make[1]: Leaving directory '/home/intel/parallel_studio_xe_2018_cluster_edition/compilers_and_libraries_2018.0.128/linux/mkl/interfaces/fftw3xf'
[root@localhost fftw3xf]#
wmg166 发表于 Post on 2023-8-6 15:27:45
乐平 发表于 2023-8-6 15:22
icpc -v

前面笔误写错了,已经更正

icpc -v
icpc version 18.0.0 (gcc version 9.0.0 compatibility)
   

大神厉害
乐平 发表于 Post on 2023-8-6 15:22:00
本帖最后由 乐平 于 2023-8-6 15:23 编辑
wmg166 发表于 2023-8-6 15:19
大神,威武,基本都加载了,好像没有这个,怎么办:
ipcp -v
bash: ipcp: command not found

icpc -v

前面笔误写错了,已经更正

另外,
  1. source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh intel64
复制代码


wmg166 发表于 Post on 2023-8-6 15:19:03
本帖最后由 wmg166 于 2023-8-6 15:20 编辑
wmg166 发表于 2023-8-6 15:16
[root@localhost ~]# ifort -v
ifort version 18.0.0

大神,威武,基本都加载了,好像没有这个,怎么办:
ipcp -v
bash: ipcp: command not found
wmg166 发表于 Post on 2023-8-6 15:16:48
[root@localhost ~]# ifort -v
ifort version 18.0.0
wmg166 发表于 Post on 2023-8-6 15:16:06
[root@localhost ~]# icc -v
icc version 18.0.0 (gcc version 9.0.0 compatibility)
wmg166 发表于 Post on 2023-8-6 15:14:59
乐平 发表于 2023-8-6 14:10
你目前只加载了 gcc,还没加载 Intel 编译器。
如果你需要用到 Intel 编译器,需要输入

[root@localhost ~]# source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/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>
乐平 发表于 Post on 2023-8-6 14:10:26
本帖最后由 乐平 于 2023-8-6 15:21 编辑
wmg166 发表于 2023-8-6 10:54
接下来,是不是已经加载intel编译器了 ?  接下来为了避免每次都这么加载,输入这些吗:   source /home/ ...
是不是已经加载intel编译器了 ?

你目前只加载了 gcc,还没加载 Intel 编译器。
如果你需要用到 Intel 编译器,需要输入
  1. source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh
复制代码


然后检测是否成功加载了 Intel C 编译器
  1. icc -v
复制代码

检测是否成功加载了 Intel Fortran 编译器
  1. ifort -v
复制代码

检测是否成功加载了 Intel C++ 编译器
  1. icpc -v
复制代码

检测是否成功加载了 Intel MKL 数学库
  1. echo $MKLROOT
复制代码

检测是否成功加载了 Intel mpi
  1. which mpirun
复制代码
接下来为了避免每次都这么加载

什么叫为了避免每次都这么加载……  
需要用到编译器的时候,gcc 和 Intel 编译器都需要加载。
建议直接写入提交任务的脚本里,不建议直接写入 ~/.bashrc 环境变量文件里。
wmg166 发表于 Post on 2023-8-6 10:54:15
wmg166 发表于 2023-8-6 10:49
大神   安装您的指点,安装上gcc了 :
[root@localhost ~]# gcc -v
Using built-in specs.

接下来,是不是已经加载intel编译器了 ?  接下来为了避免每次都这么加载,输入这些吗:   source /home/intel/parallel_studio_xe_2018_cluster_edition/bin/compilervars.sh

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

GMT+8, 2026-2-20 22:36 , Processed in 0.169861 second(s), 25 queries , Gzip On.

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