update GPU and thread manager.
merged with dev