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

Hi All,

After working with Jay yesterday afternoon, we identified the problem.

1.  I add all the correct remote paths to the project properties.  
2.  One path, /usr/include, exists on both the local side and the remote side
3.  For a header file in /usr/include (I tried stdlib.h and signal.h):
	a.  if I use the editor to open the header file (by left-clicking on the file in the editor and selecting "Open Declaration") - it opens the remote version (it works correctly).
	b.  If I use the Outline to open the header file (by clicking on the associated icon in the outline) - it opens the *local* version 

Also, in the Project Explorer, I see an "includes" pile after setting my remote paths.  If I expand "includes", I see the remote paths as folders.  
	a.  If I click on the arrow to open the folder of one of the remote-only paths (i.e., not /usr/include), the arrow rotates and disappears.  No folder entries are displayed.
	b.  If I click on the arrow to open the /usr/include, the arrow rotates and the files and folders are displayed from the *local* version.

Is this a bug?  If so, how can I open a ticket?

Thanks,
Dave
On Apr 14, 2011, at 2:45 PM, Greg Watson wrote:

> Have you tried rebuilding the the index? Right click on the project and select Index>Rebuild.
> 
> Greg
> 
> On Apr 14, 2011, at 12:00 PM, Jay Alameda wrote:
> 
>> Thanks, Dave.
>> 
>> I'm stumped - Chris, Beth, Greg, would you have any idea on what may be
>> going on here?
>> I have RSE installed as Dave does, as well as configured my connection via
>> remote tools - the only differences are that Dave is using a mac, while
>> I'm using win7, and that Dave is using gcc rather than my use of intel
>> compilers - but I have a hard time believing this is significant, as
>> really we are just using what is in the environment for a makefile build.
>> 
>> Jay
>> 
>> 
>> -----Original Message-----
>> From: ptp-user-bounces@xxxxxxxxxxx [mailto:ptp-user-bounces@xxxxxxxxxxx]
>> On Behalf Of David E Hudak
>> Sent: Thursday, April 14, 2011 10:55 AM
>> To: PTP User list
>> Subject: Re: [ptp-user] PTP and remote includes
>> 
>> 
>> On Apr 14, 2011, at 11:43 AM, Jay Alameda wrote:
>> 
>>> I'm puzzled, the case for which I'll paste is using the intel compiler,
>>> but I have a feeling this is not the cause of the issue - (intel vs gcc)
>> -
>>> 
>>> Maybe you can see something in my properties that is making it "work"
>>> versus your case, Dave.
>>> You are using remote tools, right?  
>> 
>> I have RSE installed, but have configured the project with Remote Tools.
>> 
>> Dave
>> 
>>> 
>>> (my properties follow:)
>>> 
>>> 
>>> <?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">
>>> <includepath>/usr/include</includepath>
>>> <includepath>/usr/local/openmpi-1.4.2-intel-11.1/include</includepath>
>>> 
>>> </language>
>>> <language name="GNU C++">
>>> <includepath>/usr/include</includepath>
>>> <includepath>/usr/local/openmpi-1.4.2-intel-11.1/</includepath>
>>> 
>>> </language>
>>> <language name="GNU C">
>>> <includepath>/usr/include</includepath>
>>> <includepath>/usr/local/openmpi-1.4.2-intel-11.1/include</includepath>
>>> 
>>> </language>
>>> <language name="Fortran">
>>> <includepath>/usr/include</includepath>
>>> <includepath>/usr/local/openmpi-1.4.2-intel-11.1/</includepath>
>>> 
>>> </language>
>>> </section>
>>> <section
>>> name="org.eclipse.cdt.internal.ui.wizards.settingswizards.Macros">
>>> <language name="holder for library settings">
>>> 
>>> </language>
>>> <language name="Assembly">
>>> 
>>> </language>
>>> <language name="GNU C++">
>>> 
>>> </language>
>>> <language name="GNU C">
>>> 
>>> </language>
>>> <language name="Fortran">
>>> 
>>> </language>
>>> </section>
>>> </cdtprojectproperties>
>>> 
>>> 
>>> -----Original Message-----
>>> From: ptp-user-bounces@xxxxxxxxxxx [mailto:ptp-user-bounces@xxxxxxxxxxx]
>>> On Behalf Of David E Hudak
>>> Sent: Thursday, April 14, 2011 10:07 AM
>>> To: PTP User list
>>> Subject: Re: [ptp-user] PTP and remote includes
>>> 
>>> 
>>> On Apr 14, 2011, at 11:02 AM, Jay Alameda wrote:
>>> 
>>>> 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 -
>>> 
>>> Right, it feels like eclipse knows to look locally prior to looking
>>> remotely, since /usr/include is the only path that exists on the client
>>> side as well as the remote side.  
>>> 
>>>> Where did you find the properties files?
>>> 
>>> In the Project Properties dialogue box, I selected "Remote Paths and
>>> Symbols".  There is an "Export Settings" button near the bottom of the
>>> window.
>>> 
>>> Dave
>>> 
>>>> 
>>>> 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
>>> 
>>> ---
>>> David E. Hudak, Ph.D.          dhudak@xxxxxxx
>>> Program Director, HPC Engineering
>>> Ohio Supercomputer Center
>>> http://www.osc.edu
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> 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
>> http://www.osc.edu
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 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
http://www.osc.edu











Back to the top