virophysics
|
Virophysics HOWTOsListed here are info, scripts, and files for a few of the resources commonly used by members of the Virophysics group: LaTeXIn the Virophysics group, all research write-ups (papers, posters, slide presentations) are done in LaTeX. Here are a few useful resources. First, you should buy yourself the wonderful Guide to LaTeX by Kopka and Daly. When you don't have it handy, you can consult the online Wikibook on LaTeX which is a very complete online LaTeX resource. If you can't remember the LaTeX code for a particular symbol, then the most awesome tool is detexify which allows you to draw the symbol (with your mouse or stylus) and it will give you the LaTeX command for it. If you're getting started and you'd like info that is more substantial than what I have here, you should check out Shawn Lankton's LaTeX page. Compiling LaTeX documentsWhen compiling your documents, if you are sick of having to type pdflatex myfile.tex; bibtex myfile; pdflatex myfile.tex, etc. every time you compile your LaTeX document, you will find the following very useful. It is a rule file, called LaTeX.Rules allowing you to define a Makefile for compiling LaTeX documents, and replacing the repetitive typing of the above commands with just make. In the directory where myfile.tex is located, you create a Makefile containing the following lines:
and you can now type make and it will take care of the rest. You can read more about it on the developer/maintainer's page HERE. Ryerson thesis document classTo make things simpler for undergraduate and graduate students alike, I developed a Ryerson Thesis Document Class (RUthesis.cls) which is based on a class developed by several generation of UofAlberta students. You can look at a sample undergraduate or graduate thesis, or you can download the files that were used to produce these examples (ugrad-thesis.tar.bz2 and grad-thesis.tar.bz2), or you can browse all the files here. I have also recently learned someone else at Ryerson has developed a thesis class: check it out here. Slide presentationsFor slide presentations, there are several options. My personal favorite is pdfscreen, but the most popular one now is probably beamer. Just Google those up and you'll find examples and tutorials for both. Posters
For posters, I have looked around and there are a few options, but none was quite what I needed so I made my own stylesheet: pdfposter.sty. It is actualy a modified version of something I found a long time ago on someone else's site. It is based on the LaTeX article class, it is flexible in that you can adjust the aspect ratio and the number of columns of textboxes, and it works with pdflatex. Here is an example poster:
You can download the actual PDF poster, pdfposter.pdf, or get the full source needed to reproduce the poster, pdfposter.tar.bz2, or even browse the directory containing all the necessary files here. The source code actually produces a PDF that is 12" wide by 16" high (as specified using \postersize{12in}{16in}). What I typically need is a poster that is 3 feet wide by 4 feet high (36" x 48") and this is done by rescaling the poster at printing time through the "Page setup..." or "Print setup..." menu when printing from your favorite PDF viewer/editor. Phymbie bootcampThis set of exercise is meant to prepare you for the set of tasks that come up a lot when you work in the Virophysics group, namely using pythong for model-solving and data fitting with scipy and numpy, data plotting with (matplotlib), and reporting results in (LaTeX).It might be worth first spending some time getting your computer setup to use python (scipy, numpy, matplotlib) and LaTeX. Note that both python and LaTeX are available for Windows, Mac and Linux. If you're going all out, I would recommend you install a debian-based operating system (Debian, Ubuntu/Kubuntu, Minty) on your computer because your work computer in the Virophysics group will only be running debian-testing. If you decide to go this route, be sure to install all of these packages (the file lists their Debian name: name might be different for other distributions). Now, get familiar with these tools by going through a set of things we do commonly:
By the way, if you would like to familiarize yourself with basic bash commands, you could check out this online tutorial. Using HTCondor on phymbie computersOn the phymbie installation of HTCondor, dororo is the Central Manager (which matches submitted jobs to execute machines) and the only Submit machine (where users log in to submit and check on their jobs).Submitting jobs
Say you normally run your code as
where
This actually submits 2 runs (creates 2 HTCondor
except that now HTCondor will decide what computers will be used to run your 2 processes and will report on the status of both in the file
HTCondor does not check that your run uses only or all of the CPUs it requested. If you submit a request for 8 CPUs, but your run spawns 12 threads, the run will still launch when an 8-slot machine becomes available and will still spawn 12 threads/processes. Generally, for our types of code, it's best to spawn more threads (i.e. pools or processes) than the computer has. Generally, you should also under-request the actual # of CPUs you need, e.g. if your code uses 4 threads most of the time, but sometimes needs 8 threads, you should request just 4, i.e. it's better to over-work the CPUs than to leave them unused. Checking on your jobs
In addition to the
You can type these and see what you get. In More questions?For full information about using HTCondor, checkout the project's Quick Start Guide, User Manual, and HowTo recipies.Last modified: December 03, 2020, 21:24. Webmaster: |