intel / intel/llvm

check_error not handle CUDA_ERROR_DEINITIALIZED?

Open
#7,654 2 comments 1 reaction 0 assignees View on GitHub
bug cuda
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

**Describe the bug**
The code in [pi_cuda.cpp](https://github.com/intel/llvm/blob/2022-09/sycl/plugins/cuda/pi_cuda.cpp) check_error

why the CUDA_ERROR_DEINITIALIZED return PI_SUCCESS ? Does it can correct free *ptr ? how to understand the CUDA_ERROR_DEINITIALIZED state to usm_free memory?

![image](https://user-images.githubusercontent.com/22990858/205854468-0256747b-50ae-4557-9662-8edbcafe9053.png)

**To Reproduce**

**Environment (please complete the following information):**

- OS: Linux
- Target device and vendor: Nvidia GPU
- DPC++ version: 2022-09
- Dependencies version: cuda-11.2

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.