![]() It was then configured and built as follows: PETSc 3.7.4 source was downloaded and unpacked in $prefix. OpenBLAS was chosen in an attempt to be compatible with. Sudo port select -set mpi openmpi-clang38-fortran Sudo port install mpi_select clang_select It's a good idea to install the select packages for CLang and MPI and make sure the right versions are "selected": This will install the CLang compiler set and OpenMPI. Sudo port install boost boost that the openmpi Boost variant was installed. Several necessary packages were installed by The CLang compiler set and some of the prerequisite software was installed on this system using MacPorts. Neither version worked as shared libraries, so GA must be built static.Īfter a couple of aborted starts with the LLVM compiler, CLang 3.8 (installed with MacPorts) was chosen, and, after some effort, it built GridPACK. Global Arrays 5.5 does not appear to work with LLVM or CLang, but the SVN trunk version does.(NOTE: Boost does not report Boost.MPI unit test results for LLVM or CLang compilers on any platform). After the trouble was encountered, the CLang compilers were chosen and used there after. Compiling Boost.MPI with the stock LLVM compiler seemed to create problems with serialization needed in the GridPACK code.In addition, some other problems were encountered while getting this to work: By far the best thing to do is use the same compilers to build GridPACK and any associated libraries such as Boost and PETSc. If C++ objects from GNU compilers are mixed with the system compiler, they will not link together, because of conflicting and/or missing symbols from the standard library. GNU compilers, if installed, will use libstdc++. The stock LLVM C++ compiler will use libc++. Mac OS X provides two standard C++ libraries on modern systems: libc++ (the one Apple wants to support), and libstdc++ (that will be phased out). ![]() Here is a good guide.Ĭare must be taken to use a consistent set of compilers when building GridPACK. To get the stock Apple compiler ( LLVM), XTools must be installed. Mac systems do not have a compiler out of the box. Also, the C-shell is used in this example some commands may need adjustment if another shell such as the Bourne-shell is used. Before starting, type:Īdjust this to your personal set up. This directory will subsequently be referred to as $prefix. Create a suitable directory where GridPACK and related packages can be built and resulting binaries installed.
0 Comments
Leave a Reply. |