torque

PBS programming

廉价感情. 提交于 2020-01-05 14:06:44
问题 some short and probably stupid questions about PBS: 1- I submit jobs using qsub job_file is it possible to submit a (sub)job inside a job file? 2- I have the following script: qsub job_a qsub job_b For launching job_b, it would be great to have before the results of job_a finished. Is it possible to put some kind of barrier or some otehr workaround so job_b is not launched until job_a finished? Thanks 回答1: Answer to the first question: Typically you're only allowed to submit jobs from the

PBS programming

醉酒当歌 提交于 2020-01-05 14:06:29
问题 some short and probably stupid questions about PBS: 1- I submit jobs using qsub job_file is it possible to submit a (sub)job inside a job file? 2- I have the following script: qsub job_a qsub job_b For launching job_b, it would be great to have before the results of job_a finished. Is it possible to put some kind of barrier or some otehr workaround so job_b is not launched until job_a finished? Thanks 回答1: Answer to the first question: Typically you're only allowed to submit jobs from the

Check real time output after qsub a job on cluster

这一生的挚爱 提交于 2020-01-03 03:06:15
问题 Here is my pbs file: #!/bin/bash #PBS -N myJob #PBS -j oe #PBS -k o #PBS -V #PBS -l nodes=hpg6-15:ppn=12 cd ${PBS_O_WORKDIR} ./mycommand On qsub documentation page, it seems like if I put the line PBS -k o , I should be able to check the real time output in a file named myJob.oJOBID in my home dir. However when I check the output by tail -f or cat or more in runtime, it shows nothing in the file. Only when I terminated the job, then the file would show the output. Is there anything I should

How fast can one submit consecutive and independent jobs with qsub?

那年仲夏 提交于 2020-01-01 03:36:05
问题 This question is related to pbs job no output when busy. i.e Some of the jobs I submit produce no output when PBS/Torque is 'busy'. I imagine that it is busier when many jobs are being submitted one after another, and as it so happens, of the jobs submitted in this fashion, I often get some that do not produce any output. Here're some codes. Suppose I have a python script called "x_analyse.py" that takes as its input a file containing some data, and analyses the data stored in the file: ./x

sleep command not found in torque pbs but works in shell

余生颓废 提交于 2019-12-24 13:02:24
问题 We create a torque pbs file " testpbs " as follows: #!/bin/sh #PBS -N T1272_flt #PBS -q batch #PBS -l nodes=1:ppn=1 #PBS -o /data/software/torque-4.2.6.1/testpbs.sh.out #PBS -e /data/software/torque-4.2.6.1/testpbs.sh.err sleep 20 Then submitted the file testbps. qsub testpbs We got error messages: more testpbs.sh.err /var/spool/torque/mom_priv/jobs/8.centos64.SC: line 9: sleep: command not found However, we ran sleep 20 in command line. No error occurs. $sleep 20 Thanks in advance. We ran

Loading shared library in open-mpi/ mpi-run

二次信任 提交于 2019-12-21 17:23:05
问题 I'm trying to run my program using torque scheduler using mpi run. Though in my pbs file I load all the library by export LD_LIBRARY_PATH=/path/to/library yet it gives error i.e. error while loading shared libraries: libarmadillo.so.3: cannot open shared object file: No such file or directory. I guess error lies in variable LD_LIBRARY_PATH not set in all the nodes. How would I make it work? 回答1: LD_LIBRARY_PATH is not exported automatically to MPI processes, spawned by mpirun . You should use

How to return to bash prompt after printing output from backgrounded function?

≡放荡痞女 提交于 2019-12-18 10:56:15
问题 How can I return to my bash prompt automatically after printing output from a function that was put in the background? For example, when I run the following script in a bash shell: fn(){ sleep 10 echo "Done" exit } fn & After running the script, it immediately returns my prompt. After 10 seconds, it prints "Done" and then displays a blinking cursor on a new line: $ Done ▏ The script isn't running anymore, but I don't get my prompt back until I press Return . Is there any way to force a return

Does a PBS batch system move multiple serial jobs across nodes?

给你一囗甜甜゛ 提交于 2019-12-12 10:56:47
问题 If I need to run many serial programs "in parallel" (because the problem is simple but time consuming - I need to read in many different data sets for the same program), the solution is simple if I only use one node . All I do is keep submitting serial jobs with an ampersand after each command, e.g. in the job script: ./program1 & ./program2 & ./program3 & ./program4 which will naturally run each serial program on a different processor. This works well on a login server or standalone

Initialization of obd adapter

╄→гoц情女王★ 提交于 2019-12-12 09:03:29
问题 I am developing a android application which reads Obd data from vehicle's Obd adapter via bluetooth... I am facing issue while initializing the adapter. I have sent following Obd commands in sequence to initialize the obd : atz (received OK) atsp0 (Received OK) ate0 (Received OK) 0100 (This is the part where issue occurs)... Some times for this command i receive BUSINIT:ERROR.. And after that for every vehicle command (except AT commands) same error is repeated.. I want to know the Exact

Why Torque qsub don't create output file?

好久不见. 提交于 2019-12-11 04:17:30
问题 I trying start task on cluster via Torque PBS with command qsub -o a.txt a.sh File a.sh contain single string: hostname After command qsub I make qstat command, that give next output: Job ID Name User Time Use S Queue ------------------------- ---------------- --------------- -------- - ----- 302937.voms a.sh user 00:00:00 E long After 5 seconds command qstat return empty output (no jobs in queue). Command qsub --version give output: version: 2.5.13 Command which qsub Output: /usr/bin/qsub