Commit 8831bce1 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed Partitioner::getOwner

parent 42e9ee46
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ public:
   __cuda_callable__
   static int getOwner( Index i, Index globalSize, int partitions )
   {
      return i * partitions / globalSize;
      return min( partitions - 1, i / (globalSize / partitions) );
   }

   // Gets the offset of data for given rank.