[libc-commits] [libc] [libc] Add Kernel Resource Usage to nvptx-loader (PR #97503)
LLVM Continuous Integration via libc-commits
libc-commits at lists.llvm.org
Wed Jul 17 14:19:46 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `libc` at step 5 "compile-openmp".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/2053
Here is the relevant piece of the build log for the reference:
```
Step 5 (compile-openmp) failure: build (failure)
...
0.532 [3626/14/592] Linking CXX static library lib/libLibcTableGenUtil.a
0.532 [3625/14/593] Linking CXX static library lib/libllvm_gtest_main.a
0.532 [3625/13/594] Linking CXX static library lib/libLLVMDebugInfoCodeView.a
0.608 [3625/12/595] Linking CXX executable bin/UnicodeNameMappingGenerator
0.618 [3625/11/596] Linking CXX executable bin/split-file
0.642 [3625/10/597] Linking CXX executable bin/not
0.644 [3625/9/598] Linking CXX executable bin/reduce-chunk-list
0.648 [3625/8/599] Linking CXX executable bin/yaml-bench
0.668 [3625/7/600] Linking CXX executable bin/llvm-undname
0.675 [3625/6/601] Building CXX object projects/libc/utils/gpu/loader/amdgpu/CMakeFiles/amdhsa-loader.dir/Loader.cpp.o
FAILED: projects/libc/utils/gpu/loader/amdgpu/CMakeFiles/amdhsa-loader.dir/Loader.cpp.o
ccache /usr/bin/c++ -DLIBC_COPT_ARRAY_ARG_LIST -DLIBC_COPT_PRINTF_DISABLE_INDEX_MODE -DLIBC_COPT_PRINTF_DISABLE_WRITE_INT -DLIBC_COPT_USE_C_ASSERT -DLIBC_NAMESPACE=__llvm_libc_19_0_0_git -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/projects/libc/utils/gpu/loader/amdgpu -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/include -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc -I/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/server -isystem /opt/rocm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -UNDEBUG -Wno-attributes -std=c++17 -MD -MT projects/libc/utils/gpu/loader/amdgpu/CMakeFiles/amdhsa-loader.dir/Loader.cpp.o -MF projects/libc/utils/gpu/loader/amdgpu/CMakeFiles/amdhsa-loader.dir/Loader.cpp.o.d -o projects/libc/utils/gpu/loader/amdgpu/CMakeFiles/amdhsa-loader.dir/Loader.cpp.o -c /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp: In function ‘void print_kernel_resources(char*)’:
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp:129:11: error: cannot convert ‘const char*’ to ‘FILE*’ {aka ‘_IO_FILE*’}
129 | fprintf("Kernel resources on AMDGPU is not supported yet.\n");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const char*
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/Loader.h:19,
from /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp:16:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:98:27: note: initializing argument 1 of ‘int fprintf(FILE*, const char*, ...)’
98 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~^~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp: In instantiation of ‘hsa_status_t launch_kernel(hsa_agent_t, hsa_executable_t, hsa_amd_memory_pool_t, hsa_amd_memory_pool_t, hsa_queue_t*, rpc_device_t, const LaunchParameters&, const char*, args_t, bool) [with args_t = begin_args_t; hsa_agent_t = hsa_agent_s; hsa_executable_t = hsa_executable_s; hsa_amd_memory_pool_t = hsa_amd_memory_pool_s; hsa_queue_t = hsa_queue_s; rpc_device_t = rpc_device_s]’:
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp:559:71: required from here
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp:279:28: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
279 | print_kernel_resources(kernel_name);
| ^~~~~~~~~~~
| |
| const char*
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp:128:35: note: initializing argument 1 of ‘void print_kernel_resources(char*)’
128 | void print_kernel_resources(char *kernel_name) {
| ~~~~~~^~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp: In instantiation of ‘hsa_status_t launch_kernel(hsa_agent_t, hsa_executable_t, hsa_amd_memory_pool_t, hsa_amd_memory_pool_t, hsa_queue_t*, rpc_device_t, const LaunchParameters&, const char*, args_t, bool) [with args_t = start_args_t; hsa_agent_t = hsa_agent_s; hsa_executable_t = hsa_executable_s; hsa_amd_memory_pool_t = hsa_amd_memory_pool_s; hsa_queue_t = hsa_queue_s; rpc_device_t = rpc_device_s]’:
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp:565:66: required from here
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp:279:28: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
279 | print_kernel_resources(kernel_name);
| ^~~~~~~~~~~
| |
| const char*
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp:128:35: note: initializing argument 1 of ‘void print_kernel_resources(char*)’
128 | void print_kernel_resources(char *kernel_name) {
| ~~~~~~^~~~~~~~~~~
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp: In instantiation of ‘hsa_status_t launch_kernel(hsa_agent_t, hsa_executable_t, hsa_amd_memory_pool_t, hsa_amd_memory_pool_t, hsa_queue_t*, rpc_device_t, const LaunchParameters&, const char*, args_t, bool) [with args_t = end_args_t; hsa_agent_t = hsa_agent_s; hsa_executable_t = hsa_executable_s; hsa_amd_memory_pool_t = hsa_amd_memory_pool_s; hsa_queue_t = hsa_queue_s; rpc_device_t = rpc_device_s]’:
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp:586:71: required from here
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/libc/utils/gpu/loader/amdgpu/Loader.cpp:279:28: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
279 | print_kernel_resources(kernel_name);
```
https://github.com/llvm/llvm-project/pull/97503
More information about the libc-commits
mailing list