Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support singularity as an alternative do docker #286

Open
dprananto opened this issue Jun 27, 2024 · 5 comments
Open

Support singularity as an alternative do docker #286

dprananto opened this issue Jun 27, 2024 · 5 comments
Labels
backlog Good idea, has been added to our todo list. (No time to do it, though.) feature request help wanted No resources available - help invited

Comments

@dprananto
Copy link

Hi,
I am trying to run Ubermag on an HPC via a Jupyter-Notebook container pulled from the docker-hub using Singularity.
I followed the Conda installation procedure written on the Ubermag website and tested the installation on the Terminal without a problem. However, when I tried running Ubermag on the Jupyter Notebook, ubermag packages could not run at all. I thought that the problem was on the environment, so I installed ipykernel and was able to run the ubermag package but failed when I tried to drive the system with an error showing that it could not find OOMMF.
I would appreciate it if you can help with this issue.
Ubermag_Error

@lang-m
Copy link
Member

lang-m commented Jul 1, 2024

Hi @dprananto , could please try the following code snippet (right after the import):

import oommfc as oc
oc.runner.docker_exe = 'singularity'

(I don't have Singularity so can't test this right now; please report any outcome, success or failure)

@dprananto
Copy link
Author

Hi @lang-m, it runs successfully without error at this stage
スクリーンショット 2024-07-01 180708
But still have the same error when I drive the system
スクリーンショット 2024-07-01 181026

@lang-m
Copy link
Member

lang-m commented Jul 1, 2024

Please follow the steps explained in https://ubermag.github.io/documentation/notebooks/ubermagutil/logging.html and run oommfc.runner.autoselect_runner() with debug logging enabled and report the output. That should hopefully tell us why it cannot use Singularity.

@dprananto
Copy link
Author

Here is the output after I activated the debug login
スクリーンショット 2024-07-03 151854

@lang-m
Copy link
Member

lang-m commented Jul 3, 2024

Looking at this in more detail it turns out that the command line interface of docker and singularity are too different, so singularity is currently not supported.

So you will need to install OOMMF using a different method. You could in principle either install it via conda (there is a package on conda-forge, https://anaconda.org/conda-forge/oommf) or compile it yourself. Instructions to compile it yourself and then use it with Ubermag can be found here: https://ubermag.github.io/installation.html#advanced-installation and here: https://github.com/fangohr/oommf?tab=readme-ov-file#clone-and-build-oommf-from-source

@lang-m lang-m changed the title Ubermag on HPC; OSError: Cannot find OOMMF Support singularity as an alternative do docker Jul 3, 2024
@lang-m lang-m added help wanted No resources available - help invited backlog Good idea, has been added to our todo list. (No time to do it, though.) labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Good idea, has been added to our todo list. (No time to do it, though.) feature request help wanted No resources available - help invited
Projects
None yet
Development

No branches or pull requests

2 participants