Parallel Shell scripts to execute using LAM??
Guys i want to know whether we can write a shell script which can utilize 2 CPU's of a cluster...I heard its possible through C Shell ( Ref : http://www.gnu-darwin.org/gdc/ccp4/parallelization/ ) But im familiar with bourne shell only....So is there a possibility to write Parallel Scripts..Expecting ur Answer.....:newbie:
|
You can be interested in "PPSS - Parallel Processing Shell Script". It is a single bash script spawning multiple threads on multiple cores.
|
My Case
I have a doubt again...I already heard about PPSH script..Guess it was written to utilize the multicores...In my case i have build a beowulf cluster which is originally 2 Cpu's but virtually a single CPU...Plus i use a live distro to setup my cluster..So not sure how the script will detect it? (May be as Single Cluster CPU or as Single Node)...Ur Suggestions Guys?
|
Indeed, looking at the source code, the script ppss.sh has a weak method to retrieve the number of CPUs:
Code:
cat /proc/cpuinfo | grep "cpu cores" | cut -d ":" -f 2 | uniq | sed -e s/\ //g |
Quote:
I'm the author of PPSS and I'd like to inform you that this bug has been fixed, in my opinion in the new (distributed) version of PPSS. If you find such bugs in the future, it would be a great help if an issue is created at the website of ppss. http://code.google.com/p/ppss With regards. |
Nice to meet you, Louwrentius. Indeed I was too focused on replying to this thread and did not think about reporting a bug to the developer's site. I will accomplish in the future. Thank you.
|
Quote:
|
All times are GMT -5. The time now is 04:37 PM. |