Correcting the number of threads and blocks for mahyar share function