shengjun.li created ARROW-5285:
----------------------------------

             Summary: [C++][Plasma] never call cuIpcCloseMemHandle before GPU 
memory distorted
                 Key: ARROW-5285
                 URL: https://issues.apache.org/jira/browse/ARROW-5285
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
    Affects Versions: 0.13.0
            Reporter: shengjun.li
             Fix For: 0.14.0


When GPU memory created, cuIpcOpenMemHandle is called.
But when GPU memory distorted, cuIpcCloseMemHandle is never called.

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)


Repeatly creat and delete gpu memory, the following error may occur.
error: 5 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to