Sponsored Content
Special Forums UNIX and Linux Applications High Performance Computing problem installing software package with MPI support Post 302280570 by otheus on Tuesday 27th of January 2009 09:08:07 AM
Old 01-27-2009
The general rule when compiling mpi programs is to use mpicc, and not to directly invoke the compiler. I have experience with MPICH, and that is what you normally do. You can, of course invoke the compiler, but then you have to specify the right location of the MPI libraries: you only told to load them (-lmpich), but the compiler doesn't know where to look.

You gave it "-L/Users/andy/mpich/mpich2" but I suspect this is incorrect. Try:
Code:
-L$HOME/mpich/mpich2/lib

However, it might be in lib. You can use mpicc -v to see what paths mpicc is passing to gcc.
 

10 More Discussions You Might Find Interesting

1. HP-UX

license of software package

Hi when i do a swlist on my HP-UX machine it displays the software packages ..How do i know whether those packages are licensed or freeware can any 1 help me best Regards vasanth (0 Replies)
Discussion started by: vasanthan
0 Replies

2. UNIX for Dummies Questions & Answers

What is the difference between device driver and board support package?

What is the difference between device driver and board support package? (0 Replies)
Discussion started by: anupa
0 Replies

3. UNIX for Dummies Questions & Answers

Problem while installing WAS ND package

Hi everyone, Hope u doing good. I am trying to installl WebSphere Application Server(WAS) ND package, i got problem at initial level I hope, the problem is with Mozilla browzer. Can anyone trobleshoot the problem An error occurred while starting the launchpad for a WebSphere Application ... (0 Replies)
Discussion started by: sarfraz
0 Replies

4. Solaris

Problem installing the software HDLM

Estou tentando instalar o software de HDLM ( Hitachi Dynamic Link Manager ) e está apresentando a seguinte mensagem: -bash-3.00# ./installhdlm KAPL09187-W No parameter is specified. Não sei que parameter é esse ? (1 Reply)
Discussion started by: to.brunoaugusto
1 Replies

5. Solaris

Problem installing the software HDLM

I'm trying to install the software HDLM (Hitachi Dynamic Link Manager) and is presenting the following message: -Bash-3.00 #./Installhdlm In KAPL09187-W parameter is specified. I do not know which parameter is that? (3 Replies)
Discussion started by: to.brunoaugusto
3 Replies

6. Solaris

Zoning permission problem when installing software

hi all i am working on zone and when i try to install software i face read and write permisssion on directory which zonning inherit from them so how can i add read and write permission to zone already running (3 Replies)
Discussion started by: jamisux
3 Replies

7. Red Hat

hp support package issue

hi all, and pludi: as command hpasmcli for linux server to check health, any such a same command to check hp server using windows server 2003 OS health ? (0 Replies)
Discussion started by: maxlee24
0 Replies

8. Solaris

Facing problem with installing CF engine software in solaris 10

Dear experts, I am using solaris 10 OS.I am installing CF engine software in the server while doing so ,i am getting following error checking for BerkeleyDB location in default... configure: error: >> Cannot find BerkeleyDB I am installing the Berkely DB 5.3.I am strugging... (1 Reply)
Discussion started by: muraliinfy04
1 Replies

9. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

10. Red Hat

Set Proxy In The Terminal & problem Package Installing

Centos Behind The Proxy Server In My System , How Can I Set In Terminal Proxy ( Username & Password ) When Using The Command yum & rpm online I Will Respond Error Thank You For Your Guidance (28 Replies)
Discussion started by: mnnn
28 Replies
opalcc(1)							     Open MPI								 opalcc(1)

NAME
opalcc -- Open PAL C wrapper compiler SYNTAX
opalcc [-showme|-showme:compile|-showme:link] ... OPTIONS
-showme Do not invoke the underlying compiler. Instead, show the command line that would be executed to compile the program. NOTE: If a non-filename argument is passed on the command line, the -showme option will not display any additional flags. For example, both "opalcc --showme" and "opalcc --showme my_source.c" will show all the wrapper-supplied flags. But "opalcc -showme -v" will only show the underlying compiler name and "-v". -showme:compile Do not invoke the underlying C compiler. Instead, show the compiler flags that would be supplied to the C compiler. -showme:link Do not invoke the underlying C compiler. Instead, show the linker flags that would be supplied to the C compiler. See the man page for your underlying compiler for other options that can be passed through opalcc DESCRIPTION
Conceptually, the role of these commands is quite simple: transparently add relevant compiler and linker flags to the user's command line that are necessary to compile / link Open PAL programs, and then invoke the underlying compiler to actually perform the command. As such, these commands are frequently referred to as "wrapper" compilers because they do not actually compile or link applications them- selves; they only add in command line flags and invoke the back-end compiler. Background Open MPI is comprised of three software layers: OPAL (Open Portable Access Layer), ORTE (Open Run-Time Environment), and OMPI (Open MPI). There are wrapper compilers for each layer; each layer's wrapper only links in the libraries relevant for that layer. Specifically, each layer provides the following wrapper compilers: OPAL opalcc and opalc++ ORTE ortecc and ortec++ OMPI mpicc, mpic++, mpicxx, mpiCC (only on systems with case-senstive file systems), mpif77, and mpif90. Note that mpic++, mpicxx, and mpiCC all invoke the same underlying C++ compiler with the same options. All are provided as compatibility with other MPI implementa- tions. The Fortran wrapper compilers for MPI (mpif77 and mpif90) will be inoperative and will return an error on use if Fortran 77 / Fortran 90 support was not built into the MPI layer. Overview opalcc is a convenience wrappers for the underlying C compiler. Translation of an Open PAL program requires the linkage of the Open PAL- specific libraries which may not reside in one of the standard search directories of ld(1). It also often requires the inclusion of header files what may also not be found in a standard location. opalcc passes its arguments to the underlying C compiler along with the -I, -L and -l options required by Open PAL programs. The Open PAL Team strongly encourages using the wrapper compilers instead of attempting to link to the Open PAL libraries manually. This allows the specific implementation of Open PAL to change without forcing changes to linker directives in users' Makefiles. Indeed, the specific set of flags and libraries used by the wrapper compilers depends on how Open PAL was configured and built; the values can change between different installations of the same version of Open PAL. Indeed, since the wrappers are simply thin shells on top of an underlying compiler, there are very, very few compelling reasons not to use opalcc. When it is not possible to use the wrappers directly, the -showme:compile and -showme:link options should be used to determine what flags the wrappers would have used. For example: shell$ cc -c file1.c `mpicc -showme:compile` shell$ cc -c file2.c `mpicc -showme:compile` shell$ cc file1.o file2.o `mpicc -showme:link` -o my_mpi_program NOTES
It is possible to make the wrapper compilers multi-lib aware. That is, the libraries and includes specified may differ based on the com- piler flags specified (for example, with the GNU compilers on Linux, a different library path may be used if -m32 is seen versus -m64 being seen). This is not the default behavior in a standard build, but can be activated (for example, in a binary package providing both 32 and 64 bit support). More information can be found at: https://svn.open-mpi.org/trac/ompi/wiki/compilerwrapper3264 FILES
The string that the wrapper compilers insert into the command line before invoking the underlying compiler are stored in a text file cre- ated by Open PAL and installed to $pkgdata/opalcc-wrapper-data.txt, where $pkgdata is typically $prefix/share/openmpi, and $prefix is the top installation directory of Open PAL. It is rarely necessary to edit this file, but it can be examined to gain insight into what flags the wrappers are placing on the command line. ENVIRONMENT VARIABLES
By default, the wrappers use the compilers that were selected when Open PAL was configured. These compilers were either found automati- cally by Open MPI's "configure" script, or were selected by the user in the CC, CXX, F77, and/or FC environment variables before "config- ure" was invoked. Additionally, other arguments specific to the compiler may have been selected by configure. These values can be selectively overridden by either editing the text files containing this configuration information (see the FILES sec- tion), or by setting selected environment variables of the form "OPAL_value". Valid value names are: CPPFLAGS Flags added when invoking the preprocessor (C or C++) LDFLAGS Flags added when invoking the linker (C, C++, or Fortran) LIBS Libraries added when invoking the linker (C, C++, or Fortran) CC C compiler CFLAGS C compiler flags CXX C++ compiler CXXFLAGS C++ compiler flags F77 Fortran 77 compiler FFLAGS Fortran 77 compiler flags FC Fortran 90 compiler FCFLAGS Fortran 90 compiler flags 1.4.5 Feb 10, 2012 opalcc(1)
All times are GMT -4. The time now is 02:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy