Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] Git and synchronized projects

On Tuesday, July 02, 2013 12:00:08 "Dr. David E Hudak" <dhudak@xxxxxxx> wrote:

> Hi All,

>

> Am I allowed to use git for source control with a synchronized project in

> PTP 7?  

>

> Here is what is happening:

>         1.  I created a synchronized project.  

>         2.  I copied in my files and got it to build. 

>         3.  I right-clicked on the project in the Project Explorer and did

> "Team"-> "Share Project"->"Git" and created a local repository.  

> 4.  I staged my new files and committed them.

>         5.  I began editing my source file.

>         6.  I try to save my source file and I get a "Save As" dialog box

> that says: "The original file "helloheat_omp.c" has been deleted or is not

> accessible.  

>

> Any insight appreciated!

>

> Thanks,

> Dave

 

Dave,

 

I tried to recreate what you did, and I can confirm that I have problems as well - albeit different problems.

 

Here is what I did:

       1.  I created a synchronized project, pointing it to a directory that

already contained the files (Makefile, hello_par.c).

As usual, I am keeping my sources (= git tree) *outside* of the

eclipse workspace. And this directory exists locally.

2.  I right-clicked on the project in the Project Explorer and did

"Team"-> "Share Project"->"Git" and created a local repository

( .git directory in the same directory as Makefile, hello_par.c)

3. I staged my new files and committed them.

4. There are two build configurations, one for Gnu+OpenMPI,

one for Intel compiler (remote).

5. When I tried to compile locally, Eclipse would try to "cd" to

the remote directory, which doesn't exist locally and flag

an error.

6. For remote compile I was missing "Environment management".

How should I tell Eclipse where to look for the Intel compiler ?

7. I closed Eclipse and used "git status" and "gitk --all" for

investigating, what Egit has been doing.

=> The (local) .git repository seems OK

8. The synchronization looked OK.

 

Re-reading both posts (the original from Dr. David E Hudak and mine), it appears that there is a confusion about local and remote configurations.

--

 

Mit freundlichen Grüßen / Kind regards

 

Dr. Christoph Pospiech

High Performance & Parallel Computing

Phone: +49-351 86269826

Mobile: +49-171-765 5871

E-Mail: christoph.pospiech@xxxxxxxxxx

-------------------------------------------------------------------------------------------------------------------------------------------

IBM Deutschland GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter

Geschäftsführung: Martina Koederitz (Vorsitzende), Reinhard Reschke, Dieter Scholz, Gregor Pillen, Joachim Heel, Christian Noll

Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 14562 / WEEE-Reg.-Nr. DE 99369940

 


Back to the top