Tim, If you didn’t write the makefile, then Eclipse wrote one for you – making it a “managed” build. Anyway, though, I think to be able to take advantage of the module you loaded, you will need to re-start Eclipse, as it is not possible to propagate an environment change that is made externally to Eclipse – to a running instance of Eclipse. I would recommend stopping Eclipse, and then starting it again, from the shell that has the right mpicc loaded (the one you did the module load in). Eclipse *should* inherit the environment you set, I know this works for remote builds, but have heard of a potential issue locally – let us know how this works. Jay From: ptp-user-bounces@xxxxxxxxxxx [mailto:ptp-user-bounces@xxxxxxxxxxx] On Behalf Of Timothy Stitt Sent: Wednesday, February 02, 2011 4:42 PM To: PTP User list Subject: Re: [ptp-user] Loading Modules and PTP Dear Jay...thanks for the quick reply. I was actually running Eclipse directly from the head-node (running remotely is my next challenge). I believe I am using a makefile build (I just created a default MPI hello world C program using the template that comes with PTP). Hope that answers your questions. I am happy to help test any solutions, so just let me know. On Feb 2, 2011, at 5:37 PM, Jay Alameda wrote:
Tim,
Are you launching Eclipse from the head node of your cluster, or are you using PTP's remote capabilities to contact the machine? Also, are you using a makefile build or a managed build. We are working on a strategy to make PTP work well with modules, this work is in a very preliminary stage at the moment - and your question is an excellent question to ask for sure!
Jay
-----Original Message----- From: ptp-user-bounces@xxxxxxxxxxx [mailto:ptp-user-bounces@xxxxxxxxxxx] On Behalf Of Timothy Stitt Sent: Wednesday, February 02, 2011 3:46 PM To: ptp-user@xxxxxxxxxxx Subject: [ptp-user] Loading Modules and PTP
Dear PTP users,
I have a question about clusters that use modules to change the user's environments and whether this is integrated with eclipse/PTP. For instance, I recently installed eclipse for the first time on our cluster and installed the PTP components. I tried to compile my first parallel project within PTP but I noticed through compile errors that I hadn't loaded my MPICH2 module environment (that automatically sets up MPI paths, wrappers etc.). A quick 'module load' later, I tried to recompile and again I experienced the 'mpicc not found' problem. On the command line, everything worked fine. I then restarted eclipse/PTP and everything compiled without a problem.
My question is, can module/environment changes be picked up within a PTP session without having to restart eclipse?
Apologies, if this has been answered before ad nauseam. Thanks in advance.
Tim.
_______________________________________________ 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 Tim Stitt PhD (User Support Manager). Center for Research Computing | University of Notre Dame | P.O. Box 539, Notre Dame, IN 46556 | Phone: 574-631-5287 | Email: tstitt@xxxxxx |