Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7954 Discussions

Could anyone please tell me how to dump multithreaded IL code generated from OpenMP C code with icc?

scg03
Beginner
294 Views
Hi,

I'm compiling some OpenMP C code and I'm wondering if there is any way to let icc dump its generated multithreaded representation of OpenMP code like IL0.

Thanks,
Chenguang
0 Kudos
1 Reply
TimP
Honored Contributor III
294 Views
I'm not sure what you're asking here. Nothing stops you from turning on the il0 dump when -openmp is set, if you think that will be helpful. OpenMP debug dumps are available only with a debug compiler of severely restricted availability. The experts, of whom I'm not one, can learn a great deal from the dumps which are available in the standard compiler.
As you can see in the -S listing, OpenMP parallel code generally consists of calls to the OpenMP run-time library and a function version of the parallel region which is called by each thread. This will show, for example, whether vectorized code, should that be applicable, is present in both the serial and threaded versions.
0 Kudos
Reply