Skip to content

Commit 071c850

Browse files
lukeseawalkertilne
authored andcommitted
Remove set of skip_if_unavailable option on Intel repo
Currently there is an issue with dnf/yum4 and the set of the option skip_if_unavailable Setting skip_if_unavailable (regardless the value true or false) bring the following errors "Failed to synchronize cache for repo 'intel-*', ignoring this repo." Removing for now Also moved installation of yum4 outside the bash section Signed-off-by: Luca Carrogu <[email protected]>
1 parent 655d263 commit 071c850

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

recipes/intel_install.rb

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,46 +18,57 @@
1818
case node['cfncluster']['cfn_node_type']
1919
when 'MasterServer'
2020

21+
# Install yum4 needed to handle Intel Packages
22+
package 'nextgen-yum4' do
23+
retries 3
24+
retry_delay 5
25+
end
26+
2127
# Downloads the intel-hpc-platform rpms
2228
bash "install intel hpc platform" do
2329
cwd node['cfncluster']['sources_dir']
2430
code <<-INTEL
2531
set -e
2632
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
2833
rpm --import http://yum.repos.intel.com/hpc-platform/el7/setup/PUBLIC_KEY.PUB
2934
yum -y install --downloadonly --downloaddir=/opt/intel/rpms intel-hpc-platform-*-#{node['cfncluster']['intelhpc']['version']}
3035
INTEL
3136
creates '/opt/intel/rpms'
3237
end
3338

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
3540
# installing version which is not the latest, requires to use yum version 4, see
3641
# https://software.intel.com/en-us/articles/installing-intel-parallel-studio-xe-runtime-2019-using-yum-repository
3742
bash "install intel psxe" do
3843
cwd node['cfncluster']['sources_dir']
3944
code <<-INTEL
4045
set -e
4146
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
4548
yum4 -y install intel-psxe-runtime-#{node['cfncluster']['psxe']['version']}
4649
INTEL
4750
creates '/opt/intel/psxe_runtime'
4851
end
4952

50-
# intel optimized versions of python
53+
# Intel optimized versions of python
5154
bash "install intel python" do
5255
cwd node['cfncluster']['sources_dir']
5356
code <<-INTEL
5457
set -e
5558
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
5759
yum -y install intelpython2-#{node['cfncluster']['intelpython2']['version']} intelpython3-#{node['cfncluster']['intelpython3']['version']}
5860
INTEL
5961
creates '/opt/intel/intelpython2'
6062
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
6172
end
6273

6374
# This rpm installs a file /etc/intel-hpc-platform-release that contains the INTEL_HPC_PLATFORM_VERSION
@@ -87,13 +98,13 @@
8798
mode '0755'
8899
end
89100

90-
# intel optimized math kernel library
101+
# Intel optimized math kernel library
91102
create_modulefile "#{node['cfncluster']['modulefile_dir']}/intelmkl" do
92103
source_path "/opt/intel/psxe_runtime/linux/mkl/bin/mklvars.sh"
93104
modulefile node['cfncluster']['psxe']['version']
94105
end
95106

96-
# intel psxe
107+
# Intel psxe
97108
create_modulefile "#{node['cfncluster']['modulefile_dir']}/intelpsxe" do
98109
source_path "/opt/intel/psxe_runtime/linux/bin/psxevars.sh"
99110
modulefile node['cfncluster']['psxe']['version']

0 commit comments

Comments
 (0)