OpenMP example for PULP not working - Printable Version +- PULP Community (https://pulp-platform.org/community) +-- Forum: PULP's Community forum (https://pulp-platform.org/community/forumdisplay.php?fid=1) +--- Forum: PULP General questions (https://pulp-platform.org/community/forumdisplay.php?fid=2) +--- Thread: OpenMP example for PULP not working (/showthread.php?tid=71) |
OpenMP example for PULP not working - Athena - 03-25-2019 Hello, I tried to run the openMP example given in pulp-rt-examples repository. But the simulation gets stuck at the rt_cluster_call(..); function in the test.c file. I have tried running Hello and Coremark examples for the same platform and they work perfectly. In order to find out that it gets at stuck at the rt_cluster_call, I put print statements before and after the function call. The modified "test.c" code is attached below. And the output seen is also attached . RE: OpenMP example for PULP not working - fconti - 03-25-2019 Hi Athena, can you check if a non-OpenMP test works fine for you? E.g. https://github.com/pulp-platform/pulp-rt-examples/blob/master/cluster/fork/cluster.c RE: OpenMP example for PULP not working - Athena - 03-25-2019 (03-25-2019, 12:09 PM)fconti Wrote: Hi Athena, can you check if a non-OpenMP test works fine for you? E.g. https://github.com/pulp-platform/pulp-rt-examples/blob/master/cluster/fork/cluster.c I have checked that and a non openMP example also does not work. RE: OpenMP example for PULP not working - Athena - 03-28-2019 Another update for the non OpenMP example. They also get stuck the rt_cluster_call function. RE: OpenMP example for PULP not working - fconti - 03-28-2019 What you see is quite strange. I just tried with a fresh download of: - PULP RTL, latest master: https://github.com/pulp-platform/pulp - PULP SDK, latest tag: https://github.com/pulp-platform/pulp-sdk/tree/2019.03.02 - PULP RISC-V GCC, version 1.0.10: https://github.com/pulp-platform/pulp-riscv-gcc (I downloaded this one prebuilt) I tried to run pulp-rt-examples/cluster/fork, and it works fine: Code: # [STDOUT-CL31_PE0] Entering main controller Can you share some details on your setup, in particular version (or commit hash from git log) of PULP RTL you are running on? Can you try the same test I mentioned? RE: OpenMP example for PULP not working - Athena - 03-29-2019 Hi, I downloaded the new pulp rtl and sdk that you have provided. The toolchain I kept the same which I built from here: https://github.com/pulp-platform/pulp-riscv-gnu-toolchain On porting to the new SDK and running any example. I get makefile error which says : "/install/rules/pulp_rt.mk: No such file or directory" The version of the PULP SDK available here : https://github.com/pulp-platform/pulp-sdk does not throw any such error. I have been running all examples using this version of the SDK. Does the makefile in the examples need to modified for proper working to be seen in the lastest version of the PULP SDK. Regards, Athena RE: OpenMP example for PULP not working - Athena - 03-29-2019 On changing to the SDK that you have mentioned. I am able to run the example in pulp-rt-examples/cluster/fork. The output that I receive on running this example is attached with this post. The complete example runs and then the testbench shows an error. In the tb_pulp.sv file the testbench is breaking at the line 602 where : "$stop" is written. Is this expected behavior? However, the OpenMP example still does not work even after making these changes. The output after running the OpenMP example is attached with this post. How can this error be resolved? Also, I have observed that there is a testset.cfg file present in the cluster/fork example. Is this file necessary everytime cluster operations are run? Regards, Athena RE: OpenMP example for PULP not working - fconti - 04-09-2019 Hi Athena, the $stop breaking is absolutely correct behavior. Rgd the error you see, it is software related, I am unsure about the status of the OpenMP runtime in some SDK versions... |