Welcome, Guest
Username: Password: Remember me

TOPIC: Problem launching a T3D case on a Linux cluster

Problem launching a T3D case on a Linux cluster 8 years 9 months ago #19821

  • chardacre
  • chardacre's Avatar
runRecollection:
|runGRETEL: Could not split your file T2DRES (runcode=2) with the error as follows:
|
|... The following command failed for the reason above (or below)
|/gpfs/stfc/local/HCP012/jjd66/cxh71-jjd66/v7p1r0/builds/encore/bin/gretel < gretel_T2DRES.par >> gretel_T2DRES.log

If I run "cat gretel_T2DRES.par" there isn't an end of line on the gretel_T2DRES.par, bt I don't know how this is generated.

-bash-4.1$ cat gretel_T2DRES.par
T2DGEO
SERAFIN
T2DRES
SERAFIN
16
0-bash-4.1$
The administrator has disabled public write access.

Problem launching a T3D case on a Linux cluster 8 years 9 months ago #19826

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

Could you try and rerun gretel manually by runnning the command:
/gpfs/stfc/local/HCP012/jjd66/cxh71-jjd66/v7p1r0/builds/encore/bin/gretel
And entering the values that where in gretel_T2DRES.par.
And see if that works.

Hope ti helps.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Problem launching a T3D case on a Linux cluster 8 years 9 months ago #19827

  • chardacre
  • chardacre's Avatar
Thanks

Yes if I corrected the end of line/EOF issue, and ran it manually it appeared to work.

Regards

Chris
The administrator has disabled public write access.

Problem launching a T3D case on a Linux cluster 8 years 9 months ago #19829

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Okay i'll check that in the python script.
If you want to correct this in your version in the file scripts/python27/runcode.py in the function runGretel (should be around line 794)

Replace
putFileContent('gretel_'+file+'.par',[geom,geoFormat,file,fileFormat,str(ncsize),str(nplan)])
By
putFileContent('gretel_'+file+'.par',[geom,geoFormat,file,fileFormat,str(ncsize),str(nplan),'\n'])

That should solve the problem.

Hope it helps
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Problem launching a T3D case on a Linux cluster 8 years 9 months ago #19830

  • chardacre
  • chardacre's Avatar
Ooh, very good, I'm assuming

"My work is done" is a good sign

Many Thanks
The administrator has disabled public write access.

Problem launching a T3D case on a Linux cluster 8 years 5 months ago #22028

  • kingja.x
  • kingja.x's Avatar
Hi Yugi,

I've managed to successfully compile v7p1r0 on my university Linux cluster but when I submit my job script I get the following error:

Traceback (most recent call last):
File "runcode.py", line 125, in <module>
import numpy as np
ImportError: No module named numpy

I only have a basic understanding of the system, when you say "Numpy is a dependencies so it is normal that Python is not working", what do you mean? Do you have any suggestions on how I can overcome my problem?

I have attached my jobscript and .cfg file for information.

Many thanks in advance!
Jon
Attachments:
The administrator has disabled public write access.

Problem launching a T3D case on a Linux cluster 8 years 5 months ago #22030

  • konsonaut
  • konsonaut's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 413
  • Thank you received: 144
Hello,

this means that on your cluster the numpy package is either not installed or you didn't load it.
First, you can check with "module avail" if numpy is installed. If so, then you can add in your shell script "module load numpyxx".
If it's not installed you should install it and load it.
Other solution, which I did some time ago, would be to turn off the numpy dependency in runcode.py by commenting out the line "import numpy as np". However I'm not sure anymore if this alone works.


Hope this helps,
Clemens
The administrator has disabled public write access.
The following user(s) said Thank You: kingja.x

Problem launching a T3D case on a Linux cluster 8 years 5 months ago #22032

  • kingja.x
  • kingja.x's Avatar
Thanks Clemens!

I've checked and it's not available so I'll get the administrators to install it.

In the meantime I'll try and turn of the dependency to see if that works.

Thanks again
Jon
The administrator has disabled public write access.

Problem launching a T3D case on a Linux cluster 8 years 5 months ago #22035

  • kingja.x
  • kingja.x's Avatar
Hi Clemens,

I commented out the numpy dependency but I then get the following error:

Traceback (most recent call last):
File "runcode.py", line 130, in <module>
from config import OptionParser,parseConfigFile,parseConfig_RunningTELEMAC
ImportError: No module named config

Any suggestions?

Thanks
Jon
The administrator has disabled public write access.

Problem launching a T3D case on a Linux cluster 8 years 5 months ago #22036

  • konsonaut
  • konsonaut's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 413
  • Thank you received: 144
Hm,

somehow Python doesn't find the Telemac Python directory which is in your case: /scratch/sce9jak/opentelemac/tags/v7p1r0/scripts/python27

You can try to add the follwing line in runcode.py: (somewhere below "import sys" and above "from config ..")

sys.path.append(path.join( path.dirname(sys.argv[0]), r'/scratch/sce9jak/opentelemac/tags/v7p1r0/scripts/python27'))

By the way, in your systel.cis-redhat.cfg which configuration do you use? Maybe in the shell script in the line where you launch the simulation you should add a flag, for example -c redhatopenmpi

Hope this helps,
Clemens
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.