Skip to main content

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

FYI for the list.  Creating the script did, indeed work.  Note that I did have to source my bashrc in order to pick up my default modules on our cluster.  

dhudak@opt0011 516%> cat buildme 
#!/bin/bash
source ~/.bashrc
source ../../set_environ-gnu
make clean
make

Thanks,
Dave
On Apr 12, 2011, at 2:38 PM, David E Hudak wrote:

On Apr 12, 2011, at 2:22 PM, Greg Watson wrote:

Dave,

Currently the only way to do this is to change the build command (in the project properties) from "make" to the name of a script, then put the modules and make command in the script on the remote machine. You could have one of these scripts for each set of modules you want to load (or make it an argument to the script). Then you would just need to change the property to build with the different modules.

Yes, that is what it looked like to me.  But it is nice to get confirmation.  

Thanks!
Dave


In the new (5.0) version you will be able to create multiple build configurations each of which could run a different script. Then you could switch environment by simply using the appropriate configuration when you build the project.

Regards,
Greg

On Apr 12, 2011, at 2:09 PM, David E Hudak wrote:

So, let's say that a user has a set of default modules that are loaded on login (when you ssh to a login node).

Then, the user does some combination of module unload/module load to set their environment, then runs make.

How would the same thing (the customization of a remote environment) be done for a remote build on an unmanaged project?

Thanks,
Dave
On Feb 2, 2011, at 5:56 PM, Jay Alameda wrote:

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.
 
Cheers,
 
Tim.
 
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 
 
_______________________________________________
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









_______________________________________________
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









_______________________________________________
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