This is an old revision of the document!
Table of Contents
Cluster Software
The list of currently installed software on the cluster. If you wish to have additional software installed, please email econcluster@umd.edu.
Currently updating to reflect new OS refresh. –2024/11/11 bpmcln
Software | Version | Terminal Command |
---|---|---|
GCC | 11.4.1 | gcc |
Matlab | R2023a | matlab |
Python | 3.9 | python |
R | 4.4.2 | R |
Stata | 18 MP8 | stata-mp |
Python
To run a pre-written python script, type
python script.py
Installing Libraries via VENV
To install a library that doesn't come with the initial installation, you first need to create a virtual environment (where $NAME is what you choose to name your virtual environment)
python -m venv $NAME
after creating, activate the environment
source environment_name/bin/activate
(you should now see the environment on the far left of the terminal line). After that, you can simply install any library using pip from the command line
pip install pandas
Stata
Running Stata on the Cluster
You can also run a .do file in batch mode with
stata-mp -b do dofile.do
To allow your do-file to continue running when you log off from your terminal, preface the command with “nohup”. For example:
nohup stata-mp -b do dofile.do &
For more information on how to run your Stata command in the background, see Managing Jobs
Temporary Files
By default, Stata saves tempfiles (from -tempfile- or -preserve-) to /nfs/home/$USERNAME/stata-tmp/. If you would like Stata to save temporary files in a new location (e.g. $HOME/statatmp) then from the command-line execute the follow before executing Stata:
export STATATMP=$HOME/statatmp
One reason you might want to do this is that files are removed from /home/stata-tmp/ if they haven't been touched for a day. If you have a Stata process that runs for longer this may cause problems with reading from tempfiles or -restore-.
Installing Extra Packages
If you are using extra packages on your home/work computer and need them installed on the cluster, you can install them via ssc:
ssc install outreg
You will then have a folder installed within your home directory called “ado”, which contains your new commands filed away.