Installing TAU Commander¶
TAU Commander needs Python 3.11.4 or newer. It installs into its own virtual environment with uv or pipx. Don’t install it into a Python environment you use for other work: when TAU Commander profiles Python code, packages in that environment could conflict with its own.
TAU Commander builds TAU and the packages it uses from source, so it needs C, C++ and Fortran
compilers, make, cmake and m4. Installing from a checkout of the source also needs git.
On Ubuntu:
sudo apt install gcc g++ gfortran make cmake m4 git
Most people want a Per-user install. In a Shared install, a system administrator installs TAU Commander once and builds TAU for all users. Either kind works without internet access after an Offline install.
Per-user install¶
Install TAU Commander from PyPI:
uv tool install taucmdr
or, with pipx:
pipx install taucmdr
Either one installs tau in ~/.local/bin. If that directory isn’t on your PATH,
uv tool update-shell (or pipx ensurepath) adds it. Then initialize a project in the directory
with your code:
cd /path/to/your/code
tau initialize
It is not necessary to configure anything ahead of time. The first time a project needs TAU or packages it depends upon, TAU Commander downloads and builds them, and later projects reuse them.
To install a development version, give the path of a checkout in place of taucmdr, e.g.
uv tool install /path/to/taucmdr.
To upgrade an installed TAU Commander, run uv tool upgrade taucmdr
(or pipx upgrade taucmdr).
Offline install¶
On a system without internet access, TAU Commander and its Python dependencies install from a directory of wheels, and TAU and the packages it builds come from a directory of source archives. You prepare both on a computer with internet access and copy them over.
On a computer with internet access:
Download TAU Commander and its dependencies. They’re pure Python, so one
wheelhouseworks on any platform with a supported Python:python3 -m pip download --dest wheelhouse taucmdr
Download the source archives of TAU and the packages it builds (about 1.2 GB) into
bundle.uvxruns the copy of TAU Commander inwheelhouse, so the archives match the version you’ll install:uvx --no-index --find-links wheelhouse --from taucmdr tau system fetch bundle
tau system fetchexits with an error if it couldn’t download an archive from any of its mirrors; run it again to retry.Copy
wheelhouse,bundleand theuvexecutable (which uv) to the other computer.
On the computer without internet access:
Ensure that Python 3.11.4 or newer is installed.
Install TAU Commander from the wheelhouse:
uv tool install --offline --no-index --find-links wheelhouse --python /usr/bin/python3.12 taucmdr
With pipx instead:
pipx install --python /usr/bin/python3.12 --pip-args="--no-index --find-links=wheelhouse" taucmdr
Add the source archives to a system prefix. For a shared install, follow Shared install with two changes. In step 2, install from the wheelhouse as in step 5 above, with
--pythonset to a Python that users can read. Before step 4, import the archives:tau system import bundle
For a per-user install, set
TAUCMDR_SYSTEM_PREFIXto a directory of your own and import the archives there. Set it in a startup file read by every shell so that scripts and batch jobs get it too:export TAUCMDR_SYSTEM_PREFIX=$HOME/taucmdr-system tau system import bundle