Skip to content

Commit

Permalink
Schema changes to add a layer for template variables (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz authored Oct 12, 2023
1 parent 0cc8749 commit 462859f
Show file tree
Hide file tree
Showing 14 changed files with 215 additions and 179 deletions.
17 changes: 9 additions & 8 deletions daint.cscs.ch/gpu/codes/QE-7.2-exe-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ prepend_text: |
module load QuantumESPRESSO
append_text: ' '
metadata:
code_binary_name:
type: list
key_display: Code name
options:
- pw
- ph
- dos
- projwfc
template_variables:
code_binary_name:
type: list
key_display: Code name
options:
- pw
- ph
- dos
- projwfc
9 changes: 5 additions & 4 deletions daint.cscs.ch/gpu/computer-configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ metadata:
Setup up the SSH connection.
</p>
ssh_auth: 2FA
username:
description: The username to use for the SSH connection
type: text
key_display: SSH username
template_variables:
username:
description: The username to use for the SSH connection
type: text
key_display: SSH username
59 changes: 30 additions & 29 deletions daint.cscs.ch/gpu/computer-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,34 @@ metadata:
The CSCS now require MFA to login, please check the <a href="https://user.cscs.ch/access/auth/mfa/" target="_blank">MFA CSCS documentation</a> for details on how to set up SSH connection. <br>
If you are using the AiiDAlab, please use the <a href="https://github.com/aiidalab/aiidalab-mfa-cscs" target="_blank">MFA CSCS plugin</a> to set SSH connection.
</p>
label:
default: daint-gpu
description: A short name to identify the computer
type: text
key_display: Computer Label
slurm_partition:
default: normal
description: The slurm partition to submit jobs to
type: list
options:
- normal
- debug
- large
- long
- low
- prepost
key_display: Slurm partition
slurm_account:
description: The slurm account to submit jobs to
type: text
key_display: Slurm account
multithreading:
default: nomultithread
description: The multithreading hint
type: list
options:
- nomultithread
- multithread
key_display: Multithreading hint
template_variables:
label:
default: daint-gpu
description: A short name to identify the computer
type: text
key_display: Computer Label
slurm_partition:
default: normal
description: The slurm partition to submit jobs to
type: list
options:
- normal
- debug
- large
- long
- low
- prepost
key_display: Slurm partition
slurm_account:
description: The slurm account to submit jobs to
type: text
key_display: Slurm account
multithreading:
default: nomultithread
description: The multithreading hint
type: list
options:
- nomultithread
- multithread
key_display: Multithreading hint

17 changes: 9 additions & 8 deletions daint.cscs.ch/mc/codes/QE-7.0-exe-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ prepend_text: |
module load QuantumESPRESSO
append_text: ''
metadata:
code_binary_name:
key_display: Code name
type: list
options:
- pw
- ph
- dos
- projwfc
templte_variables:
code_binary_name:
key_display: Code name
type: list
options:
- pw
- ph
- dos
- projwfc
17 changes: 9 additions & 8 deletions daint.cscs.ch/mc/codes/QE-7.2-exe-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ prepend_text: |
module load QuantumESPRESSO
append_text: ''
metadata:
code_binary_name:
key_display: Code name
type: list
options:
- pw
- ph
- dos
- projwfc
templte_variables:
code_binary_name:
key_display: Code name
type: list
options:
- pw
- ph
- dos
- projwfc
9 changes: 5 additions & 4 deletions daint.cscs.ch/mc/computer-configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ metadata:
Setup up the SSH connection.
</p>
ssh_auth: 2FA
username:
description: The username to use for the SSH connection
type: text
key_display: SSH username
template_variables:
username:
description: The username to use for the SSH connection
type: text
key_display: SSH username
59 changes: 30 additions & 29 deletions daint.cscs.ch/mc/computer-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,33 @@ metadata:
The CSCS now require MFA to login, please check the <a href="https://user.cscs.ch/access/auth/mfa/" target="_blank">MFA CSCS documentation</a> for details on how to set up SSH connection. <br>
If you are using the AiiDAlab, please use the <a href="https://github.com/aiidalab/aiidalab-mfa-cscs" target="_blank">MFA CSCS plugin</a> to set SSH connection.
</p>
label:
default: daint-mc
description: A short name to identify the computer
type: text
key_display: Computer Label
slurm_partition:
default: normal
description: The slurm partition to submit jobs to
type: list
options:
- normal
- debug
- large
- long
- low
- prepost
key_display: Slurm partition
slurm_account:
description: The slurm account to submit jobs to
type: text
key_display: Slurm account
multithreading:
default: nomultithread
description: The multithreading hint
type: list
options:
- nomultithread
- multithread
key_display: Multithreading hint
template_variables:
label:
default: daint-mc
description: A short name to identify the computer
type: text
key_display: Computer Label
slurm_partition:
default: normal
description: The slurm partition to submit jobs to
type: list
options:
- normal
- debug
- large
- long
- low
- prepost
key_display: Slurm partition
slurm_account:
description: The slurm account to submit jobs to
type: text
key_display: Slurm account
multithreading:
default: nomultithread
description: The multithreading hint
type: list
options:
- nomultithread
- multithread
key_display: Multithreading hint
49 changes: 36 additions & 13 deletions gh_page/resource.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,8 @@
"$ref": "#/definitions/resource"
}
},
"metadata": {
"template_variables": {
"type": "object",
"properties": {
"tooltip": {
"type": "string"
},
"ssh_auth": {
"type": "string",
"enum": ["password", "2FA"]
}
},
"additionalProperties": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -120,7 +111,15 @@
"type": "string"
},
"metadata": {
"$ref": "#/definitions/metadata"
"type": "object",
"properties": {
"tooltip": {
"type": "string"
},
"template_variables": {
"$ref": "#/definitions/template_variables"
}
}
}
},
"required": ["label", "hostname", "description", "transport", "scheduler", "work_dir", "shebang", "mpirun_command", "mpiprocs_per_machine", "prepend_text"],
Expand All @@ -140,7 +139,19 @@
"type": "string"
},
"metadata": {
"$ref": "#/definitions/metadata"
"type": "object",
"properties": {
"tooltip": {
"type": "string"
},
"ssh_auth": {
"type": "string",
"enum": ["password", "key", "2FA"]
},
"template_variables": {
"$ref": "#/definitions/template_variables"
}
}
}
},
"required": ["safe_interval", "username"],
Expand Down Expand Up @@ -169,7 +180,19 @@
"type": "string"
},
"metadata": {
"$ref": "#/definitions/metadata"
"type": "object",
"properties": {
"tooltip": {
"type": "string"
},
"ssh_auth": {
"type": "string",
"enum": ["password", "key", "2FA"]
},
"template_variables": {
"$ref": "#/definitions/template_variables"
}
}
}
},
"required": ["label", "description", "default_calc_job_plugin", "filepath_executable", "prepend_text", "append_text"],
Expand Down
17 changes: 9 additions & 8 deletions merlin.psi.ch/cpu/codes/QE-7.0-exe-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ prepend_text: |
module load qe/7.0
append_text: ''
metadata:
code_binary_name:
key_display: Code name
type: list
options:
- pw
- ph
- dos
- projwfc
template_variables:
code_binary_name:
key_display: Code name
type: list
options:
- pw
- ph
- dos
- projwfc
9 changes: 5 additions & 4 deletions merlin.psi.ch/cpu/computer-configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ metadata:
Setup up the SSH connection.
</p>
ssh_auth: password
username:
description: The username to use for the SSH connection
type: text
key_display: SSH username
template_variables:
username:
description: The username to use for the SSH connection
type: text
key_display: SSH username
45 changes: 23 additions & 22 deletions merlin.psi.ch/cpu/computer-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,26 @@ metadata:
<p>
<a href="https://lsm-hpce.gitpages.psi.ch/merlin6/" target="_blank">Merlin</a> HPC at PSI.
</p>
label:
default: merlin-cpu
description: A short name to identify the computer
type: text
key_display: Computer Label
slurm_partition:
default: general
description: The slurm partition to submit jobs to
type: list
options:
- general
- daily
- hourly
key_display: Slurm partition
multithreading:
default: nomultithread
description: The multithreading hint
type: list
options:
- nomultithread
- multithread
key_display: Multithreading hint
template_variables:
label:
default: merlin-cpu
description: A short name to identify the computer
type: text
key_display: Computer Label
slurm_partition:
default: general
description: The slurm partition to submit jobs to
type: list
options:
- general
- daily
- hourly
key_display: Slurm partition
multithreading:
default: nomultithread
description: The multithreading hint
type: list
options:
- nomultithread
- multithread
key_display: Multithreading hint
17 changes: 9 additions & 8 deletions merlin.psi.ch/gpu/codes/QE-7.0-exe-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ prepend_text: |
module load qe/7.0
append_text: ''
metadata:
code_binary_name:
key_display: Code name
type: list
options:
- pw
- ph
- dos
- projwfc
template_variables:
code_binary_name:
key_display: Code name
type: list
options:
- pw
- ph
- dos
- projwfc
Loading

0 comments on commit 462859f

Please sign in to comment.