|
18 | 18 | case node['cfncluster']['cfn_node_type']
|
19 | 19 | when 'MasterServer'
|
20 | 20 |
|
| 21 | + # Install yum4 needed to handle Intel Packages |
| 22 | + package 'nextgen-yum4' do |
| 23 | + retries 3 |
| 24 | + retry_delay 5 |
| 25 | + end |
| 26 | + |
21 | 27 | # Downloads the intel-hpc-platform rpms
|
22 | 28 | bash "install intel hpc platform" do
|
23 | 29 | cwd node['cfncluster']['sources_dir']
|
24 | 30 | code <<-INTEL
|
25 | 31 | set -e
|
26 | 32 | yum-config-manager --add-repo http://yum.repos.intel.com/hpc-platform/el7/setup/intel-hpc-platform.repo
|
27 |
| - yum-config-manager --save --setopt=intel-hpc-platform.skip_if_unavailable=true |
28 | 33 | rpm --import http://yum.repos.intel.com/hpc-platform/el7/setup/PUBLIC_KEY.PUB
|
29 | 34 | yum -y install --downloadonly --downloaddir=/opt/intel/rpms intel-hpc-platform-*-#{node['cfncluster']['intelhpc']['version']}
|
30 | 35 | INTEL
|
31 | 36 | creates '/opt/intel/rpms'
|
32 | 37 | end
|
33 | 38 |
|
34 |
| - # parallel studio is intel's optimized libraries, this is the runtime (free) version |
| 39 | + # Parallel Studio is Intel's optimized libraries, this is the runtime (free) version |
35 | 40 | # installing version which is not the latest, requires to use yum version 4, see
|
36 | 41 | # https://software.intel.com/en-us/articles/installing-intel-parallel-studio-xe-runtime-2019-using-yum-repository
|
37 | 42 | bash "install intel psxe" do
|
38 | 43 | cwd node['cfncluster']['sources_dir']
|
39 | 44 | code <<-INTEL
|
40 | 45 | set -e
|
41 | 46 | rpm --import https://yum.repos.intel.com/2019/setup/RPM-GPG-KEY-intel-psxe-runtime-2019
|
42 |
| - yum -y install https://yum.repos.intel.com/2019/setup/intel-psxe-runtime-2019-reposetup-1-0.noarch.rpm |
43 |
| - yum-config-manager --save --setopt=intel-psxe-runtime-2019.skip_if_unavailable=true |
44 |
| - yum -y install nextgen-yum4 |
| 47 | + yum4 -y install https://yum.repos.intel.com/2019/setup/intel-psxe-runtime-2019-reposetup-1-0.noarch.rpm |
45 | 48 | yum4 -y install intel-psxe-runtime-#{node['cfncluster']['psxe']['version']}
|
46 | 49 | INTEL
|
47 | 50 | creates '/opt/intel/psxe_runtime'
|
48 | 51 | end
|
49 | 52 |
|
50 |
| - # intel optimized versions of python |
| 53 | + # Intel optimized versions of python |
51 | 54 | bash "install intel python" do
|
52 | 55 | cwd node['cfncluster']['sources_dir']
|
53 | 56 | code <<-INTEL
|
54 | 57 | set -e
|
55 | 58 | yum-config-manager --add-repo https://yum.repos.intel.com/intelpython/setup/intelpython.repo
|
56 |
| - yum-config-manager --save --setopt=intelpython.skip_if_unavailable=true |
57 | 59 | yum -y install intelpython2-#{node['cfncluster']['intelpython2']['version']} intelpython3-#{node['cfncluster']['intelpython3']['version']}
|
58 | 60 | INTEL
|
59 | 61 | creates '/opt/intel/intelpython2'
|
60 | 62 | end
|
| 63 | + |
| 64 | + bash "set skip_if_unavailable on Intel repo" do |
| 65 | + code <<-SKIP_UNAVAIL |
| 66 | + set -e |
| 67 | + yum-config-manager --save --setopt=intel-hpc-platform.skip_if_unavailable=True |
| 68 | + yum-config-manager --save --setopt=intel-psxe-runtime-2019.skip_if_unavailable=True |
| 69 | + yum-config-manager --save --setopt=intelpython.skip_if_unavailable=True |
| 70 | + SKIP_UNAVAIL |
| 71 | + end |
61 | 72 | end
|
62 | 73 |
|
63 | 74 | # This rpm installs a file /etc/intel-hpc-platform-release that contains the INTEL_HPC_PLATFORM_VERSION
|
|
87 | 98 | mode '0755'
|
88 | 99 | end
|
89 | 100 |
|
90 |
| -# intel optimized math kernel library |
| 101 | +# Intel optimized math kernel library |
91 | 102 | create_modulefile "#{node['cfncluster']['modulefile_dir']}/intelmkl" do
|
92 | 103 | source_path "/opt/intel/psxe_runtime/linux/mkl/bin/mklvars.sh"
|
93 | 104 | modulefile node['cfncluster']['psxe']['version']
|
94 | 105 | end
|
95 | 106 |
|
96 |
| -# intel psxe |
| 107 | +# Intel psxe |
97 | 108 | create_modulefile "#{node['cfncluster']['modulefile_dir']}/intelpsxe" do
|
98 | 109 | source_path "/opt/intel/psxe_runtime/linux/bin/psxevars.sh"
|
99 | 110 | modulefile node['cfncluster']['psxe']['version']
|
|
0 commit comments