Code Monkey home page Code Monkey logo

Comments (9)

turtle-mei avatar turtle-mei commented on July 1, 2024 1

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.

jerabaul29 avatar jerabaul29 commented on July 1, 2024

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:

#7

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.

turtle-mei avatar turtle-mei commented on July 1, 2024

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.

turtle-mei avatar turtle-mei commented on July 1, 2024

ubantu 18.04.4

from cylinder2dflowcontroldrl.

jerabaul29 avatar jerabaul29 commented on July 1, 2024

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.

turtle-mei avatar turtle-mei commented on July 1, 2024

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.

jerabaul29 avatar jerabaul29 commented on July 1, 2024

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.

jerabaul29 avatar jerabaul29 commented on July 1, 2024

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.

jerabaul29 avatar jerabaul29 commented on July 1, 2024

But this is solved now, so closing, if you have any more problems feel free to re open :) .

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.