# cudaFree

**URL:** <https://forums.developer.nvidia.com/t/cudafree/233378>\
**Category:** CUDA Programming and Performance\
**Created:** [November 10, 2022, 6:54am UTC](https://forums.developer.nvidia.com/t/cudafree/233378 "2022-11-10T06:54:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![1477957451](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1477957451](https://forums.developer.nvidia.com/u/1477957451)\
**Post date:** [November 10, 2022, 6:54am UTC](https://forums.developer.nvidia.com/t/cudafree/233378/1 "2022-11-10T06:54:40Z")

</div>

I have a question about the cuda function ‘cudaFree’  
When I try to reproduce a program about SpMV, it shows error bellow:  
'CUDA error at external/CSR5\_cuda/detail/cuda/format\_cuda.h:18 code=0(cudaSuccess) “cudaFree(d\_scan)” ’  
I run it on NVIDIA RTX 3090 Ti , Linux, CUDA 11.1  
The program is bellow:

> **[GitHub - SuperScientificSoftwareLaboratory/TileSpMV: Source code of the IPDPS...](https://github.com/SuperScientificSoftwareLaboratory/TileSpMV)**
>
> Source code of the IPDPS '21 paper: "TileSpMV: A Tiled Algorithm for Sparse Matrix-Vector Multiplication on GPUs" by Yuyao Niu, Zhengyang Lu, Meichen Dong, Zhou Jin, Weifeng Liu, and ...

---

<div class="post-metadata">

**Author:** ![njuffa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@njuffa](https://forums.developer.nvidia.com/u/njuffa)\
**Post date:** [November 10, 2022, 7:57am UTC](https://forums.developer.nvidia.com/t/cudafree/233378/2 "2022-11-10T07:57:52Z")

</div>

> [@1477957451](#):
>
> code=0( **cudaSuccess** ) “cudaFree(d\_scan)

(My **bolding** )  
This actually tells you that `cudaFree` succeeded and that there was no error.

---

<div class="post-metadata">

**Author:** ![1477957451](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@1477957451](https://forums.developer.nvidia.com/u/1477957451)\
**Post date:** [November 10, 2022, 8:00am UTC](https://forums.developer.nvidia.com/t/cudafree/233378/3 "2022-11-10T08:00:44Z")

</div>

Many thanks!
