-
Notifications
You must be signed in to change notification settings - Fork 15
Miscellaneous Tips
AminaJLi edited this page Oct 13, 2022
·
26 revisions
Miscellaneous tips for SLAC:
- Don't forget to include the
-XY
flag when logging in to SLAC! Without this, you won't be able to view the contents of ROOT files interactively through aTBrowser
- Use the
-j
flag when doingldmx make install
to expedite the process. A recommended setting is-j2
, but you could go higher. Do keep the setting below-j10
- If you find that
treeMaker.py
isn't cooperating when you try to submit some batch jobs, it's probably because the container can't findcellmodule.txt
orlibFramework.so
or both. To get around this, open uptreeMaker.py
and change lines 7 and 8 so that they use absolute file paths - Use the
bjobs
command to monitor the status of all of your batch jobs. Alternatively, usebpeek <JOB_ID>
to closely monitor the output of the job with the specified job ID - If you're submitting a particularly large batch job and you need more time/memory, use the
long
queue and increase-W
and-n
appropriately. Do limit the number of cores you use to a reasonable amount - If you absolutely must terminate all of your batch jobs, use
bkill 0
. Alternatively, usebkill <JOB_ID>
to just kill the job with the specified job ID
Miscellaneous tips for Docker:
- To use an environmental variable inside the container, add
-e YOURVARIABLE=value
to thedocker run
command. For the LDMX framework, thedocker run
command is bundled into the aliasldmx
. Search theldmx-env.sh
file fordocker run
and you can add your variable there. Make sure to sourceldmx-env.sh
after your changes.
Miscellaneous tips for Pod:
- Environmental variables are automatically used with the version of singularity on Pod. You just need to set the variable with
export YOURVARIABLE=value
.