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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DEEP-SEA
easybuild-repository-public-release
Commits
c0ab44ee
Commit
c0ab44ee
authored
3 years ago
by
Inge Gutheil
Committed by
Tom Ridley
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
SUNDIALS-6.1.0
parent
df12e6f6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Custom_EasyBlocks/sundials.py
+17
-0
17 additions, 0 deletions
Custom_EasyBlocks/sundials.py
with
17 additions
and
0 deletions
Custom_EasyBlocks/sundials.py
0 → 100644
+
17
−
0
View file @
c0ab44ee
from
easybuild.easyblocks.generic.cmakemake
import
CMakeMake
from
easybuild.tools.modules
import
get_software_root
class
EB_SUNDIALS
(
CMakeMake
):
"""
Support for building Sundials.
"""
def
__init__
(
self
,
*
args
,
**
kwargs
):
"""
Custom constructor for SuiteSparse easyblock, initialize custom class parameters.
"""
super
(
EB_SUNDIALS
,
self
).
__init__
(
*
args
,
**
kwargs
)
def
configure_step
(
self
):
cuda
=
get_software_root
(
'
CUDA
'
)
if
cuda
:
cuda_cc_space_sep
=
self
.
cfg
.
template_values
[
'
cuda_cc_space_sep
'
].
replace
(
'
.
'
,
''
).
split
()
_max
=
max
(
cuda_cc_space_sep
)
self
.
cfg
[
'
configopts
'
]
+=
'
-DCMAKE_CUDA_ARCHITECTURES=
\"
%s
\"
'
%
_max
super
(
EB_SUNDIALS
,
self
).
configure_step
()
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
register
or
sign in
to comment