amd support
fixing params bug and updating example
merge