[libc] Free the GPU memory allocated in the device loaders
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 3 Apr 2023 16:54:48 +0000 (11:54 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 3 Apr 2023 16:55:32 +0000 (11:55 -0500)
commitdfc162ad3fcb9636685ee99360cb1c4f5a56cd6b
treee830e99df26577cdf2fd75fcaea1e99c962466fd
parentd891968f10c42568b2c5d19fa22802ee85d2bd7d
[libc] Free the GPU memory allocated in the device loaders

Summary:
This part was ignored and we just hoped that shutting down the runtime
freed these correctly. But it's best to be specific and free the memory
we've allocated.
libc/utils/gpu/loader/amdgpu/Loader.cpp
libc/utils/gpu/loader/nvptx/Loader.cpp