Logic sim in gpu with selecting device and 4M threads