[mpich-discuss] Compiling mpich2 with icc

Mert Türkal mert.turkal at gmail.com
Wed Sep 24 15:29:40 CDT 2008


On Wed, Sep 24, 2008 at 9:22 PM, Anthony Chan <chan at mcs.anl.gov> wrote:

> I tried 10.1 "icc -fast" on a simple program on a AMD box.
>
> > icc -fast ~/ts_C/ts_main_rc.c ; echo $?
> ipo: remark #11001: performing single-file optimizations
> ipo: remark #11005: generating object file /tmp/ipo_iccSrFoSL.o
> 0
>
> > a.out
>
> Fatal Error: This program was not built to run on the processor in your
> system.
> The allowed processors are: Intel(R) Core(TM) Duo processors and compatible
> Intel processors with supplemental Streaming SIMD Extensions 3 (SSSE3)
> instruction support.
>
> I tried -xT and -xP as well, both give the same error message.  It appear
> -fast can't be used on at least AMD box.
>
>
Hello,

There was a discussion about Intel's compiler creating slower code + locking
down the application to specific CPU's(Intel's) on slashdot, if any of you
has time, I recommend you read it.

Someone also pointed out a way to make icc compiled code to run on AMD with
target CPU option turned on here :

http://yro.slashdot.org/comments.pl?sid=155593&cid=13044057


And this link points to the original thread :

http://yro.slashdot.org/article.pl?sid=05/07/12/1320202&tid=142



>
>
> ----- "Rajeev Thakur" <thakur at mcs.anl.gov> wrote:
>
> > I am able to reproduce the problem if I use the -fast option to icc.
> > But
> > without -fast it works. Wonder if it is a problem with icc. I used
> > version
> > 10.1.
> >
> > Rajeev
> >
> > > -----Original Message-----
> > > From: owner-mpich-discuss at mcs.anl.gov
> > > [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Robert
> > Kubrick
> > > Sent: Wednesday, September 24, 2008 11:54 AM
> > > To: mpich-discuss at mcs.anl.gov
> > > Subject: Re: [mpich-discuss] Compiling mpich2 with icc
> > >
> > > Compiling with ipcp returns this error:
> > >
> > > make[4]: Entering directory `/home/pts/archives/mpich2-1.1.0a1/src/
> > > mpid/common/locks'
> > >    CC              mpidu_process_locks.c
> > > ../../../include/pmi.h(740): error: parameter type involves
> > > pointer to array of unknown bound
> > >    int PMI_Args_to_keyval(int *argcp, char *((*argvp)[]),
> > > PMI_keyval_t **keyvalp, int *size);
> > >                                       ^
> > >
> > > compilation aborted for mpidu_process_locks.c (code 2)
> > > make[4]: *** [mpidu_process_locks.o] Error 2
> > > make[4]: Leaving directory `/home/pts/archives/mpich2-1.1.0a1/src/
> > > mpid/common/locks'
> > > make[3]: *** [all-redirect] Error 2
> > > make[3]: Leaving directory `/home/pts/archives/mpich2-1.1.0a1/src/
> > > mpid/common'
> > > make[2]: *** [all-redirect] Error 2
> > > make[2]: Leaving directory
> > > `/home/pts/archives/mpich2-1.1.0a1/src/mpid'
> > > make[1]: *** [all-redirect] Error 2
> > > make[1]: Leaving directory `/home/pts/archives/mpich2-1.1.0a1/src'
> > > make: *** [all-redirect] Error 2
> > >
> > >
> > > I tried nm -a libmpich.a and it didn't return the required
> > > symbols. I am not too familiar with nm, but I am not sure
> > > this symbol table is
> > > right:
> > >
> > > me at harper1:~/archives/mpich2-1.1.0a1> nm -a lib/libmpich.a
> > > |grep MPIR_Version_date me at harper1:~/archives/mpich2-1.1.0a1>
> > > nm -a lib/libmpich.a
> > >
> > > mpidu_process_locks.o:
> > > 00000000 a .strtab
> > > 00000000 a .symtab
> > > 00000000 n __ildata
> > >           w __ildata_included
> > > 00000000 a mpidu_process_locks.c
> > >
> > > mpidu_atomic_primitives.o:
> > > 00000000 a .strtab
> > > 00000000 a .symtab
> > > 00000000 n __ildata
> > >           w __ildata_included
> > > 00000000 a mpidu_atomic_primitives.c
> > >
> > > mpidu_queue.o:
> > > 00000000 a .strtab
> > > 00000000 a .symtab
> > > 00000000 n __ildata
> > >           w __ildata_included
> > > 00000000 a mpidu_queue.c
> > >
> > > dataloop.o:
> > > 00000000 a .strtab
> > > 00000000 a .symtab
> > > 00000000 n __ildata
> > >           w __ildata_included
> > > 00000000 a dataloop.c
> > > ...
> > > ...
> > > ...
> > >
> > > On Sep 24, 2008, at 12:00 PM, Rajeev Thakur wrote:
> > >
> > > > Can you do an "nm" on libmpich.a and see if those symbols are in
> > > > there.
> > > > Also, use icpc as the C++ compiler.
> > > >
> > > > Rajeev
> > > >
> > > >> -----Original Message-----
> > > >> From: owner-mpich-discuss at mcs.anl.gov
> > > >> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of
> > > Robert Kubrick
> > > >> Sent: Wednesday, September 24, 2008 10:55 AM
> > > >> To: mpich-discuss at mcs.anl.gov
> > > >> Subject: Re: [mpich-discuss] Compiling mpich2 with icc
> > > >>
> > > >> initinfo.c compiles fine, but there are several warnings during
> > > >> compilation. I am attaching here the complete make log.
> > > >>
> > > >>
> > > >>
> > > >
> > >
> > >
>
>


-- 
Mert TÜRKAL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080924/99ef94d3/attachment.htm>


More information about the mpich-discuss mailing list