-
Notifications
You must be signed in to change notification settings - Fork 20
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
Initial version of the configuration autodetection script #240
base: alps
Are you sure you want to change the base?
Initial version of the configuration autodetection script #240
Conversation
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.
Some very minor first comments
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.
Nice job! Just a couple of initial comments, I will try more tomorrow
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.
I added only some minor things that I have seen. I am now going through the testing o f the functionality.
cscs-ci run alps-todi-cpe |
cscs-ci run alps-todi-uenv |
1 similar comment
cscs-ci run alps-todi-uenv |
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.
Overall it looks good. I have a few more comments before approving.
config/utilities/constants.py
Outdated
UNDERLINE = '\033[4m' | ||
|
||
|
||
RFM_DOCUMENTATION = {'modules': 'https://reframe-hpc.readthedocs.io/en/stable/config_reference.html#config.systems.modules', |
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.
instead of repeating https://...
, can you use a variable ?
something like:
url = 'https://reframe-hpc.readthedocs.io/en/stable/'
...
'modules' = f'{url}/config_reference.html#config.systems.modules',
config/utilities/constants.py
Outdated
fi | ||
|
||
if check_lmod; then | ||
# Check if it's available as a module, regardless of 'which' result |
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.
# Check if it's available as a module, regardless of 'which' result | |
# Check if it is available as a module, regardless of 'which' result |
config/utilities/constants.py
Outdated
|
||
# Output the total memory | ||
echo "Total memory: $total_memory" | ||
''' |
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.
''' | |
''' |
import subprocess | ||
|
||
|
||
class ModulesSystem(abc.ABC): |
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.
ABC ?
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.
abstract base class
Automatic detection of the system configuration to create the reframe configuration file. User input is required to generate the final reframe config_file for the system:
<system_name>_config.py
and<system_name>_config.json
.