Skip to content
Snippets Groups Projects
Commit 1b6af8e1 authored by Andreas Müller's avatar Andreas Müller Committed by Eleni Mathioulaki
Browse files

Add changes needed to compile packages on JURECA@JSC

parent 2374cdd6
No related branches found
No related tags found
3 merge requests!389create new experimental release,!386update v0.20.0 branch,!385Add changes needed to compile packages on JURECA@JSC
......@@ -135,6 +135,11 @@ class Hxtorch(WafPackage):
def configure(self, spec, prefix):
"""Setup and configure the project."""
env = os.environ
if 'SPACK_COMPILER_IMPLICIT_RPATHS' in env:
env['LIBRARY_PATH'] = env['SPACK_COMPILER_IMPLICIT_RPATHS'] + ':' + env['LIBRARY_PATH']
env['WAF_CONFIGURE_LD_LIBRARY_PATH'] = env['SPACK_COMPILER_IMPLICIT_RPATHS'] + ':' + env['WAF_CONFIGURE_LD_LIBRARY_PATH']
self.waf('setup', '--repo-db-url=https://github.com/electronicvisions/projects',
'--without-munge',
'--without-hxcomm-hostarq',
......@@ -146,7 +151,6 @@ class Hxtorch(WafPackage):
args = ['--prefix={0}'.format(self.prefix)]
args += self.configure_args()
env = os.environ
env['LD_LIBRARY_PATH'] = env.get('WAF_CONFIGURE_LD_LIBRARY_PATH')
self.waf('configure', '--build-profile=release', '--disable-doxygen', *args)
......
......@@ -111,6 +111,11 @@ class PynnBrainscales(WafPackage):
def configure(self, spec, prefix):
"""Setup and configure the project."""
env = os.environ
if 'SPACK_COMPILER_IMPLICIT_RPATHS' in env:
env['LIBRARY_PATH'] = env['SPACK_COMPILER_IMPLICIT_RPATHS'] + ':' + env['LIBRARY_PATH']
env['WAF_CONFIGURE_LD_LIBRARY_PATH'] = env['SPACK_COMPILER_IMPLICIT_RPATHS'] + ':' + env['WAF_CONFIGURE_LD_LIBRARY_PATH']
self.waf('setup', '--repo-db-url=https://github.com/electronicvisions/projects',
'--without-munge',
'--without-hxcomm-hostarq',
......@@ -122,7 +127,6 @@ class PynnBrainscales(WafPackage):
args = ['--prefix={0}'.format(self.prefix)]
args += self.configure_args()
env = os.environ
env['LD_LIBRARY_PATH'] = env.get('WAF_CONFIGURE_LD_LIBRARY_PATH')
self.waf('configure', '--build-profile=release', '--disable-doxygen', *args)
......
......@@ -9,7 +9,8 @@ compilers:
flags: {}
operating_system: rocky8
target: x86_64
modules: []
modules:
- StdEnv/2023
environment: {}
extra_rpaths: []
- compiler:
......
config:
build_stage:
- $USERSOFTWARE/spack/user-cache/$user/spack-stage
- $USERSOFTWARE/EBRAINS/$SYSTEMNAME/spack/user-cache/$user/spack-stage
- $tempdir/$user/spack-stage
source_cache: $USERSOFTWARE/spack/source-cache
test_stage: $USERSOFTWARE/spack/user-cache/$user/test
misc_cache: $USERSOFTWARE/spack/user-cache/$user/cache
source_cache: $USERSOFTWARE/EBRAINS/$SYSTEMNAME/spack/source-cache
test_stage: $USERSOFTWARE/EBRAINS/$SYSTEMNAME/spack/user-cache/$user/test
misc_cache: $USERSOFTWARE/EBRAINS/$SYSTEMNAME/spack/user-cache/$user/cache
install_tree:
root: $USERSOFTWARE/install
root: $USERSOFTWARE/EBRAINS/$SYSTEMNAME/install
db_lock_timeout: 10
......@@ -2,6 +2,10 @@
# Currently Loaded Modules:
# 1) Stages/2023 (S) 2) GCCcore/.11.3.0 (H) 3) zlib/.1.2.12 (H) 4) binutils/.2.38 (H) 5) StdEnv/2023 6) spack/0.19.2
packages:
all:
variants: +cuda cuda_arch=75,80
llvm:
variants: ~cuda
findutils:
externals:
- spec: findutils@4.6.0
......@@ -18,18 +22,20 @@ packages:
externals:
- spec: diffutils@3.6
prefix: /usr
git:
externals:
- spec: git@2.31.1~tcltk
prefix: /usr
# TODO git, git-lsf and especially curl have been removed due to system curl not having support for https
# git:
# externals:
# - spec: git@2.31.1~tcltk
# prefix: /usr
m4:
externals:
- spec: m4@1.4.18
prefix: /usr
texinfo:
externals:
- spec: texinfo@6.5
prefix: /usr
# TODO Using system version causes 'missing makeinfo', as the binary is not available
# texinfo:
# externals:
# - spec: texinfo@6.5
# prefix: /usr
subversion:
externals:
- spec: subversion@1.10.2
......@@ -42,12 +48,10 @@ packages:
externals:
- spec: binutils@2.38
prefix: /p/software/jurecadc/stages/2023/software/binutils/2.38-GCCcore-11.3.0
- spec: binutils@2.30.117
prefix: /usr
openssl:
externals:
- spec: openssl@1.1.1k
prefix: /usr
prefix: /p/software/jurecadc/stages/2023/software/OpenSSL/1.1
pkgconf:
externals:
- spec: pkgconf@1.4.2
......@@ -68,14 +72,14 @@ packages:
externals:
- spec: openssh@8.0p1
prefix: /usr
curl:
externals:
- spec: curl@7.61.1+gssapi+ldap+nghttp2
prefix: /usr
git-lfs:
externals:
- spec: git-lfs@2.13.3
prefix: /usr
# curl:
# externals:
# - spec: curl@7.61.1+gssapi+ldap+nghttp2
# prefix: /usr
# git-lfs:
# externals:
# - spec: git-lfs@2.13.3
# prefix: /usr
gawk:
externals:
- spec: gawk@4.2.1
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment