Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This is repository with Slurm Spank plugins for Quantum resources and jobs suppo
1. [How to Cite This Work](#how-to-cite-this-work)
1. [Contribution Guidelines](#contribution-guidelines)
1. [References and Acknowledgements](#references-and-acknowledgements)
1. [FAQ](./docs/FAQ.md)


----------------------------------------------------------------------------------------------------
Expand Down
15 changes: 15 additions & 0 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# FAQ

## How to override environment variable values defined in qrmi_config.json

When a user submits a Slurm job, they can override the environment variable values defined in `qrmi_config.json`.

Set the value of the environment variable by prefixing its name with the resource ID, as shown below. These environment variables will be propagated by Slurm to the SPANK plugin runtime (e.g., `slurmstepd`) and to the job runtime when executing this Slurm job.

Example: Overriding `QRMI_IBM_QRS_IAM_APIKEY` and `QRMI_IBM_QRS_SERVICE_CRN` to allow a user to access ibm_brussels.

```bash
$ export ibm_brussels_QRMI_IBM_QRS_IAM_APIKEY=<api-key>
$ export ibm_brussels_QRMI_IBM_QRS_SERVICE_CRN=<crn>
$ sbatch <your job script>
```