modified ISPC tutorial 0,1,2 to supprt rtcCommitThread