Asian shares gain on stronger US tech stocks