Intermediate Code as a result of OpenMP pragmas

戏子无情 提交于 2019-12-09 19:22:25

问题


Is there a way to get my hands on the intermediate source code produced by the OpenMP pragmas? I would like to see how each kind of pragmas is translated.

Cheers.


回答1:


OpenMp pragmas is part of a C / C++ compiler's implementation. Therefore before using it, you need to ensure that your compiler will support the pragmas ! If they are not supported, then they are ignored, so you may get no errors at compilation, but multi-thread wont work. In any case, as mentioned above, since they are part of the compiler's implementation, the best intermediate result that you can get is a lower level code. OpenMp is language extension + libraries, macros etc opposed to Pthreads that arms you purely with libraries !



来源:https://stackoverflow.com/questions/9839218/intermediate-code-as-a-result-of-openmp-pragmas

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!