replacing gcc with icc

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Antares
Posts: 0
Joined: Fri Nov 14, 2003 4:04 pm

replacing gcc with icc

Post by Antares »

Hi all,

after a long time passed i am now trying to compile Blender with the intel compiler under linux.

Everything is fine up to now. Blender already compiled with gcc using scons and the intel compiler is ready as well.

Now where can i specify within the scons files, that i want to use gcc for this file and icc for that file, probably alternating.

Is this possible? Or can i only compile the hole project with or without the intel compiler?

Thanx for your help

ideasman
Posts: 0
Joined: Tue Feb 25, 2003 2:37 pm

Post by ideasman »

Sconstruct

jesterKing
Site Admin
Posts: 207
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Re: replacing gcc with icc

Post by jesterKing »

Antares wrote:Now where can i specify within the scons files, that i want to use gcc for this file and icc for that file, probably alternating.

Is this possible? Or can i only compile the hole project with or without the intel compiler?
The best place to change this is after a successful run with gcc, modify config.opts which gets created upon first run. CC and CXX are the ones you need to modify - and to be on the safe side, do also the related HOST- and TARGET- options.

/Nathan

ideasman
Posts: 0
Joined: Tue Feb 25, 2003 2:37 pm

Post by ideasman »

Id be interested in your results- benchmarking GCC against ICC-

Also, is ICC any good for AMD???

Im using large scenes where the number of objects is slowing blender down, any speed improvements would be good.

Antares
Posts: 0
Joined: Fri Nov 14, 2003 4:04 pm

Post by Antares »

If done properly icc should giva another 10% speedup over gcc.
There's an intel document about this issue (which i cannot find right now).

my windows builds work well on AMD, because the intel compiler is doing basic optimsation and isupported instruction based ones. AMD also got SSE so they benefit from icc as well.

i doubt i have the skills to beat gcc, but neverterless i'll try it ^^

Post Reply