|
15 | 15 | # OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
|
16 | 16 | # limitations under the License.
|
17 | 17 |
|
18 |
| -# This rpm installs a file /etc/intel-hpc-platform-release that contains the INTEL_HPC_PLATFORM_VERSION |
19 |
| -bash "install intel hpc platform" do |
20 |
| - cwd node['cfncluster']['sources_dir'] |
21 |
| - code <<-INTEL |
22 |
| - set -e |
23 |
| - yum-config-manager --add-repo http://yum.repos.intel.com/hpc-platform/el7/setup/intel-hpc-platform.repo |
24 |
| - yum-config-manager --save --setopt=intel-hpc-platform.skip_if_unavailable=true |
25 |
| - rpm --import http://yum.repos.intel.com/hpc-platform/el7/setup/PUBLIC_KEY.PUB |
26 |
| - yum -y install intel-hpc-platform-* |
27 |
| - INTEL |
28 |
| - creates '/etc/intel-hpc-platform-release' |
29 |
| -end |
| 18 | +case node['cfncluster']['cfn_node_type'] |
| 19 | +when 'MasterServer' |
30 | 20 |
|
31 |
| -# parallel studio is intel's optimized libraries, this is the runtime (free) version |
32 |
| -bash "install intel psxe" do |
33 |
| - cwd node['cfncluster']['sources_dir'] |
34 |
| - code <<-INTEL |
35 |
| - set -e |
36 |
| - rpm --import https://yum.repos.intel.com/2019/setup/RPM-GPG-KEY-intel-psxe-runtime-2019 |
37 |
| - yum -y install https://yum.repos.intel.com/2019/setup/intel-psxe-runtime-2019-reposetup-1-0.noarch.rpm |
38 |
| - yum-config-manager --save --setopt=intel-psxe-runtime-2019.skip_if_unavailable=true |
39 |
| - yum -y install intel-psxe-runtime-#{node['cfncluster']['psxe']['version']} |
40 |
| - INTEL |
41 |
| - creates '/opt/intel/psxe_runtime' |
| 21 | + # Downloads the intel-hpc-platform rpms |
| 22 | + bash "install intel hpc platform" do |
| 23 | + cwd node['cfncluster']['sources_dir'] |
| 24 | + code <<-INTEL |
| 25 | + set -e |
| 26 | + 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 | + rpm --import http://yum.repos.intel.com/hpc-platform/el7/setup/PUBLIC_KEY.PUB |
| 29 | + yum -y install --downloadonly --downloaddir=/opt/intel/rpms intel-hpc-platform-*-#{node['cfncluster']['intelhpc']['version']} |
| 30 | + INTEL |
| 31 | + creates '/opt/intel/rpms' |
| 32 | + end |
| 33 | + |
| 34 | + # parallel studio is intel's optimized libraries, this is the runtime (free) version |
| 35 | + bash "install intel psxe" do |
| 36 | + cwd node['cfncluster']['sources_dir'] |
| 37 | + code <<-INTEL |
| 38 | + set -e |
| 39 | + rpm --import https://yum.repos.intel.com/2019/setup/RPM-GPG-KEY-intel-psxe-runtime-2019 |
| 40 | + yum -y install https://yum.repos.intel.com/2019/setup/intel-psxe-runtime-2019-reposetup-1-0.noarch.rpm |
| 41 | + yum-config-manager --save --setopt=intel-psxe-runtime-2019.skip_if_unavailable=true |
| 42 | + yum -y install intel-psxe-runtime-#{node['cfncluster']['psxe']['version']} |
| 43 | + INTEL |
| 44 | + creates '/opt/intel/psxe_runtime' |
| 45 | + end |
| 46 | + |
| 47 | + # intel optimized versions of python |
| 48 | + bash "install intel python" do |
| 49 | + cwd node['cfncluster']['sources_dir'] |
| 50 | + code <<-INTEL |
| 51 | + set -e |
| 52 | + yum-config-manager --add-repo https://yum.repos.intel.com/intelpython/setup/intelpython.repo |
| 53 | + yum-config-manager --save --setopt=intelpython.skip_if_unavailable=true |
| 54 | + yum -y install intelpython2 intelpython3 |
| 55 | + INTEL |
| 56 | + creates '/opt/intel/intelpython2' |
| 57 | + end |
42 | 58 | end
|
43 | 59 |
|
44 |
| -# intel optimized versions of python |
45 |
| -bash "install intel python" do |
| 60 | +# This rpm installs a file /etc/intel-hpc-platform-release that contains the INTEL_HPC_PLATFORM_VERSION |
| 61 | +bash "install intel hpc platform" do |
46 | 62 | cwd node['cfncluster']['sources_dir']
|
47 | 63 | code <<-INTEL
|
48 | 64 | set -e
|
49 |
| - yum-config-manager --add-repo https://yum.repos.intel.com/intelpython/setup/intelpython.repo |
50 |
| - yum-config-manager --save --setopt=intelpython.skip_if_unavailable=true |
51 |
| - yum -y install intelpython2 intelpython3 |
| 65 | + yum install -y /opt/intel/rpms/* |
52 | 66 | INTEL
|
53 |
| - creates '/opt/intel/intelpython2' |
| 67 | + creates '/etc/intel-hpc-platform-release' |
54 | 68 | end
|
55 | 69 |
|
56 | 70 | # create intelpython module directory
|
|
0 commit comments