-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run SimGrid simulations if my code just provides Python wrappers for starpu_task_insert
functions and has no main
function?
#42
Comments
Hello, |
To be honest, I just did not try it. I read I have to compile executable to have |
I have pushed a fix for the simple newly-added |
As of now, our Python interface does not use |
I have tried it on my MacbookPro and failed. I have installed simgrid 3.35, compiled StarPU (latest master branch) and as soon as I do
It is advised to enable option |
Here is the full trace:
Notably, line 1590 of
I believe running SimGrid through Python on MacOS is impossible... |
No, StarPU already does it for you. It just warns that it's not the most efficient way of using Simgrid.
I don't know if simgrid on macos was tested, for a start... Let alone with python |
You can run |
I did not yet try simple
Everything is optimized out, but at least it works up to this point. |
The error above seems to be caused by manually set
|
Sorry, forgot to mention, that it works within docker on Linux distribution. I stopped trying to make it work on MacOs. However, either simulation hits a deadlock, or it is much slower, than actual computations. |
This is very odd and needs to be checked. What is the situation when you set this? In principle it should either
Yes, you need to calibrate your performance models, for simgrid to know how much time it should account for the tasks.
Deadlocks are not supposed to happen, we do pass the starpu testsuite with simgrid, except for the python part which has not been worked on so far.
For python+simgrid, that's expected, since for now we haven't implemented not calling the actual computation function. You can try to do this by hand in your code. |
Simulation just never finishes. The following output shows every actor is waiting for some synchronization activity when I press CTRL-C. If the code is executed in normal mode (non-simgrid) it just works.
|
Not all actors are waiting for synchronization, the CUDA@CUDA3 actor is sleeping, i.e. most probably running a task, which others are depending on. |
…arallel worker Fixes starpu-runtime#42
Hi! I implement a Python program, that uses StarPU under the hood. The Python program simply calls Python/C++ wrappers, which pass execution to C++ routines which then call StarPU task-related functions. Reading documentation section on the SimGrid, I found that
main()
function shall be substituted bystarpu_simgrid_wrap.h
. However, it is not possible with the Python interpreter, as it would require recompiling entire Python from sources. Is there a way to perform SimGrid simulation in such a case? I did not found an example at StarPU documentation.Thank you in advance!
The text was updated successfully, but these errors were encountered: