Comments (9)
aaa,so happy ! It run succesfully.I commented the code that about plotting.and delete the export DISPLAY=:0.0.Then evering is good.Thank you for your suggestions.
from cylinder2dflowcontroldrl.
Ok, so:
- are you well trying to run the code through singularity (it looks like it, right?)
- it looks like the container you run is trying to display the output by connecting to a display
:0.0
. This looks like the root of the problen.
I suppose this is enabled by default on Ubuntu but not on Debian, or differently on different Ubuntu versions, or something like that.
This is then related to this issue:
According to the comments there, it was probably solved by following the advise:
"ry to export on a different display: see https://unix.stackexchange.com/questions/85782/error-no-protocol-specified-when-running-from-remote-machine-via-ssh/295863#295863 the recommendation export DISPLAY=:10".
Can you 1) have a look at this solution, 2) let me know if it fixes your problem?
If this does not fix it, can you provide the exact details of the system you use for running?
If it still does not work, could you consider using the code there instead, which is about 1 year newer and may run without problems (it is basically an expansion / improvement of this code): https://github.com/jerabaul29/Cylinder2DFlowControlDRLParallel
from cylinder2dflowcontroldrl.
yes,I try to change the export DISPLAY=:10,but failed.
My system:processor:AMD Ryzen 7 3700x 8-core processor 16
graphics:quadro P620/PCle/SSE2.
from cylinder2dflowcontroldrl.
ubantu 18.04.4
from cylinder2dflowcontroldrl.
Mmh, ok. This is annoying, as this is the whole point of using containers, i.e., allow reproducibility. But I guess that as soon as there is some interaction with the host OS for displaying, then things start to potentially break... :(
Can you try the code from the other repo? https://github.com/jerabaul29/Cylinder2DFlowControlDRLParallel
The container is available either directly on the repo as fragments, or it should still be available at the 'old' location (will disappear in a few days there): https://folk.uio.no/jeanra/Informatics/cylinder2dflowcontrol_Parallel_v1.tar
Another option that should solve the problem once and for all is to edit the code to remove the display and plotting commands, that are anyways not essential. Have you been able to run before on other systems?
from cylinder2dflowcontroldrl.
yes,I use debian to run it succesfully before,and did some works.at last ,I change a high perform computer,and set up the ubantu. maybe I think i will try to use the new code !
from cylinder2dflowcontroldrl.
Ok. Are you running through ssh, or directly on the machine? If you are running through ssh, you may need to forward the display or something like that: https://unix.stackexchange.com/questions/12755/how-to-forward-x-over-ssh-to-run-graphics-applications-remotely .
But I think that the best would indeed be to use the more recent code :) Let me know if you have issues with it on the corresponding repository. Also, if you have a good CPU with several cores, the more recent code will let you run several CFD simulations in parallel, which will allow to do the training much faster (more or less perfect speedup with the number of simulations, see the discussion here: https://aip.scitation.org/doi/full/10.1063/1.5116415 .
from cylinder2dflowcontroldrl.
Ok, great, good it helped and works now :) Of course the plotting is nice to start with, but it is not really needed anyways for heavy trainings, so should be fine without it (as long as only the plotting is commented out and there are no sides effects to the commenting you added) :) . But still, I would recommend you to have a look at the newer code, it is quite nicer and on your CPU with 8 cores, you should get a perfect speedup by a factor 8x by running 8 simulations, like:
bash script_launch_parallel.sh training_1 3000 8
or something like that, if things are unclear just let me know on this repo :) .
from cylinder2dflowcontroldrl.
But this is solved now, so closing, if you have any more problems feel free to re open :) .
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
- 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
- issues about running single_runner.py HOT 10
- 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.