I have encountered one problem in linking remote machine.
Everything goes fine except the job query.
The cluster I am using is using slurm environment. So I changed the "llq" command in the ~/.machines.rc file. But terminal prompts "sh: squeue: command not found" when I type "chl".
Of course, the "llq" does not work also.
I appreciate if someone can help!
at the end of .machines.rc file #example for queueing system #llq -u | wc -l | awk ‘{print (-4)/2}’ + qit
squeue -u myaccount | wc -l | awk ‘{print (-4)/2}’ + qit
Thanks! Axel.
The problem solved when adding node command ahead.
The .machines.rc looks like this:
set waitbetweenpoll=60
echo 0.5 + none
node -r -s myaccount@cluster uptime | getvalue average + node -r -s myaccount@cluster
node -r -s myaccount@cluster squeue -u myaccount | wc -l | awk ‘{print (-4)/2}’ + qit
and the .ezvasp.rc
#!/bin/csh #enter name of vasp executable here
set VASPCMD="vasp-half >> vasp.log 2>&1"
set VASPCMD="node -r -s myaccount@cluster sbatch /tmp/myaccount/run-vasp " #enter the directories containing the pseudopotentials here
set POTLDA="/Users/myaccount/Documents/Programming/atat/glue/vasp/potential/LDA"
set POTGGA="/Users/myaccount/Documents/Programming/atat/glue/vasp/potential/GGA"
set POTPAWLDA="/software/apps/vasp/Potentials/5.2/PAW/LDA"
set POTPAWGGA="/software/apps/vasp/Potentials/5.2/PAW/PBE"
set POTPAWPBE="/software/apps/vasp/Potentials/5.2/PAW/PBE"
runstruct_vasp does copy the folder into cluster and submit the jobs, but it does not copy back anything. I haven’t figure out the problem. Do you have any suggestion?
the node command will attempt to copy files back after the batch is submitted, not after the commands in the batch file are completed (so there is nothing to copy back at that time). You would need a command that waits for the batch to complete.
You need only one of the two "node…" lines in your .machines.rc file.
you don’t need a "node" command in both .machines.rc and .ezvasp.rc
IMPORTANT: if you can compile and run atat on the machine with the queueing system, it would be a lot easier. You would just run maps with the batch script in the background (with a "&" after it) and pollmach in the foreground (without a .machine.rc file).
Your following statement is not clear to me: You would just run maps with the batch script in the background (with a "&" after it) and pollmach in the foreground (without a .machine.rc file)
Do I still need to have the following in the .ezvasp.rc file?
set VASPCMD="sbatch -n 24 -p cmd.q /home/msg/raviky/atat/v533.sh"
If yes, what is the sequence and option with which maps -d& and pollmach runstruct_vasp are executed at the command prompt?
If no, what set VASPCMD= should have?
What is my modified v533.sh?
What is the typical command sequence?
What is running maps with the batch script in the background and pollmach in the foreground.
(No .machine.rc file created)