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

[C++][Plasma] GpuProcessHandle is not released when GPU object deleted

    XMLWordPrintableJSON

Details

    Description

      cpp/CMakeLists.txt
        option(ARROW_CUDA "Build the Arrow CUDA extensions (requires CUDA toolkit)" ON)
        option(ARROW_PLASMA "Build the plasma object store along with Arrow" ON)

      In the plasma client, GpuProcessHandle is never released although GPU object is deleted.
      Thus, cuIpcCloseMemHandle is never called.
      When I repeatly creat and delete gpu memory, the following error may occur.

      IOError: Cuda Driver API call in /home/zilliz/arrow/cpp/src/arrow/gpu/cuda_context.cc at line 155 failed with code 208: cuIpcOpenMemHandle(&data, *handle, CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS)

      Note: CUDA_ERROR_ALREADY_MAPPED = 208

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              shengjun.li shengjun.li
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 40m
                  1h 40m