M2G – sampler to compile and master