[libc-commits] [libc] 10b4834 - [libc] Fix wrong printf usage in AMDGPU loader

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed Jul 17 14:35:24 PDT 2024


Author: Joseph Huber
Date: 2024-07-17T16:34:47-05:00
New Revision: 10b4834b76e0473eee3eb70490dd39366589534d

URL: https://github.com/llvm/llvm-project/commit/10b4834b76e0473eee3eb70490dd39366589534d
DIFF: https://github.com/llvm/llvm-project/commit/10b4834b76e0473eee3eb70490dd39366589534d.diff

LOG: [libc] Fix wrong printf usage in AMDGPU loader

Added: 
    

Modified: 
    libc/utils/gpu/loader/amdgpu/Loader.cpp

Removed: 
    


################################################################################
diff  --git a/libc/utils/gpu/loader/amdgpu/Loader.cpp b/libc/utils/gpu/loader/amdgpu/Loader.cpp
index a9ce36194d94d..8cf6ea5dc9aec 100644
--- a/libc/utils/gpu/loader/amdgpu/Loader.cpp
+++ b/libc/utils/gpu/loader/amdgpu/Loader.cpp
@@ -125,8 +125,8 @@ hsa_status_t get_agent(hsa_agent_t *output_agent) {
   return iterate_agents(cb);
 }
 
-void print_kernel_resources(char *kernel_name) {
-  fprintf("Kernel resources on AMDGPU is not supported yet.\n");
+void print_kernel_resources(const char *kernel_name) {
+  fprintf(stderr, "Kernel resources on AMDGPU is not supported yet.\n");
 }
 
 /// Retrieve a global memory pool with a \p flag from the agent.


        


More information about the libc-commits mailing list