-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Description
A little while ago, I created a tutorial based on this and the QRMI repo. During this, I installed both repos to showcase them on a local slurm cluster docker. I encountered a few errors during installation and wrote them below. Some of these may just be me misunderstanding, as I am new to slurm in this capacity.
Errors in INSTALL.md
- During step 5 of Creating Docker-based Slurm Cluster, I had to manually move the
plugstack.conf.examplefile from spank-plugins/plugins/spank_qrmi to slurm-docker-cluster folder as theCOPY plugstack.conf.example /etc/slurm/plugstack.conf.exampleline was failing with error"/plugstack.conf.example": not foundduring the docker build. - Step 2 of Building and installing QRMI and SPANK Plugins needed the line
source /shared/pyenv/bin/activatebeforepip install --upgrade pip. - The file path in Step 2 of Building and installing QRMI and SPANK Plugins line
pip install /shared/spank-plugins/qrmi/target/release/maturin/wheels/qrmi-0.7.0-cp312-abi3-manylinux_2_34_aarch64.whlwas wrong and causing a file not found error. The correct filepath is/shared/qrmi/target/wheels/qrmi-0.7.1-cp312-abi3-manylinux_2_34_aarch64.whl. - Step 5 in Building and installing QRMI and SPANK Plugins - setting up this file is unclear to me, do I need a different resource for every single qpu by name even if the other details are all the same? Why? Also in Step 6 the file pathing is very unclear as there is an env/slurm in the demo folder, whereas, after a lot of testing, this actually means the env file at the '/' level at the clusters working directory.
Tutorial typo
Additionally, in the tutorial scripts, I found there was a typo in qrmi/bin/task_runner/examples/qiskit python gen_estimator_input.py ibm_marrakesh https://quantum.cloud.ibm.com/api <your apikey> <your instance> the function is gen_estimator_inputs.py there's an 's' missing.
Slurm.conf
Finally, after getting through the installation bumps, I still could not get SLURM to read the env variables I was adding in the plugstack.conf. After trying many, many things, I managed to get it working by making some changes in slurm.conf. ```
PlugStackConfig=/etc/slurm/plugstack.conf
# GRES configuration
GresTypes=qpu,name
# COMPUTE NODES
NodeName=c[1-2] RealMemory=1000 Gres=qpu,name:ibm_fez,qpu,name:ibm_kingston
I appreciate that for some this might be obvious but I think it would be best to add these to the INSTALL.md.