Make the __shared__ array one dimensional