alexeedm / pytorch-fortran

Pytorch bindings for Fortran
MIT License
85 stars 12 forks source link

Issue generating singularity container #7

Closed fvangess closed 1 year ago

fvangess commented 1 year ago

Hi,

I am attempting to utilize your example code in an HPC environment. As such, I would prefer to generate a singularity container during the build phase as I don't believe I have the permissions (or access) for Docker. In container.py the parser arguments appear to allow selection of docker or singularity containers (line 126). However, using the flag --format singularity yields an error. If you have a solution to this issue I'd much appreciate it. Thank you!

alexeedm commented 1 year ago

Hi @fvangess, Are you trying to build Intel container? Looking at the container.py recipe I indeed see a part that's docker-specific, sorry! The reason is that there's no Intel-provided container for both OneAPI and Pytorch, and I have to adapt their Dockerfile to install OneAPI inside the Pytorch base container. There might be a better way to do it, but I don't know it...

So, if you're trying to build the Intel container I'd recommend you do it with docker, and then convert the image to singularity format, or just use it directly from singularity. Here are some tips about how to do it: https://www.nas.nasa.gov/hecc/support/kb/converting-docker-images-to-singularity-for-use-on-pleiades_643.html https://github.com/singularityhub/docker2singularity https://docs.sylabs.io/guides/2.6/user-guide/singularity_and_docker.html

alexeedm commented 1 year ago

Closing for no activity, please reopen if needed!

fvangess commented 1 year ago

@alexeedm Thank you for your feedback!