compile PA torch