CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Bugs

Error occurs when compiling OpenFoam 1.6.x with Icc

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 26, 2009, 11:34
Default Error occurs when compiling OpenFoam 1.6.x with Icc
  #1
Senior Member
 
Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 184
Rep Power: 8
fs82 is on a distinguished road
Is there anybody who successfully compiled OpenFoam 1.6.x with the Intel C++ Compiler and a IA64 architecture?

If I switch $WM_COMPILER from Gcc to Icc and compilerInstall to System I get an error in fileStat.C:

/work/home6/fschleg/Source/OpenFoam/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/HashTable.C(459): error: argument list for class template "Foam::Hash" is missing
const HashTable<AnyType, Key, Hash>& rhs
^

/work/home6/fschleg/Source/OpenFoam/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/HashTable.C(457): error: no instance of overloaded function "Foam::HashTable<T, Key, Hash>::erase" matches the specified type
Foam::label Foam::HashTable<T, Key, Hash>::erase

So I already posted this question in the Installation section but nobody is answering. So may be someone here already tried to compile OpenFoam 1.6.x wit the Icc and have a solution?

Fabian
fs82 is offline   Reply With Quote

Old   December 1, 2009, 05:09
Default
  #2
Senior Member
 
Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 184
Rep Power: 8
fs82 is on a distinguished road
Allright I fixed this bug with a little help of a colleague but this was not the last error which occurs when compiling with icc. The solution is posted here:Error during compilation with Icc

But now the next error appears in src/OpenFOAM/primitives/hashes/SHA1/SHA1.C:

primitives/hashes/SHA1/SHA1.C(137): error: type definition is not allowed
if (UNALIGNED_P (data))

Fabian
fs82 is offline   Reply With Quote

Old   December 1, 2009, 15:17
Default
  #3
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
I've pushed the changes for a (fairly clean) build using icpc11.1 into 1.6.x. Please let me know of any problems. To use it you'll need to set the environment variable WM_COMPILER to Icc and change the etc/settings.* to have compilerInstall=System.

Thanks for reporting,

Mattijs
mattijs is offline   Reply With Quote

Old   December 2, 2009, 10:14
Default
  #4
Senior Member
 
Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 184
Rep Power: 8
fs82 is on a distinguished road
Yeah seems that I am back in business. Thx a lot Mattijs great work.
I tested it first with intel compiler version 10.1 but this was a bad idea. Now I am compiling with 11.0 and it looks very good but it needs a long time and the Altix isnt very fast on one CPU :/ The only thing I noticed is right in the beginning, when compiling ThirdParty:

could not open file libc_private.h for source file fbsdmalloc.c
could not open file spinlock.h for source file fbsdmalloc.c

But may be this isnt a serious error and wmake do not complain about the missing files. May be anybody know if this files should be provided by the OS, or compiler or OpenFoam?

kind regards,
Fabian
fs82 is offline   Reply With Quote

Old   January 17, 2010, 09:09
Default License
  #5
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 471
Rep Power: 11
bastil is on a distinguished road
I am wondering if I need a license for Intel-COmpiler if I intend to compile OpenFOAM with icc and use the compiled OfenFOAM for comercial use but not want to sell anything compiled with icc?
What about performance? Does this improve with icc compared to gcc on x86_86?

Regards
bastil is offline   Reply With Quote

Old   January 20, 2010, 04:08
Default
  #6
Senior Member
 
Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 184
Rep Power: 8
fs82 is on a distinguished road
As far as I know you are allowed to use the intel compiler suite free for educational use (linux only). For everything else, especially for commercial use (even if you are not planning to sell anything done with intels compilers suite) you have to buy it. More informations should be on intels website.
I never tested the performence between gcc and icc. I have to use the icc compiler because I run OpenFoam on a Intel Itanium2 cluster and this is only possible if you compile with the intel compiler suite. On my x86_64 I prefer the gcc and the performance is quite good. And if you read through the forum you will notice that most of the performace checks states gcc is as fast as icc. But for my opinion gcc is much more comfortable to use with openfoam :-D

Fabian
fs82 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.6.x - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 68 April 22, 2013 11:03
Windows patch for OpenFOAM 1.6.x gocarts OpenFOAM Announcements from Other Sources 2 October 16, 2009 09:55
Problem compiling OpenFOAM 1.6.x deji OpenFOAM Installation 1 October 7, 2009 23:00
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 08:54


All times are GMT -4. The time now is 14:14.