add amd support provided by @orloffv, closes #19