Posts

Showing posts from March 1, 2019

Optimizing an n-body simulation using Numpy and Glumpy

Image
0 I am making the process of moving from MatLab to Python, and am attempting a real time N-body simulation as a way of getting to grips with the language. I have completed a script that uses glumpy for the visualisation, and vectorised numpy code for the numerical integration, but it slows waaaaaay down for more than about 150 points. Essentially, I am looking for tips on how to optimize the code so that it can run in real time with at least an order of magnitude more points. Particularly, is there any way of implementing the integration within the shader code using the GPU?? I am aware of the limitations with the Euler method that I have used (and the scaling of the acceleration), and am looking for input on optimization of the software implementation, as opposed to the numerical method itself. import numpy a...

How to Compile A Repo In Ubuntu

Image
1 It's a GitHub repo. I downloaded its source code and modified it. I know how to static compile it with cmake. but when I copy executable file to my another ubuntu machine and run it gives an error. I know it is because of missing libraries or files. So I need a way to pack all the lib files inside one executable file so that I can use it easily next time without compiling in all my Ubuntu machines Repo link: https://github.com/xmrig/xmrig/archive/v2.9.3.tar.gz Please Help me and sorry for my bad English 14.04 18.04 gnome-terminal 18.10 share | improve this question asked Jan 18 at 12:27 Eli Shain Eli Shai...