fixing compile warning size_t->unsigned int
added GENCODE_SM21, per Mark Harris
removed unnecessary global synchronizations