Software Archive
Read-only legacy content
17061 Discussions

Running GCC on MIC

drMikeT
New Contributor I
648 Views

How can one run GCC on MIC? Or, how can one build on the host MIC code which requires both icc and gcc ?

thanks

Michael

0 Kudos
2 Replies
Frances_R_Intel
Employee
648 Views

There is a crosscompiler, /usr/linux-k1om-4.7/bin/x86_64-k1om-linux-gcc, which will let you build on the host for execution on the coprocessor. And you can use icc to build code on the host for execution on the coprocessor by adding -mmic to the command line. I know that some people have tried compiling gcc to run natively on the coprocessor but I don't know what success they have had. The Intel compiler runs only on the host.

0 Kudos
drMikeT
New Contributor I
648 Views

Frances, that's great ... I have some code which requires GCC on the MIC. I will try it out.

thanks,

Michael

0 Kudos
Reply