|
[Sponsors] |
Error occurs when compiling OpenFoam 1.6.x with Icc |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 26, 2009, 11:34 |
Error occurs when compiling OpenFoam 1.6.x with Icc
|
#1 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
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 |
|
December 1, 2009, 05:09 |
|
#2 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
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:http://www.cfd-online.com/Forums/ope...ation-icc.html
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 |
|
December 1, 2009, 15:17 |
|
#3 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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 |
|
December 2, 2009, 10:14 |
|
#4 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
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 |
|
January 17, 2010, 09:09 |
License
|
#5 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
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 |
|
January 20, 2010, 04:08 |
|
#6 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
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 |
|
|
|
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 12:03 |
Windows patch for OpenFOAM 1.6.x | gocarts | OpenFOAM Announcements from Other Sources | 2 | October 16, 2009 10:55 |
Problem compiling OpenFOAM 1.6.x | deji | OpenFOAM Installation | 1 | October 8, 2009 00:00 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix | mbeaudoin | OpenFOAM Installation | 2 | April 28, 2006 09:54 |