Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • Nektar Nektar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 86
    • Issues 86
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 59
    • Merge requests 59
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Nektar
  • NektarNektar
  • Issues
  • #69

Closed
Open
Created Oct 06, 2017 by Kilian Lackhove@lackhoveMaintainer

PETSc ignores the user specified compiler and uses the system default

When using openmpi, the PETSc build system ignores the OMPI_FC, OMPI_CC and OMPI_CXX environment variables set by cmake and uses the default compilers instead. a workaround is to export these variables manually before running make, e.g.

$ export OMPI_FCFLAGS= OMPI_CC=/usr/bin/clang OMPI_CXX=/usr/bin/clang++ OMPI_FC=/usr/bin/gfortran 
$ make -j 6

I wasn't able to fix this in a portable way, so i am filing this issue in case somebody else runs into this problem.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking