MICA icon indicating copy to clipboard operation
MICA copied to clipboard

Runtime warning message for threaded programs

Open twang15 opened this issue 6 years ago • 3 comments

There are warning messages while running with threaded lulesh2.0. Since MICA currently does not support multi-threaded program, the results may be invalid.

Messages:

WARNING: Thread creation detected, results can be corrupted! C: Tool (or Pin) caused signal 11 at PC 0x7f3e9f338498 C: Location may be in in-lined analysis code, try re-running with '-inline 0' to debug itSegmentation fault

Command to reproduce the results: OMP_NUM_THREADS=16 && ./pin -t mica.so -- ./lulesh2.0 -i 10 -s 200

twang15 avatar Jul 17 '18 01:07 twang15

@amirjamez is there any plan of mica's support for parallel programs? I would like to help to improve this tool, if it's really interesting.

twang15 avatar Jul 17 '18 01:07 twang15

@twang15 thanks for mentioning this and your offer. Feel free to explore other ways as a workaround or add your own code. In the past, we had some tries to add this features, but none of them went far enough to be added to the main branch. For now, I would suggest you run them sequentially and calculate the overall workload in a single thread. Aggregating the results of a parallel program is troublesome and might affect the quality of the benchmarking, thus the current version of Mica does not support that.

amirjamez avatar Jul 17 '18 12:07 amirjamez

@amirjamez is there any plan of mica's support for parallel programs? I would like to help to improve this tool, if it's really interesting.

hi dear twang15 @twang15
Could me help me to see #18 and I didn't find cmake option for making multi-thread disabled.

thank you
Best Regards
William

WilliamWangPeng avatar Mar 19 '21 15:03 WilliamWangPeng