Code Monkey home page Code Monkey logo

Comments (10)

jerabaul29 avatar jerabaul29 commented on July 19, 2024
  • I am not really sure if you actually are running from inside the singularity container; can you show the full terminal output you get also with the previous commands you run, ie start showing your terminal at issuing the command to start the singularity container? (can you show the previous commands you wrote and the corresponding output?)

  • once you are in singularity, you should just run your python script "as usual", there is no more "exec" command; the exec command was to start the singularity container. So you should just cd to the right folder, and there issue the python3 single_runner.py command.

There is a video of how to do this in docker with the parallelized code from https://github.com/jerabaul29/Cylinder2DFlowControlDRLParallel in the repository of one paper: see the video on https://github.com/thw1021/Cylinder2DFlowControlGeneral , i.e. https://asciinema.org/a/326357 . That illustrates the full process (though this uses the more modern parallel code using docker rather than the older code using singularity).

Please look at the full video there, make sure you understand all of it, and then either apply the same methodology as presented in the video and explained in the readme here to use the singularity code, or if you prefer, use the more modern docker code exactly as shown in the video.

from cylinder2dflowcontroldrl.

zhaoyr31 avatar zhaoyr31 commented on July 19, 2024

Thanks!
My input was the same as you have mentioned: singularity shell /home/yr/fenics-and-more.img -c "export DISPLAY=:0.0 && export PATH="/home/yr/gmsh-git-Linux64/bin:$PATH" && /bin/bash", after I wrote it in my terminal, it showed "Singularity>" on the screen, so I guess I had entered the singularity container?
Well, it seems there are still lots of things which I should know. I will learn videos you offered as soon as possible. Thanks again for your patient reply!

from cylinder2dflowcontroldrl.

jerabaul29 avatar jerabaul29 commented on July 19, 2024

Ok, so then it means that you are well inside the container :) .

If I remember well, the code is already in the container. You will have to go to the right folder. Can you show me the content of the current folder as provided by ls?

from cylinder2dflowcontroldrl.

zhaoyr31 avatar zhaoyr31 commented on July 19, 2024

The folder contained things below.

Cylinder2DFlowControlDRL-master fenics-and-more.img_part.ae ??????
Cylinder2DFlowControlDRL-master.zip fenics-and-more.img_part.af ??????
build gmsh-3.0.6-Linux64 ??????
fenics-and-more.img go ??????
fenics-and-more.img_part.aa singularity-ce-3.9.5 ??????
fenics-and-more.img_part.ab snap ??????
fenics-and-more.img_part.ac ??????
fenics-and-more.img_part.ad ?????????

Does it mean everything go well?

from cylinder2dflowcontroldrl.

jerabaul29 avatar jerabaul29 commented on July 19, 2024

Can you show the full command you issue with the prompt? This is I think not the singularity folder but the host folder.

from cylinder2dflowcontroldrl.

jerabaul29 avatar jerabaul29 commented on July 19, 2024

See in the Readme the sections "Launching one episode without training" and following.

from cylinder2dflowcontroldrl.

jerabaul29 avatar jerabaul29 commented on July 19, 2024

I am 100% sure this works, it has been used by many people over the years. It does assume you are familiar with Unix and command line and containerization. If you are not familiar with these, you should read some courses / tutorials online :) .

from cylinder2dflowcontroldrl.

zhaoyr31 avatar zhaoyr31 commented on July 19, 2024

I realized the same later (it was the host folder). It's true that I'm a new learner in the field, so I should learn more at first. Thanks for your time : ).

from cylinder2dflowcontroldrl.

jerabaul29 avatar jerabaul29 commented on July 19, 2024

😊👍

from cylinder2dflowcontroldrl.

jerabaul29 avatar jerabaul29 commented on July 19, 2024

I understand this is working now, closing, if you have more issues feel free to open new issues.

from cylinder2dflowcontroldrl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.