Parallel processing & ASM
Patrice
Posts: 5
Hello,
This is probably a trivial question for someone who knows.
I am just stuck trying to make a simple external object·in ASM running in parallel with a simple update of the entry.
To summarize, I create the simplified example in the attached zip.
Thanks if someone can take the time and have a look
Patrice
This is probably a trivial question for someone who knows.
I am just stuck trying to make a simple external object·in ASM running in parallel with a simple update of the entry.
To summarize, I create the simplified example in the attached zip.
Thanks if someone can take the time and have a look
Patrice
Comments
For such small programs, maybe you can post them with the code tags. Unzipping is no problem, Unicode from windoof is.
edit: fixed
Graham
Ale, Adding waitcnt in the asm loop does not seem to change the problem, unless I do it wrong.
Graham, when the spin repeat loop is suppressed, it is not better.
I am sorry, but I think that I would need a simple example.
In fact, I tried to find an example of the same configuration as what I tried: An external object with cognew runninig asm, updating continuously a variable used by a main file.
In the examples I found, cognew is often launch from the main, and when cognew is launch from the external object, there is no asm but in secondary methods.
Maybe, I will have to keep it in the spin form solution.
In the spin code you send
To a new cog using cognew. In the assembly version you send your asm code to a new cog but run:
In the main cog because it was not sent to a new cog with cognew.
As Tim rightly says this repeat loop wants to be written in asm and incorporated with the rest of the asm you have written, or sent to yet another cog which would allow the program to flow back to the main loop.
Graham
Trying to apply your advices, I have not found the solution with the same objects and methods configuration, not in ASM anyway.
Some other tasks calling me, I have to leave this for a while and come back to it later...
Patrice