added conditional amd support