Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
easybuild-repository-public-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DEEP-SEA
easybuild-repository-public-release
Commits
bbdd1e03
Commit
bbdd1e03
authored
Jun 2, 2021
by
Damian Alvarez
Browse files
Options
Downloads
Patches
Plain Diff
To support NVHPC >= 21.3
parent
2e180df6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Custom_EasyBlocks/nvhpc.py
+16
-8
16 additions, 8 deletions
Custom_EasyBlocks/nvhpc.py
with
16 additions
and
8 deletions
Custom_EasyBlocks/nvhpc.py
+
16
−
8
View file @
bbdd1e03
...
...
@@ -40,6 +40,7 @@ import stat
import
sys
import
platform
from
distutils.version
import
LooseVersion
from
easybuild.easyblocks.generic.packedbinary
import
PackedBinary
from
easybuild.framework.easyconfig
import
CUSTOM
from
easybuild.tools.filetools
import
adjust_permissions
,
write_file
...
...
@@ -101,9 +102,9 @@ class EB_NVHPC(PackedBinary):
def
install_step
(
self
):
"""
Install by running install command.
"""
# EULA for NVHPC must be accepted via --accept-eula EasyBuild configuration option,
# EULA for NVHPC must be accepted via --accept-eula
-for
EasyBuild configuration option,
# or via 'accept_eula = True' in easyconfig file
#
self.check_accepted_eula(more_info='https://docs.nvidia.com/hpc-sdk/eula/index.html')
# only supported in next EasyBuild release
self
.
check_accepted_eula
(
more_info
=
'
https://docs.nvidia.com/hpc-sdk/eula/index.html
'
)
default_cuda_version
=
self
.
cfg
[
'
default_cuda_version
'
]
if
default_cuda_version
is
None
:
...
...
@@ -173,6 +174,7 @@ class EB_NVHPC(PackedBinary):
if
os
.
path
.
islink
(
path
):
os
.
remove
(
path
)
if
LooseVersion
(
self
.
version
)
<
LooseVersion
(
'
21.3
'
):
# install (or update) siterc file to make NVHPC consider $LIBRARY_PATH
siterc_path
=
os
.
path
.
join
(
compilers_subdir
,
'
bin
'
,
'
siterc
'
)
write_file
(
siterc_path
,
SITERC_LIBRARY_PATH
,
append
=
True
)
...
...
@@ -186,8 +188,14 @@ class EB_NVHPC(PackedBinary):
"""
Custom sanity check for NVHPC
"""
prefix
=
self
.
nvhpc_install_subdir
compiler_names
=
[
'
nvc
'
,
'
nvc++
'
,
'
nvfortran
'
]
if
LooseVersion
(
self
.
version
)
<
LooseVersion
(
'
21.3
'
):
files
=
[
os
.
path
.
join
(
prefix
,
'
compilers
'
,
'
bin
'
,
x
)
for
x
in
compiler_names
+
[
'
siterc
'
]]
else
:
files
=
[
os
.
path
.
join
(
prefix
,
'
compilers
'
,
'
bin
'
,
x
)
for
x
in
compiler_names
]
custom_paths
=
{
'
files
'
:
[
os
.
path
.
join
(
prefix
,
'
compilers
'
,
'
bin
'
,
x
)
for
x
in
compiler_names
+
[
'
siterc
'
]]
,
'
files
'
:
files
,
'
dirs
'
:
[
os
.
path
.
join
(
prefix
,
'
compilers
'
,
'
bin
'
),
os
.
path
.
join
(
prefix
,
'
compilers
'
,
'
lib
'
),
os
.
path
.
join
(
prefix
,
'
compilers
'
,
'
include
'
),
os
.
path
.
join
(
prefix
,
'
compilers
'
,
'
man
'
)]
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment