added custom function for amd, you can add your own dependencies