Add cpu / gpu detection