-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edits to support icon-dsl on Daint #693
Changes from all commits
3dda0f2
b0eae12
ba5e7f3
e3c221f
106bb58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,10 @@ class Icon(AutotoolsPackage): | |
branch='test_spec', | ||
git='ssh://[email protected]/C2SM/icon-exclaim.git', | ||
submodules=True) | ||
version('gt4py', | ||
branch='icon-dsl', | ||
git='ssh://[email protected]/C2SM/icon-exclaim.git', | ||
submodules=True) | ||
version('nwp-master', | ||
git='ssh://[email protected]/icon/icon-nwp.git', | ||
submodules=True) | ||
|
@@ -131,7 +135,7 @@ class Icon(AutotoolsPackage): | |
description= | ||
'Enable extension of eccodes with center specific definition files') | ||
|
||
depends_on('py-icon4py@0.0.1%gcc') | ||
depends_on('py-icon4py@main%gcc') | ||
depends_on('gridtools@master%gcc') | ||
|
||
depends_on('infero +quiet', when='+infero') | ||
|
@@ -562,10 +566,8 @@ def configure_args(self): | |
cuda_host_compiler = self.compiler.cxx | ||
cuda_host_compiler_stdcxx_libs = self.compiler.stdcxx_libs | ||
|
||
config_vars['NVCFLAGS'].extend([ | ||
'-ccbin {0}'.format(cuda_host_compiler), '-g', '-O3', | ||
'-arch=sm_{0}'.format(gpu) | ||
]) | ||
config_vars['NVCFLAGS'].extend( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This breaks the variant |
||
['-g', '-O3', '-arch=sm_{0}'.format(gpu)]) | ||
# cuda_host_compiler_stdcxx_libs might contain compiler-specific | ||
# flags (i.e. not the linker -l<library> flags), therefore we put | ||
# the value to the config_flags directly. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ class PyGt4py(PythonPackage): | |
# Build dependencies | ||
depends_on('py-wheel', type='build') | ||
depends_on('py-cython', type='build') | ||
depends_on('py-setuptools@59.4:', type='build') | ||
depends_on('py-setuptools@60.6.0', type='build') | ||
|
||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
|
@@ -37,22 +37,21 @@ class PyGt4py(PythonPackage): | |
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]: +cython', type=('build', 'run')) | ||
depends_on('py-deepdiff', type=('build', 'run')) | ||
depends_on('py-deepdiff@5.6:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected].2:', type=('build', 'run')) | ||
depends_on('[email protected]: +blas +lapack', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
depends_on('[email protected]:', type=('build', 'run')) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,9 @@ def install(self, spec, prefix): | |
args.append('.') | ||
|
||
pip = inspect.getmodule(self).pip | ||
build_dirs = ['common', 'pyutils', 'testutils', 'atm_dyn_iconam'] | ||
build_dirs = [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here again you break the recipe for older version of icon4py. |
||
'common', 'pyutils', 'testutils', 'liskov', 'atm_dyn_iconam' | ||
] | ||
for dir in build_dirs: | ||
with working_dir(os.path.join(self.stage.source_path, dir)): | ||
pip(*args) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from spack.package import * | ||
from spack.pkg.builtin.py_setuptools import PySetuptools as SpackPySetuptools | ||
|
||
|
||
class PySetuptools(SpackPySetuptools): | ||
"""A Python utility that aids in the process of downloading, building, | ||
upgrading, installing, and uninstalling Python packages.""" | ||
|
||
version('60.6.0', | ||
sha256= | ||
'eb83b1012ae6bf436901c2a2cee35d45b7260f31fd4b65fd1e50a9f99c11d7f8') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better remove the
@version
completely and set it explicitely in anspack.yaml
. This recipe needs to be as general as possible. Otherwise we can only build one specific version of icon-dsl