Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kicc --> Intel Compiler 8.0 --> Kernel building!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
goanuj
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 125
Location: California

PostPosted: Sun Apr 18, 2004 1:35 am    Post subject: kicc --> Intel Compiler 8.0 --> Kernel building! Reply with quote

http://seclists.org/lists/linux-kernel/2004/Mar/att-2987/kicc

This seems to be the magic script that everyone has been waiting for!

[edit] But I think it only works with Intel Compiler 8.0, can someone check?


Last edited by goanuj on Sun Apr 18, 2004 7:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
nx12
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 193

PostPosted: Sun Apr 18, 2004 3:05 am    Post subject: Reply with quote

Sounds great! 8O 8O
Gonna test it as soon as possible and post my results.
_________________
signature sucks
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sun Apr 18, 2004 5:10 am    Post subject: Reply with quote

Anything to report yet?
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
nx12
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 193

PostPosted: Mon May 03, 2004 10:17 pm    Post subject: Reply with quote

Sorry for delay.. Well I've compiled the kernel with that script. The only warining I had was about unknown option "funroll-loops". Let's see what will happen upon my next reboot.. :roll:
_________________
signature sucks
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Mon May 03, 2004 10:24 pm    Post subject: Reply with quote

I tried making a kernel with icc and I noticed that it did a few pieces with ICC but GCC was showing up in my process list.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
nx12
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 193

PostPosted: Tue May 04, 2004 1:29 pm    Post subject: Reply with quote

Yep. The same thing. I grepped a couple of times ps -Al a during kernel building and it showed only gcc. :roll:
_________________
signature sucks
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Tue May 04, 2004 3:38 pm    Post subject: Reply with quote

Why would you want to build your kernel with ICC? Just a question here, not trying to start a flamewar. The kernel is written specifically to be compiled with GCC and, were I to use ICC, I'd keep GCC around just for the kernel. In fact, it's supposed to be compiled with GCC 2.95.3 (this apparently creates the nicest code from the kernel sources) but 3.x is well-supported as of 3.2.3, whereas ICC is wholly unsupported.

Is it just that nagging "why doesn't it work?" curiosity?
_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
nx12
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 193

PostPosted: Tue May 04, 2004 4:21 pm    Post subject: Reply with quote

2robmoss2k
Hm-m I just would like to test if it will be any faster. And you know I like to mess with my Gentoo... :D
_________________
signature sucks
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Tue May 04, 2004 4:35 pm    Post subject: Reply with quote

nx12 wrote:
2robmoss2k
Hm-m I just would like to test if it will be any faster. And you know I like to mess with my Gentoo... :D


Fair enough! IMHO, the kernel is one thing I'd really, really like to get compiled using Acovea and GCC 3.4.0... :twisted:
_________________
Reality is for those who can't face Science Fiction.

emerge -U will kill your Gentoo
ecatmur, Lord of Portage Bash Scripts
Back to top
View user's profile Send private message
Markus_T
n00b
n00b


Joined: 09 Feb 2004
Posts: 49
Location: Berlin

PostPosted: Tue May 04, 2004 5:10 pm    Post subject: Reply with quote

You must use
Code:
make CC=kicc

to build the kernel. Also use V=1 to see which compliler is being used.
But it does not work anyway. Some additional patching is
requiered. See: (intel compiler forum)
http://softwareforums.intel.com/ids/board/message?board.id=16&message.id=1504
for further hints.
Back to top
View user's profile Send private message
goanuj
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 125
Location: California

PostPosted: Sat May 08, 2004 6:26 pm    Post subject: found another link Reply with quote

http://www.pyrillion.org/index.html?showframe=linux.html

One note about why one would want to use the Intel Compiler for linux, in the Feb 2004 issue of C++ Users Journal, Moshe Bar did a perf comparison using the icc compiler and found that a kernel compiled with it was about 8.9% smaller (in bytes) than a kernel compiled with gcc.
Back to top
View user's profile Send private message
nx12
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 193

PostPosted: Sat May 08, 2004 10:02 pm    Post subject: Reply with quote

2goanuj:
I don't think that it has big importance.. I have 1G of RAM and 100-200 kbs don't make any difference. I'm more interested in speed and P4 optimization.
_________________
signature sucks
Back to top
View user's profile Send private message
goanuj
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2002
Posts: 125
Location: California

PostPosted: Mon May 10, 2004 4:43 pm    Post subject: i agree Reply with quote

I agree that this speed might not be important for most people, but imagine you are Livermore labs and your simulations take 10-15 days. Even if you can cut 1-2 hours off the final time, it is worth it!
Back to top
View user's profile Send private message
nx12
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 193

PostPosted: Tue May 11, 2004 11:50 pm    Post subject: Reply with quote

Hm-m rebooted with icc-kernel and hanged on filesystems mounting...
It seems icc is still not kernel-ready.. :(
Well, anyway I hope intel guys make it more gcc-compatible next time.
_________________
signature sucks
Back to top
View user's profile Send private message
Markus_T
n00b
n00b


Joined: 09 Feb 2004
Posts: 49
Location: Berlin

PostPosted: Fri May 28, 2004 12:17 pm    Post subject: Reply with quote

A new kernel patch from Ingo is available:
http://www.pyrillion.org/downloads/linux-2.6-icc-0.9.tar.bz2

I have just succesfully compiled the 2.6.6 vanilla kernel with icc,
using this patch. Everything is working very nicely. :D
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Fri May 28, 2004 8:08 pm    Post subject: Reply with quote

Markus_T wrote:
A new kernel patch from Ingo is available:
http://www.pyrillion.org/downloads/linux-2.6-icc-0.9.tar.bz2

I have just succesfully compiled the 2.6.6 vanilla kernel with icc,
using this patch. Everything is working very nicely. :D


How is it?
Is the kernel smaller?
Do you notice a difference in speed or response?
Can you still build proprietary stuff like nvidia-kernel modules?
Curious :)
Back to top
View user's profile Send private message
Markus_T
n00b
n00b


Joined: 09 Feb 2004
Posts: 49
Location: Berlin

PostPosted: Fri May 28, 2004 8:54 pm    Post subject: Reply with quote

AlterEgo wrote:
Markus_T wrote:
A new kernel patch from Ingo is available:
http://www.pyrillion.org/downloads/linux-2.6-icc-0.9.tar.bz2

I have just succesfully compiled the 2.6.6 vanilla kernel with icc,
using this patch. Everything is working very nicely. :D


How is it?
Is the kernel smaller?
Do you notice a difference in speed or response?
Can you still build proprietary stuff like nvidia-kernel modules?
Curious :)


The kernel is a little bit more responsive compared to gcc 3.4.
I still have to play with the various optimization options.
(Right now I'm using: -O3 -ipo -ipo_obj -D__ICC_OPT -D__ICC_OPT2)

There is some potential for a greater performance boost if you use the
profile-guided optimization options, but I haven't checked those out yet.

Finally I don't use modules, I'm a monolithic kernel guy... :lol:
Back to top
View user's profile Send private message
tyfon
n00b
n00b


Joined: 18 Aug 2004
Posts: 6

PostPosted: Wed Aug 18, 2004 8:14 pm    Post subject: Reply with quote

Anyone know if there will be a 2.6.7 patch? :p
I tried to apply the 2.6.6 ones and it crashed horribly at boot with some scheduling error =)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum