[petsc-dev] Is there a good reason that BuildSystem's cuda.py requires GNU compilers?

Jed Brown jed at jedbrown.org
Wed Mar 27 23:29:06 CDT 2019

"Balay, Satish via petsc-dev" <petsc-dev at mcs.anl.gov> writes:

> Hm for CXXFLAGS - I think you have to do:
> self.pushLanguage('Cxx')
> CXXFLAGS = self.getCompilerFlags()
> self.popLanguage()

These days, it's better to write this using the context manager:

  with self.Language('Cxx'):
    CXXFLAGS = self.getCompilerFlags()

With regard to the test, how much do you think is desirable to enforce?

More information about the petsc-dev mailing list