Closed mtjrider closed 10 months ago
@jookare can you please try this?
$ apptainer shell --nv cuquantum-appliance_23.03.sif
...> which python
And then separately try this:
apptainer exec --nv cuquantum-appliance_23.03.sif which python
Please paste the output here.
Thanks for creating a new issue for me. Here are the things you requested
[jookare@r17g05 cuQuantum]$ apptainer shell --nv cuquantum-appliance_23.03.sif
Apptainer> which python
Illegal option --
Usage: /usr/bin/which [-a] args
[jookare@r17g05 cuQuantum]$ apptainer exec --nv cuquantum-appliance_23.03.sif which python
/home/cuquantum/conda/envs/cuquantum-23.03/bin/python
Now, instead of shell
can you try run
?
The exec
command picks up the correct Python.
Still the same
[jookare@r17g05 cuQuantum]$ apptainer run --nv cuquantum-appliance_23.03.sif
...tons of text...
Apptainer> which python
Illegal option --
Usage: /usr/bin/which [-a] args
@Jookare sorry it took me awhile to get back to this issue.
This call signature appears to be the only one that works:
apptainer exec --nv cuquantum-appliance_23.03.sif ...
The others aren't loading the appropriate runtime. Can you use this call signature for your application?
@Jookare let us know if this is still an issue.
@Jookare let us know if this is still an issue.
Hi sorry for the late reply! I was interning previously and as it ended so I do not have access to the HPC systems anymore and unfortunately can't test anymore
@Jookare I've closed this issue. If the issue resurfaces, or you have other questions, please feel free to reopen it or a create another issue.
I see. I am using the cuquantum-appliance-23.03 and this is my workflow to recreate this issue:
Then create a file
ghz.py
as in the documentation, run the container and execute the fileOriginally posted by @Jookare in https://github.com/NVIDIA/cuQuantum/discussions/50#discussioncomment-6603064