Skip to content
Snippets Groups Projects
Commit ef365372 authored by Niklas Eiling's avatar Niklas Eiling
Browse files

cpu: fix using intrinsicts causing the search for kernel information to fail


this happened because nvcc adds an .nv.info entry for some intrinsics but does not add a section containing parameter infos.

Signed-off-by: Niklas Eiling's avatarNiklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
parent fa256e29
No related branches found
No related tags found
No related merge requests found
Pipeline #1198683 failed
......@@ -954,11 +954,20 @@ int elf2_parameter_info(list *kernel_infos, void* memory, size_t memsize)
LOGE(LOG_ERROR, "gelf_getsym failed for entry %d", entry->kernel_id);
continue;
}
if ((kernel_str = elf_strptr(elf, symtab_shdr.sh_link, sym.st_name) ) == NULL) {
LOGE(LOG_ERROR, "strptr failed for entry %d", entry->kernel_id);
continue;
}
/* When using (some?) intrinsics, nvcc adds symbols for them in the .nv.info table.
* They are prefixed with $__internal_7_$ and are not kernels. We skip them he
*/
const char *intrinsics_prefix = "$__internal_";
if (strncmp(kernel_str, intrinsics_prefix, strlen(intrinsics_prefix)) == 0) {
continue;
}
if (utils_search_info(kernel_infos, kernel_str) != NULL) {
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment