From da976e4c5596e83089a8d38399d171b465ce2e19 Mon Sep 17 00:00:00 2001 From: Dominic Hofer <6570912+dominichofer@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:56:57 +0200 Subject: [PATCH] icon: add dependency on cutensor --- repos/c2sm/packages/icon/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repos/c2sm/packages/icon/package.py b/repos/c2sm/packages/icon/package.py index 44c28eb383..46927acd97 100755 --- a/repos/c2sm/packages/icon/package.py +++ b/repos/c2sm/packages/icon/package.py @@ -260,6 +260,7 @@ class Icon(AutotoolsPackage, CudaPackage): depends_on('yaxt+fortran', when='+cdi-pio') depends_on('lapack') depends_on('blas') + depends_on('cutensor') depends_on('netcdf-fortran') depends_on('netcdf-c', when='~cdi-pio') @@ -449,7 +450,7 @@ def configure_args(self): elif self.compiler.name in ['pgi', 'nvhpc']: config_vars['CFLAGS'].extend(['-g', '-O2']) config_vars['FCFLAGS'].extend( - ['-g', '-O', '-Mrecursive', '-Mallocatable=03', '-Mbackslash']) + ['-g', '-O', '-Mrecursive', '-Mallocatable=03', '-Mbackslash', '-cudalib=cutensor']) if self.spec.variants['gpu'].value == 'openacc+cuda': config_vars['FCFLAGS'].extend([ @@ -529,6 +530,7 @@ def configure_args(self): libs += self.spec['lapack:fortran'].libs libs += self.spec['blas:fortran'].libs + libs += self.spec['cutensor'].libs libs += self.spec['netcdf-fortran'].libs if '+coupling' in self.spec or '~cdi-pio' in self.spec: