Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-12300

[C++] ArrowCUDA erroneously links to CUDA Runtime while only using CUDA Driver API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0
    • C++

    Description

      As far as I can tell the Arrow GPU code only uses the CUDA driver API, but the CMake links it to the CUDA Runtime: https://github.com/apache/arrow/blob/apache-arrow-3.0.0/cpp/src/arrow/gpu/CMakeLists.txt#L39 (${CUDA_LIBRARIES} is defined via the CMake FindCUDA module here: https://cmake.org/cmake/help/latest/module/FindCUDA.html#result-variables)

      By default the static library for the CUDA Runtime will be used and things will get statically linked inside of the Arrow GPU library unnecessarily. Additionally, this can cause issues related to CUDA initialization as shown here: https://github.com/rapidsai/cudf/issues/7600

      Attachments

        Issue Links

          Activity

            People

              galipremsagar Prem Sagar Gali
              keith.j.kraus Keith Kraus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h