Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] PTP and remote includes


On Apr 14, 2011, at 11:12 AM, Chris Recoskie wrote:

What compiler are you using on the cluster? It's possible there may be other header directories you need to add to the include path.

Well, it is complicated.  The cluster originally shipped with v4.1.2:

dhudak@opt-login01 500%> gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)

I am using a later version, v4.2.3:
dhudak@opt0011 524%> gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --prefix=/usr/local/gcc-4.2.3
Thread model: posix
gcc version 4.2.3

The header files should be in /usr/local/gcc-4.2.3/include, but they aren't.  So, I am using the ones from /usr/include

I could try with the intel compiler to see if it is the oddity of the gcc install.  Let me know.

Thanks,
Dave


===========================
Chris Recoskie
Team Lead, IBM CDT and RDT
IBM Toronto

<graycol.gif>"Jay Alameda" ---04/14/2011 11:05:36 AM---Dave, I just tried on my windows 7 machine- running 3.6.2 and PTP 4.0.6 (as

<ecblank.gif>
From:
<ecblank.gif>
"Jay Alameda" <jalameda@xxxxxxxxxxxxxxxxx>
<ecblank.gif>
To:
<ecblank.gif>
"'PTP User list'" <ptp-user@xxxxxxxxxxx>
<ecblank.gif>
Date:
<ecblank.gif>
04/14/2011 11:05 AM
<ecblank.gif>
Subject:
<ecblank.gif>
Re: [ptp-user] PTP and remote includes
<ecblank.gif>
Sent by:
<ecblank.gif>
ptp-user-bounces@xxxxxxxxxxx





Dave,

I just tried on my windows 7 machine- running 3.6.2 and PTP 4.0.6 (as
distributed for Eclipse SR2) - and for a small C project, was able to see
the includes in /usr/include.  
I'm puzzled, as to what may be going wrong, this has worked for me pretty
consistently well - though I don't have a local /usr/include as you would
on your Mac -
Where did you find the properties files?

Jay


-----Original Message-----
From: ptp-user-bounces@xxxxxxxxxxx [
mailto:ptp-user-bounces@xxxxxxxxxxx]
On Behalf Of David E Hudak
Sent: Thursday, April 14, 2011 9:38 AM
To: PTP User list
Subject: [ptp-user] PTP and remote includes

Hi All,

I have Eclipse v3.6.2 on my Mac OS X v10.6.8 and am running
 PTP Core Components 4.0.6.201102161000
org.eclipse.ptp.core.feature.group

I have a set of C files in a directory on OSC's cluster for a parallel
application using MPI and Global Arrays (GA) Toolkit.

I have been able to create a Remote C project on my Mac and point it at
the directory on the cluster.

I have edited the project properties to add remote includes for 4
directories (my properties file is appended below):
/usr/local/ga-5.0.2/ga-5.0.2-gnu/include
/usr/local/mpi/mvapich2-1.5-gnu/include
/usr/local/acml-4.3.0/gfortran64_int64/include
/usr/include

Now, if I look at a file that has #include <ga.h>, I can double-click in
the outline and it opens the GA header file from the cluster.  Same thing
with mpi.h.  So, the first 3 directories are correctly found on the remote
cluster.  

However, if I double-click on stdio.h or stdlib.h, it either says there is
no file associated with that file or it opens the local copy of the header
file on my Mac!  

I think eclipse is looking in the local /usr/include - as the project
explorer shows files in the local file system under the "includes"
"usr/include" folder.

Any insight on what I am doing wrong?  How can I tell Eclipse I want
/usr/include on the remote system?

Thanks,
Dave
---
David E. Hudak, Ph.D.          dhudak@xxxxxxx
Program Director, HPC Engineering
Ohio Supercomputer Center
http://www.osc.edu


<?xml version="1.0" encoding="UTF-8"?>
<cdtprojectproperties>
<section
name="org.eclipse.cdt.internal.ui.wizards.settingswizards.IncludePaths">
<language name="holder for library settings">

</language>
<language name="Assembly">

</language>
<language name="UPC">

</language>
<language name="GNU C++">

</language>
<language name="GNU C">
<includepath>/usr/local/ga-5.0.2/ga-5.0.2-gnu/include</includepath>
<includepath>/usr/local/mpi/mvapich2-1.5-gnu/include</includepath>
<includepath>/usr/local/acml-4.3.0/gfortran64_int64/include</includepath>
<includepath>/usr/include</includepath>

</language>
<language name="Fortran">

</language>
</section>
</cdtprojectproperties>






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

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


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

---
David E. Hudak, Ph.D.          dhudak@xxxxxxx
Program Director, HPC Engineering
Ohio Supercomputer Center










Back to the top