           typename multimap_type,
           typename key_type,
           typename size_type,
-          typename index_type,
+          typename output_index_type,
           size_type block_size,
           size_type output_cache_size>
 __global__ void probe_hash_table( multimap_type const * const multi_map,
                                   gdf_table<size_type> const & build_table,
                                   gdf_table<size_type> const & probe_table,
                                   const size_type probe_table_num_rows,
-                                  index_type * join_output_l,
-                                  index_type * join_output_r,
+                                  output_index_type * join_output_l,
+                                  output_index_type * join_output_r,
                                   size_type* current_idx,
                                   const size_type max_size,
                                   bool flip_results,

    const auto unused_key = multi_map->get_unused_key();
    const auto end = multi_map->end();

    // Search the hash map for the hash value of the probe row
    const hash_value_type probe_row_hash_value{probe_table.hash_row(probe_row_index)};
    auto found = multi_map->find(probe_row_hash_value,
                                 true,
                                 probe_row_hash_value);

    bool running = (join_type == JoinType::LEFT_JOIN) || (end != found); // for left-joins we always need to add an output
    bool found_match = false;
#if defined(CUDA_VERSION) && CUDA_VERSION >= 9000
    while ( __any_sync( activemask, running ) )


    while( i < build_table_num_rows ) {

      // Compute the hash value of this row
      const hash_value_type row_hash_value{build_table.hash_row(i)};

      // Insert the (row hash value, row index) into the map
      // using the row hash value to determine the location in the 
      // hash map where the new pair should be inserted
      multi_map->insert( thrust::make_pair( row_hash_value, i ),
                         true,
                         row_hash_value );
