Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] OpenMPI - compilation

In PTP 2.0 the setup will happen automatically for OpenMP like it does for
MPI.
However the exact build command and compiler options probably depend on
your compiler, so I can't tell you.
Some of them have an option which is something like "-fopenmp"  -- check
your compiler.
I think gcc has openmp in version 4.2 or later. Fedora Core backported it
to 4.1 i believe.
>From your post it looks like you do have 4.2.   So, check the help for the
compiler.


But the preferences will allow you to set it up once and each new project
will use those settings, for PTP 2.0


...Beth

Beth Tibbitts  (859) 243-4981  (TL 545-4981)
High Productivity Tools / Parallel Tools  http://eclipse.org/ptp
IBM T.J.Watson Research Center
Mailing Address:  IBM Corp., 455 Park Place, Lexington, KY 40511


                                                                           
             Sajjad                                                        
             <rupam.sajjad@gma                                             
             il.com>                                                    To 
             Sent by:                  ptp-user <ptp-user@xxxxxxxxxxx>     
             ptp-user-bounces@                                          cc 
             eclipse.org                                                   
                                                                   Subject 
                                       [ptp-user] OpenMPI - compilation    
             11/15/2007 03:27                                              
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
               PTP User list                                               
             <ptp-user@eclipse                                             
                   .org>                                                   
                                                                           
                                                                           




Hello Beth,

I finally managed to get OpenMPI running with Eclipse after i installed
that manually.

Thanks for all  the help so far.

Now i have another issue to discuss and that is OpenMP.

In the tutorial it says that -

"Setup for PTP OpenMP Tools

The basic setup for the OpenMP tools is the same as for the MPI tools
setup. Essentially, point CDT at the header files and at the command to
call your compiler with the OpenMP information .

Note that you must add the OpenMP include information manually to the
project. The New Project wizard does not (yet) add this information
automatically for OpenMP projects. "


what will be the command for OpenMP in GCC C++ compiler and GCC C compiler?

Should that be as it was for mpicc or something else?


I  have figured out the include and library path  but do not know  what is
the library flag for OpenMP
i tried with omp and came up with  the following errors:


**** Build of configuration Debug for project testOpenMP ****

make -k all
Building file: ../testOpenMP.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/lib64/gcc/x86_64-linux-gnu/4.2.1/include -O0 -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF" testOpenMP.d" -MT"testOpenMP.d"
-o"testOpenMP.o" "../testOpenMP.cpp"
../testOpenMP.cpp:12: warning: ignoring #pragma omp parallel
Finished building: ../testOpenMP.cpp

Building target: testOpenMP
Invoking: GCC C++ Linker
mpicc -L/usr/local/lib/openmpi -L/usr/lib64/gcc/x86_64-linux-gnu/4.2.1
-o"testOpenMP"  ./testOpenMP.o   -lomp -lmpi
/usr/bin/ld: cannot find -lomp
collect2: ld returned 1 exit status
make: *** [testOpenMP] Error 1
make: Target `all' not remade because of errors.
Build complete for project testOpenMP


Sajjad



_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-user




Back to the top