Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cray build issue problems - advice? #101

Open
dtaller opened this issue Oct 31, 2024 · 0 comments
Open

Cray build issue problems - advice? #101

dtaller opened this issue Oct 31, 2024 · 0 comments

Comments

@dtaller
Copy link

dtaller commented Oct 31, 2024

I recently tried to build scalapack on a Cray machine, but ran into issues. The first issue occured with the code block

find_package(MPI)
if (MPI_FOUND)
   message(STATUS "Found MPI_LIBRARY : ${MPI_FOUND} ")
   INCLUDE_DIRECTORIES(${MPI_INCLUDE_PATH})

   find_program(MPI_C_COMPILER
      NAMES mpicc
      HINTS "${MPI_BASE_DIR}"
      PATH_SUFFIXES bin
      DOC "MPI C compiler.")
   MARK_AS_ADVANCED(MPI_C_COMPILER)
   if ("${MPI_C_COMPILER}" STREQUAL "MPI_C_COMPILER-NOTFOUND")
      message(ERROR "--> MPI C Compiler NOT FOUND (please set MPI_BASE_DIR accordingly")

Basically, on the Cray machine, I am supposed to load the modules I want, and then use compiler wrappers CC, cc, and ftn (point to whichever compiler and mpi I need). So this logic where we search for mpicc failed.

In addition, the logic

if (UNIX)
   if ("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "Intel")
      set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fltconsistency -fp_port" )
   endif ()
endif ()

failed because the cray-compatible intel compiler did not support the -fp_port flag.

I was able to resolve these issues by commenting out the offending lines in the cmake file. But I was wondering if you can think of a better solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant