skip to main content
research-article

Coherent parallel hashing

Published:12 December 2011Publication History
Skip Abstract Section

Abstract

Recent spatial hashing schemes hash millions of keys in parallel, compacting sparse spatial data in small hash tables while still allowing for fast access from the GPU. Unfortunately, available schemes suffer from two drawbacks: Multiple runs of the construction process are often required before success, and the random nature of the hash functions decreases access performance.

We introduce a new parallel hashing scheme which reaches high load factor with a very low failure rate. In addition our scheme has the unique advantage to exploit coherence in the data and the access patterns for faster performance. Compared to existing approaches, it exhibits much greater locality of memory accesses and consistent execution paths within groups of threads. This is especially well suited to Computer Graphics applications, where spatial coherence is common. In absence of coherence our scheme performs similarly to previous methods, but does not suffer from construction failures.

Our scheme is based on the Robin Hood scheme modified to quickly abort queries of keys that are not in the table, and to preserve coherence. We demonstrate our scheme on a variety of data sets. We analyze construction and access performance, as well as cache and threads behavior.

References

  1. Alcantara, D. A., Sharf, A., Abbasinejad, F., Sengupta, S., Mitzenmacher, M., Owens, J. D., and Amenta, N. 2009. Real-time parallel hashing on the GPU. ACM Transactions on Graphics (Proc. ACM SIGGRAPH Asia) 28, 5. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Alcantara, D. A., Volkov, V., Sengupta, S., Mitzenmacher, M., Owens, J. D., and Amenta, N. 2011. Building an efficient hash table on the GPU. In GPU Computing Gems, W.-m. W. Hwu, Ed., vol. 2. Morgan Kaufmann, ch. 1.Google ScholarGoogle Scholar
  3. Botelho, F. C., and Ziviani, N. 2007. External perfect hashing for very large key sets. In Proceedings of the sixteenth ACM Conference on Conference on Information and Knowledge Management, ACM, CIKM '07, 653--662. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Celis, P. 1986. Robin Hood Hashing. PhD thesis, University of Waterloo, Ontario, Canada. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Devroye, L., Morin, P., and Viola, A. 2004. On worst-case robin hood hashing. SIAM Journal on Computing 33, 923--936.Google ScholarGoogle ScholarCross RefCross Ref
  6. Lefebvre, S., and Hoppe, H. 2006. Perfect spatial hashing. ACM Transactions on Graphics (Proc. ACM SIGGRAPH) 25, 3, 579--588. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Linial, N., and Sasson, O. 1996. Non-expansive hashing. In Proceedings of the twenty-eighth annual ACM Symposium on Theory of Computing, ACM, STOC '96, 509--518. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Pagh, R., and Rodler, F. F. 2004. Cuckoo hashing. Journal of Algorithms 51, 2, 122--144. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Peterson, W. W. 1957. Addressing for random-access storage. IBM Journal of Research and Development 1, 2, 130--146. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Coherent parallel hashing

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image ACM Transactions on Graphics
      ACM Transactions on Graphics  Volume 30, Issue 6
      December 2011
      678 pages
      ISSN:0730-0301
      EISSN:1557-7368
      DOI:10.1145/2070781
      Issue’s Table of Contents

      Copyright © 2011 ACM

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 12 December 2011
      Published in tog Volume 30, Issue 6

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader