Skip to content

Commit 151d22c

Browse files
Revert "Skip Neuron drivers installation if Inferentia drivers are already installed"
This reverts commit 5d683b8.
1 parent c199411 commit 151d22c

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

cookbooks/aws-parallelcluster-install/recipes/neuron.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,10 @@
1515
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
return if node['cluster']['base_os'] == 'centos7' || arm_instance?
18+
return if node['cluster']['base_os'] == 'centos7' || arm_instance? || is_package_installed?("aws-neuronx-dkms")
1919

20-
# Skip installation if Trainium or Inferentia drivers are already installed.
21-
# Inferentia packages might be installed in old DLAMIs and they will conflict with Neuron packages
22-
return if is_package_installed?("aws-neuronx-dkms") || is_package_installed?("aws-neuron-dkms")
23-
24-
# add neuron repository
2520
if platform?('amazon')
21+
# add neuron repository
2622
yum_repository "neuron" do
2723
description "Neuron YUM Repository"
2824
baseurl node['cluster']['neuron']['base_url']
@@ -32,6 +28,7 @@
3228
end
3329

3430
elsif platform?('ubuntu')
31+
3532
apt_repository 'neuron' do
3633
uri node['cluster']['neuron']['base_url']
3734
components ['main']

cookbooks/aws-parallelcluster-test/recipes/test_neuron.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
1515
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
1616
# limitations under the License.
17-
return if node['cluster']['base_os'] == 'centos7' || arm_instance? || node['cluster']['os'].end_with?("-custom")
1817

1918
ruby_block "Verify Neuron repository is enabled" do
2019
block do

0 commit comments

Comments
 (0)