Update Sgen general compute code