Comments (6)
I don't think so.
The allocated memory is added to a linked list called khrIcdVendors which presumably exists the whole time your application is up and running. If you look at the code there is only a function (khrIcdInitialize) to initialize but no way to free up the actual memory. Meaning it will be released by the operating system once the process exits.
from opencl-icd-loader.
Agree with @MichaelE1000. OpenCL API does not provide a clean deinitialization or exit point where to free these allocations. Using atexit() and similar hooks have ordering issues. I do not know of a good way to fix this apparent memory leak so it isn't going away anytime soon.
@rlim77 do you agree with the problem with your proposal? If you have another solution feel free to discuss. Otherwise I'm going to close this issue.
from opencl-icd-loader.
from opencl-icd-loader.
@rlim77 Yes, that's the summary.
from opencl-icd-loader.
@rlim77, did you hear back from your team?
from opencl-icd-loader.
from opencl-icd-loader.
Related Issues (20)
- Failed to get number of platforms on Mac Intel and Mac M1 HOT 2
- Improve FreeBSD Support HOT 3
- Please add OpenCL.pc so pkg-config can find this package
- difficulties building with 32-bit mingw-i686 HOT 5
- failed assert: len == (sizeof(cszLibraryName) - 1)
- handle update to macos github actions workflow HOT 1
- new CI failure related to Ubuntu gcc-11 HOT 2
- mingw build failed since commit 551a74d
- Support -fvisibility=hidden HOT 3
- Incorrect usage of LoadLibrary and string literal HOT 4
- do strings in the Windows resource file need a prefix HOT 1
- consider enabling some KHR_ICD_TRACE messages by default HOT 2
- Spack package HOT 5
- OpenCL installation on Ubuntu 20.04 HOT 3
- Error i stumbled upon HOT 1
- Sigverif.exe says opencl.dll is not signed HOT 2
- Broken static builds on Windows HOT 3
- missing clGetKernelSuggestedLocalWorkSizeKHR API?
- Consider CI Configurations with Different Calling Conventions
- Vendor & layer paths on Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencl-icd-loader.