Comments (10)
-
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 thepython3 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.
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.
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.
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.
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.
See in the Readme the sections "Launching one episode without training" and following.
from cylinder2dflowcontroldrl.
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.
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.
😊👍
from cylinder2dflowcontroldrl.
I understand this is working now, closing, if you have more issues feel free to open new issues.
from cylinder2dflowcontroldrl.
Related Issues (20)
- How to customize the .xdmf file for initial conditions? HOT 7
- How the reward function working HOT 3
- No file in mesh directory HOT 5
- How to define Neumann boundary condition HOT 1
- symmetric case HOT 4
- Problem with creating a new mesh HOT 3
- about changing the geometry HOT 5
- could not connect to display ":0.0" HOT 9
- Can not get the "fenics-and-more.img" file HOT 5
- Could not open image; image format not recognized HOT 15
- Change the model and run singlerunner from Ann_ controlled_ flow_ Singlerun folder, did not get the same result HOT 3
- New airfoil model encountered mesh convertion probelm HOT 2
- About Q<0.06 HOT 1
- Lift fluctuations resulting from DRL training using the OpenFOAM platform HOT 2
- Negative drag values while training HOT 4
- higher Reynolds problem HOT 1
- Download the Singularity container HOT 2
- problems about singularity container parts HOT 3
- Using Dolphin Expression HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cylinder2dflowcontroldrl.