added yield statements inside critical loop
added yield statements inside critical loop

NVlabs/nvbio,kimrutherford/nvbio,kimrutherford/nvbio,NVlabs/nvbio,NVlabs/nvbio,kimrutherford/nvbio,kimrutherford/nvbio,NVlabs/nvbio