View Issue Details

IDProjectCategoryView StatusLast Update
0002021OpenFOAM(No Category)public2016-03-08 14:26
ReporteralexeymAssigned Tohenry 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Fixed in Versiondev 
Summary0002021: wmake utilities are build with -pg flag if WM_COMPILE_OPTION=Prof
DescriptionAnd it leads to:
1. Pollution of source tree with gmon.out
2. Slower wmkdep and dirToString (it is just a guess, since setting WM_COMPILE_OPTION to Prof reduces -O3 to -O2).
Steps To Reproduce1. Checkout sources
2. Source etc/bashrc
3. Set WM_COMPILE_OPTION=Prof
4. Run ./Allwmake
Additional InformationLocally I resolved this with addition of:

ifeq ("$(WM_COMPILE_OPTION)","Prof")
cFLAGS := $(filter-out -pg,$(cFLAGS))
cFLAGS := $(filter-out -O2,$(cFLAGS))
cFLAGS += -O3
endif

to wmake/src/Makefile.
TagsNo tags attached.

Activities

henry

2016-03-08 13:53

manager   ~0006012

The problem with your proposal is it assumes that setting

   WM_COMPILE_OPTION=Prof

introduces -pg and -O2 for ALL compilers which may not be the case; in particular profiling may be done in different ways requiring different options.
We need a better more general solution.

henry

2016-03-08 14:26

manager   ~0006019

Resolved in OpenFOAM-dev by commit 6cc3b057ec01a7cabb60558da779f495b1fbfa33

Issue History

Date Modified Username Field Change
2016-03-08 13:40 alexeym New Issue
2016-03-08 13:53 henry Note Added: 0006012
2016-03-08 14:26 henry Note Added: 0006019
2016-03-08 14:26 henry Status new => resolved
2016-03-08 14:26 henry Fixed in Version => dev
2016-03-08 14:26 henry Resolution open => fixed
2016-03-08 14:26 henry Assigned To => henry
2016-03-11 11:44 administrator Category 3.0.1 => (No Category)