Skip to content
  • Home
  • Recent
Collapse
Brand Logo
CRYSTAL23
Latest v1.0.1
Tutorials Try the Demo Get a License
Tutorials Try the Demo Get a License Instagram
  1. Home
  2. Technical Aspects
  3. Installation and Configuration
  4. Compiliation of CRYSTAL 17 on Apple Silicon

Compiliation of CRYSTAL 17 on Apple Silicon

Scheduled Pinned Locked Moved Installation and Configuration
2 Posts 2 Posters 18 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JackCleggundefined Offline
    JackCleggundefined Offline
    JackClegg
    wrote last edited by
    #1

    Dear All,

    I'm looking at upgrading to crystal23 but in the meantime has anyone had success in compiling from objects on an apple silicon system? I was thinking of using brew installed openmpi.

    Does anyone have a suitable include file?

    Jack

    1 Reply Last reply
    0
    • GiacomoAmbrogioundefined Offline
      GiacomoAmbrogioundefined Offline
      GiacomoAmbrogio Developer
      wrote last edited by
      #2

      Hi Jack,
      compiling from objects on Apple Silicon is possible, but there are two critical requirements:

      • You must use OpenMPI built with the same GNU Fortran version used to compile the object files (in particular gfortran 12.1)

      • You must use the MPI compiler wrappers (mpif90, mpicc, mpicxx) instead of the plain compilers for the final linking stage

      The default include file is almost correct. The only necessary changes are the compiler definitions. Replace the first lines with:

      F90     = mpif90
      LD      = $(F90)
      PLD     = mpif90
      

      Keep the rest unchanged.

      Important notes

      The OpenMPI you use must be built against gfortran 12.1. You can check with:

      mpif90 --show
      

      or

      mpif90 --version
      

      and verify that it points to gfortran-12.

      Do not mix different GNU Fortran versions (e.g. gfortran 13 or Apple clang).
      A mismatch here is the most common cause of runtime failures.

      Giacomo Ambrogio, PhD Student
      Department of Chemistry - University of Torino
      V. Giuria 5, 10125 Torino (Italy)

      1 Reply Last reply
      0

      Powered by Crystal Solutions
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Home
      • Recent