 
         if (ptx_version > 120)                          // Don't check doubles on PTX120 or below because they're down-converted
             TestGen<double>           (num_items, num_segments);
+
     }
 
 #endif
 
     return 0;
 }
+

    int     *&h_reference_ranks,
    KeyT    *&h_reference_keys)
{
    Pair<KeyT, int> *h_pairs = new Pair<KeyT, int>[num_items];

    int num_bits = end_bit - begin_bit;
    for (int i = 0; i < num_items; ++i)

        h_reference_keys[i]     = h_keys[h_pairs[i].value];
    }

    if (h_pairs) delete[] h_pairs;
}


