View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002021 | OpenFOAM | public | 2016-03-08 13:40 | 2016-03-08 14:26 | |
Reporter | alexeym | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | dev | ||||
Summary | 0002021: wmake utilities are build with -pg flag if WM_COMPILE_OPTION=Prof | ||||
Description | And 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 Reproduce | 1. Checkout sources 2. Source etc/bashrc 3. Set WM_COMPILE_OPTION=Prof 4. Run ./Allwmake | ||||
Additional Information | Locally 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. | ||||
Tags | No tags attached. | ||||
|
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. |
|
Resolved in OpenFOAM-dev by commit 6cc3b057ec01a7cabb60558da779f495b1fbfa33 |
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) |