File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
aws-parallelcluster-install/recipes
aws-parallelcluster-test/recipes Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 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
2520if platform? ( 'amazon' )
21+ # add neuron repository
2622 yum_repository "neuron" do
2723 description "Neuron YUM Repository"
2824 baseurl node [ 'cluster' ] [ 'neuron' ] [ 'base_url' ]
3228 end
3329
3430elsif platform? ( 'ubuntu' )
31+
3532 apt_repository 'neuron' do
3633 uri node [ 'cluster' ] [ 'neuron' ] [ 'base_url' ]
3734 components [ 'main' ]
Original file line number Diff line number Diff line change 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
1918ruby_block "Verify Neuron repository is enabled" do
2019 block do
You can’t perform that action at this time.
0 commit comments