Skip to content

Commit b9e775f

Browse files
committed
Add spack resource for rocky8
Signed-off-by: Enrico Usai <[email protected]>
1 parent 0252604 commit b9e775f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# frozen_string_literal: true
2+
3+
# Copyright:: 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License").
6+
# You may not use this file except in compliance with the License.
7+
# A copy of the License is located at
8+
#
9+
# http://aws.amazon.com/apache2.0/
10+
#
11+
# or in the "LICENSE.txt" file accompanying this file.
12+
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
13+
# See the License for the specific language governing permissions and limitations under the License.
14+
15+
provides :spack, platform: 'rocky' do |node|
16+
node['platform_version'].to_i == 8
17+
end
18+
19+
use 'partial/_spack_common.rb'
20+
21+
def dependencies
22+
%w(autoconf automake bison byacc cscope ctags diffstat doxygen elfutils flex gcc gcc-c++ gcc-gfortran git
23+
indent intltool libtool patch patchutils rcs rpm-build rpm-sign subversion swig system-rpm-config systemtap
24+
curl findutils hostname iproute redhat-lsb-core python3 python3-setuptools unzip python3-boto3)
25+
end
26+
27+
def libfabric_path
28+
'/opt/amazon/efa/lib64/pkgconfig/libfabric.pc'
29+
end
30+
31+
action :setup do
32+
action_install_spack
33+
end

0 commit comments

Comments
 (0)