Skip to content
Kamil edited this page Dec 19, 2024 · 7 revisions

Error: Need MACH3 environment variable

Some functionalities rely on setting Env{MACH3} which should point to path experiment specific MaCh3. This way MaCh3 can easily find Env{MACH3}/inputs/SomeInput.root for example. Safest approach is to inlcude this in experiemnt specyfic cmake

This is example of T2K setup.MaCh3T2K.sh.in

export MACH3T2K_ROOT=@CMAKE_INSTALL_PREFIX@
export MACH3=@CMAKE_INSTALL_PREFIX@
export MaCh3T2K_VERSION=@MaCh3T2K_VERSION@

add_to_PATH "${MACH3T2K_ROOT}/bin"
add_to_LD_LIBRARY_PATH ${MACH3T2K_ROOT}/lib

Do I need GPU to use MaCh3

No, MaCh3 works with a CPU-only setup. In fact, MaCh3 is predominantly a CPU library. Only most performance intensive operations have GPU support at accelerate. We make rigorous checks to make sure the CPU and GPU produce the same results up to numeric precision.

Version

MaCh3 is version controled. You can find all realses here you can also find easily what changed in each version here

Code Structure

Structure