Skip to content

Installation Guide Errors/typos #150

@oscar-wallis

Description

@oscar-wallis

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

  1. During step 5 of Creating Docker-based Slurm Cluster, I had to manually move the plugstack.conf.example file from spank-plugins/plugins/spank_qrmi to slurm-docker-cluster folder as the COPY plugstack.conf.example /etc/slurm/plugstack.conf.example line was failing with error "/plugstack.conf.example": not found during the docker build.
  2. Step 2 of Building and installing QRMI and SPANK Plugins needed the line source /shared/pyenv/bin/activate before pip install --upgrade pip.
  3. 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.whl was 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.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions