|Anonymous | Login | Signup for a new account||2015-11-25 22:15 UTC|
|My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000312||OpenFOAM||[All Projects] Bug||public||2011-10-09 14:12||2011-10-14 15:11|
|Target Version||Fixed in Version|
|Summary||0000312: Icc has problems with src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelCollection.C|
|Description||Intel compiler has problems with the scope given for "defineTemplateTypeNameAndDebug", line 38.|
Source of bug report: http://www.cfd-online.com/Forums/openfoam-installation/93141-2-0-1-istallation-problem-using-icc.html [^]
Confirmed the bug with icc (ICC) 12.1.0 20110811 - x86_64
|Additional Information||In the link given in the description is already a possible fix. Another possible one is attached.|
I tried searching for similar occurrences and the attached patch is the closest solution I could deduce.
|Tags||No tags attached.|
|Attached Files||issue312_another_possible_patch [^] (849 bytes) 2011-10-09 14:13 [Show Content]|
|This appears to be a bug in icc rather than OpenFOAM as there does not appear to be anything wrong with the code and it compiles with gcc and I beleive with a previous version of icc. If this is the only occurrence of this problem we could put in a temporary work-around for this particular version of icc and hope that it will be fixed in subsequent versions. I will do a test build with the latest icc this week. Incidentally have you found any benefit in using icc over gcc?|
I forgot to mention that most of the other occurrences I could find in the current OpenFOAM code seemed to require something like this: summoning the references for the template were mostly direct from the Foam namespace. But then again, I didn't check every single one to confirm if all were like this.
As for testing Icc vs Gcc, personally I've only built OpenFOAM with it the first time today (and using an AMD 1055T, which Icc might not like it very much), but I've seen someone else's timings: http://www.geocities.co.jp/SiliconValley-SantaClara/1183/study/OpenFOAM/Intel_compiler.html [^] - the reported test was done on OpenFOAM 1.7.1 (2011-01-29) and it seems that additional tweaks were made to push things to the limit, but even so Gcc 4.5.0 still had the upper hand on Icc!
My guess is that if Intel's MPI was added to the mix vs OpenMPI, perhaps Intel's technology might have the upper hand...
Thanks for the bug report, fixed by
|2011-10-09 14:12||wyldckat||New Issue|
|2011-10-09 14:13||wyldckat||File Added: issue312_another_possible_patch|
|2011-10-09 18:53||henry||Note Added: 0000707|
|2011-10-09 21:29||wyldckat||Note Added: 0000708|
|2011-10-14 15:11||henry||Note Added: 0000716|
|2011-10-14 15:11||henry||Status||new => resolved|
|2011-10-14 15:11||henry||Resolution||open => fixed|
|2011-10-14 15:11||henry||Assigned To||=> henry|