Re: [petsc-dev] OpenMP compiler options
On Tue, May 29, 2012 at 3:52 PM, Jed Brown <[email protected]> wrote:
The OpenMP flags do not definitively identify that OpenMP is used. In particular, IBM XL interprets Cray's option "-h omp" as being equivalent to "-soname omp", then silently ignores the Open MP pragmas. We can perhaps "fix" this instance by moving -qsmp up in the list, but we may eventually need to move it to compilerOptions.py.
Move it up, and add it to the comment. And people think OpenMP is the easy way? Matt
def configureLibrary(self): ''' Checks for -fopenmp compiler flag''' ''' Needs to check if OpenMP actually exists and works ''' self.setCompilers.pushLanguage('C') # for flag in ["-fopenmp", # Gnu "-h omp", # Cray "-mp", # Portland Group "-Qopenmp", # Intel windows "-openmp", # Intel " ", # Empty, if compiler automatically accepts openmp "-xopenmp", # Sun "+Oopenmp", # HP "-qsmp", # IBM XL C/c++ "/openmp" # Microsoft Visual Studio ]: if self.setCompilers.checkCompilerFlag(flag): ompflag = flag break
-- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener
participants (1)
-
Matthew Knepley