mocha with amd