Skip to content
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

Feature/stack csc #59

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
24 changes: 16 additions & 8 deletions LMOD/SitePackage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,10 @@ local mapT =
['modules/Infrastructure/'] = 'Infrastructure modules for the software stack _STACK_ on _PARTITION_',
['modules/easybuild/CrayEnv'] = 'EasyBuild managed software for CrayEnv',
['modules/easybuild/system'] = 'EasyBuild managed systemwide software',
['modules/easybuild/'] = 'EasyBuild managed software for software stack _STACK_ on _PARTITION_',
['modules/spack/'] = 'Spack managed software for software stack _STACK_ on _PARTITION_',
['modules/manual/system'] = 'Manually installed system-wide software',
['modules/manual/'] = 'Manually installed software for software stack _STACK_ on _PARTITION_',
['modules/easybuild/L'] = 'EasyBuild managed software for software stack _STACK_ on _PARTITION_',
-- ['modules/spack/'] = 'Spack managed software for software stack _STACK_ on _PARTITION_',
-- ['modules/manual/system'] = 'Manually installed system-wide software',
-- ['modules/manual/'] = 'Manually installed software for software stack _STACK_ on _PARTITION_',
['cray/pe/.*/craype%-targets'] = 'HPE-Cray PE target modules',
['cray/pe/.*/core'] = 'HPE-Cray PE modules',
['modules/CrayOverwrite/core'] = 'HPE-Cray PE modules',
Expand All @@ -641,6 +641,10 @@ local mapT =
['/usr/share/modulefiles'] = 'Non-PE HPE-Cray modules',
-- User-installed software
[ EB_prefix .. '/modules'] = 'EasyBuild managed user software for software stack _STACK_ on _PARTITION_',
-- Other stacks
['modules/LocalStack'] = 'Local software collections (non-LUST)',
['/appl/local/csc/modulefiles'] = 'Local software collection managed by CSC',
['/appl/local/quantum/modulefiles'] = 'Software for the Helmi quantum computer (non-LUST)',
},
PEhierarchy = {
-- ['/testview$'] = 'Activate environments',
Expand All @@ -652,10 +656,10 @@ local mapT =
['modules/Infrastructure/'] = 'Infrastructure modules for the software stack _STACK_ on _PARTITION_',
['modules/easybuild/CrayEnv'] = 'EasyBuild managed software for CrayEnv',
['modules/easybuild/system'] = 'EasyBuild managed systemwide software',
['modules/easybuild/'] = 'EasyBuild managed software for software stack _STACK_ on _PARTITION_',
['modules/spack/'] = 'Spack managed software for software stack _STACK_ on _PARTITION_',
['modules/manual/system'] = 'Manually installed system-wide software',
['modules/manual/'] = 'Manually installed software for software stack _STACK_ on _PARTITION_',
['modules/easybuild/L'] = 'EasyBuild managed software for software stack _STACK_ on _PARTITION_',
-- ['modules/spack/'] = 'Spack managed software for software stack _STACK_ on _PARTITION_',
-- ['modules/manual/system'] = 'Manually installed system-wide software',
-- ['modules/manual/'] = 'Manually installed software for software stack _STACK_ on _PARTITION_',
['cray/pe/.*/craype%-targets'] = 'HPE-Cray PE target modules',
['cray/pe/.*/core'] = 'HPE-Cray PE core modules',
['modules/CrayOverwrite/core'] = 'HPE-Cray PE core modules',
Expand All @@ -682,6 +686,10 @@ local mapT =
['/usr/share/modulefiles'] = 'Non-PE HPE-Cray modules',
-- User-installed software
[ EB_prefix .. '/modules'] = 'EasyBuild managed user software for software stack _STACK_ on _PARTITION_',
-- Other stacks
['modules/LocalStack'] = 'Local software collections (non-LUST)',
['/appl/local/csc/modulefiles'] = 'Local software collection managed by CSC',
['/appl/local/quantum/modulefiles'] = 'Software for the Helmi quantum computer (non-LUST)',
},
}

Expand Down
51 changes: 51 additions & 0 deletions modules/LocalStack/CSC.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
-- A module to make the CSC modules available on LUMI, but without
-- making them findable for the module spider command if the module
-- is not loaded to avoid interfering with the LUST software stack.

whatis( 'Description: Makes the CSC-managed local software collection available, see https://docs.csc.fi/apps/by_system/#lumi' )

help( [[
Description
===========
This module makes a software collection available managed and supported by CSC.

There is no guarantee that this software works together with software provided
by the CrayEnv, LUMI or spack software stacks on LUMI, though those modules will
not be automatically unloaded. Try at your own risk.

The LUMI User Support Team (LUST) is not managing the software made available by
this module, nor can LUST make any changes or corrections. Support for these
packages is provided by the CSC service desk, see https://docs.csc.fi/support/contact/.

The software provided by this module is not discoverable with module spider
unless the module is loaded.


More information
================
- Overview: https://docs.csc.fi/apps/by_system/#lumi
- Site contact: Help for the software made available by this module is provided
by the CSC service desk (https://docs.csc.fi/support/contact/) and not by
the LUMI User Support Team

]] )



--
-- Only make the MODLEPATH change visible to LMOD when loading, unloading or
-- showing a module to avoid interfereing with, e.g., module spider.
--

if mode() == 'load' or mode() == 'unload' or mode() == 'show' then
prepend_path( 'MODULEPATH', '/appl/local/csc/modulefiles' )
end

--
-- Print a message.
--

if mode() == 'load' then
LmodMessage( 'This software collection is provided and supported by CSC.\n' ..
'Run `module help CSC` for more information about support.' )
end
52 changes: 52 additions & 0 deletions modules/LocalStack/quantum.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-- A module to make the /appl/lumi/quantum modules available on LUMI, but
-- without making them findable for the module spider command if the module
-- is not loaded to avoid interfering with the LUST software stack.

whatis( 'Description: Makes the local software collection managed by the quantum computing team of CSC available' )

help( [[
Description
===========
This module makes a software collection available managed and supported by the
quantum computing team of CSC for users experimenting on Helmi.

There is no guarantee that this software works together with software provided
by the CrayEnv, LUMI or spack software stacks on LUMI, though those modules will
not be automatically unloaded. Try at your own risk.

The LUMI User Support Team (LUST) is not managing the software made available by
this module, nor can LUST make any changes or corrections. Support for these
packages is provided by the CSC service desk, see https://docs.csc.fi/support/contact/.

The software provided by this module is not discoverable with module spider
unless the module is loaded.


More information
================
- Web pages: https://docs.csc.fi/computing/quantum-computing/helmi/running-on-helmi/
- Site contact: Help for the software made available by this module is provided
by the CSC service desk (https://docs.csc.fi/support/contact/) and not by
the LUMI User Support Team

]] )



--
-- Only make the MODLEPATH change visible to LMOD when loading, unloading or
-- showing a module to avoid interfereing with, e.g., module spider.
--

if mode() == 'load' or mode() == 'unload' or mode() == 'show' then
prepend_path( 'MODULEPATH', '/appl/local/quantum/modulefiles' )
end

--
-- Print a message.
--

if mode() == 'load' then
LmodMessage( 'This software collection is provided and supported by Quantum Computing team of CSC.\n' ..
'Run `module help CSC` for more information about support.' )
end
1 change: 1 addition & 0 deletions modules/init-lumi/0.1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ local repo = myFileName():match( '.*/modules/init%-(.*)/init%-lumi/.*' )
-- Add additionsl directories to the MODULEPATH
-- (could be moved to /etc/cray-pe.d/cray-pe-configuration.sh)
--
prepend_path( 'MODULEPATH', pathJoin( LUMI_root, 'modules/LocalStack' ) )
prepend_path( 'MODULEPATH', pathJoin( LUMI_root, 'modules/easybuild/system' ) )

-- Setting defaults and visibility, note that this is a PATH-style variable
Expand Down
5 changes: 5 additions & 0 deletions scripts/prepare_LUMI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ fi
#
create_link "$installroot/$repo/modules/CrayEnv.lua" "$installroot/modules/SoftwareStack/CrayEnv.lua"

#
# Link the local software collections modules
#
create_link "$installroot/$repo/modules/LocalStack" "$installroot/modules/SoftwareStack/LocalStack"

#
# Link the style modules
#
Expand Down