-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting a number of CPU cores on PBS_pro #1912
Comments
Job configuration in canu is pretty messy. Canu wants to do it all itself, telling the various binaries explicitly how many cores and how much memory to use. The code in Canu gets its max memory/thread limits (when not using a grid) from getNumberOfCPUs() and getPhysicalMemorySize() in The other way is to set |
That would be excellent, I can recompile from |
BTW, ideally improve the following output to show the variable names and their respective values:
It is probably about |
…hat for configuration when running in non-grid mode. Issue #1912.
I think canu could try to use somewhere the following, which works for me
Probably you can come up with a syntax to call the I see |
Added PBS_NCPUS (PBS_NUM_PPN was already there) and PBS_RESC_MEM. I can't find any documentation on the Torque variant - and only spotty documentation on the PBS variables. |
Hi,
when rerunning a canu-2.1.1 job on a different machine I realized that canu is picking up the number of total CPU cores locally available instead of respecting what I have reserved through the queing system. Here is how I started the job:
It picked 504 CPU cores and 10TB of RAM although I have in the environment:
I see some code in
canu/src/utility/src/utility/system.C
but although in comments there are more PBS_pro variables mentioned, onlyPBS_NUM_PPN
is looked up (in theory).Could it be that this code is neglected altogether because I started canu with
useGrid=false
? That's bad. I just wanted to avoid submitting childs jobs into the queing system but of course, I expected canu to understand it is being run under a job scheduling system anyway on an exec host picked by me, and respect its limits (6TB RAM and only 240 CPUs).The text was updated successfully, but these errors were encountered: