|
22 | 22 | end |
23 | 23 |
|
24 | 24 | action :configure do |
25 | | - return unless intel_hpc_supported? && (node['cluster']['install_intel_base_toolkit'] == "true" || node['cluster']['install_intel_hpc_toolkit'] == "true" || node['cluster']['install_intel_python'] == "true") |
26 | | - |
27 | | - base_toolkit_version = "2023.2.0.49397" |
28 | | - base_toolkit_name = "l_BaseKit_p_#{base_toolkit_version}_offline.sh" |
29 | | - base_toolkit_url = "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/992857b9-624c-45de-9701-f6445d845359/#{base_toolkit_name}" |
30 | | - hpc_toolkit_version = "2023.2.0.49440" |
31 | | - hpc_toolkit_name = "l_HPCKit_p_#{hpc_toolkit_version}_offline.sh" |
32 | | - hpc_toolkit_url = "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/0722521a-34b5-4c41-af3f-d5d14e88248d/#{hpc_toolkit_name}" |
33 | | - intel_python_version = "2023.2.0.49422" |
34 | | - intel_python_name = "l_pythoni39_oneapi_p_#{intel_python_version}_offline.sh" |
35 | | - intel_python_url = "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/03aae3a8-623a-47cf-9655-5dd8fcf86430/#{intel_python_name}" |
36 | | - # Below are critical security updates not included in the tookits: |
37 | | - cpp_compiler_version = "2023.2.1.8" |
38 | | - cpp_compiler_name = "l_dpcpp-cpp-compiler_p_#{cpp_compiler_version}_offline.sh" |
39 | | - cpp_compiler_url = "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/ebf5d9aa-17a7-46a4-b5df-ace004227c0e/#{cpp_compiler_name}" |
40 | | - fortran_compiler_version = "2023.2.1.8" |
41 | | - fortran_compiler_name = "l_fortran-compiler_p_#{fortran_compiler_version}_offline.sh" |
42 | | - fortran_compiler_url = "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/0d65c8d4-f245-4756-80c4-6712b43cf835/#{fortran_compiler_name}" |
43 | | - |
44 | | - intel_offline_installer_dir = '/opt/intel/offlineInstaller' |
45 | | - |
46 | | - directory intel_offline_installer_dir do |
47 | | - recursive true |
48 | | - end |
49 | | - |
50 | | - if node['cluster']['install_intel_base_toolkit'] == "true" |
51 | | - install_intel_software "Install Intel Base Toolkit" do |
52 | | - software_name base_toolkit_name |
53 | | - software_url base_toolkit_url |
54 | | - intel_offline_installer_dir intel_offline_installer_dir |
55 | | - end |
56 | | - install_intel_software "Critical Update for Intel oneAPI DPC++/C++ Compiler" do |
57 | | - software_name cpp_compiler_name |
58 | | - software_url cpp_compiler_url |
59 | | - intel_offline_installer_dir intel_offline_installer_dir |
60 | | - end |
61 | | - end |
62 | | - if node['cluster']['install_intel_hpc_toolkit'] == "true" |
63 | | - install_intel_software "Intel OneAPI HPC Toolkits" do |
64 | | - software_name hpc_toolkit_name |
65 | | - software_url hpc_toolkit_url |
66 | | - intel_offline_installer_dir intel_offline_installer_dir |
67 | | - end |
68 | | - install_intel_software "Critical Update for Intel Fortran Compiler & Intel Fortran Compiler Classic" do |
69 | | - software_name fortran_compiler_name |
70 | | - software_url fortran_compiler_url |
71 | | - intel_offline_installer_dir intel_offline_installer_dir |
72 | | - end |
73 | | - end |
74 | | - if node['cluster']['install_intel_python'] == "true" |
75 | | - install_intel_software "Install Intel Python" do |
76 | | - software_name intel_python_name |
77 | | - software_url intel_python_url |
78 | | - intel_offline_installer_dir intel_offline_installer_dir |
79 | | - end |
80 | | - end |
81 | | - bash "copy Intel modulefiles to MODULEPATH" do |
82 | | - cwd "/opt/intel" |
83 | | - code <<-INTEL |
84 | | - set -e |
85 | | - ./modulefiles-setup.sh --output-dir="/usr/share/Modules/modulefiles/intel" |
86 | | - INTEL |
87 | | - end |
88 | | -end |
89 | | - |
90 | | -def intel_hpc_supported? |
91 | | - !arm_instance? |
| 25 | + # do nothing |
92 | 26 | end |
0 commit comments