Skip to content

Commit 43f2921

Browse files
authored
[SYCL][HIP] Add missing piProgramLink stub (#4933)
This entry point is not supported at the moment so it will just assert. However that is more informative than the segfaulst caused by having the entry point missing altogether.
1 parent 27f5c12 commit 43f2921

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

sycl/plugins/hip/pi_hip.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,6 +2936,18 @@ pi_result hip_piProgramGetInfo(pi_program program, pi_program_info param_name,
29362936
return {};
29372937
}
29382938

2939+
pi_result hip_piProgramLink(pi_context context, pi_uint32 num_devices,
2940+
const pi_device *device_list, const char *options,
2941+
pi_uint32 num_input_programs,
2942+
const pi_program *input_programs,
2943+
void (*pfn_notify)(pi_program program,
2944+
void *user_data),
2945+
void *user_data, pi_program *ret_program) {
2946+
cl::sycl::detail::pi::die(
2947+
"hip_piProgramLink: linking not supported with hip backend");
2948+
return {};
2949+
}
2950+
29392951
/// Creates a new program that is the outcome of the compilation of the headers
29402952
/// and the program.
29412953
/// \TODO Implement asynchronous compilation
@@ -4813,6 +4825,7 @@ pi_result piPluginInit(pi_plugin *PluginInit) {
48134825
_PI_CL(piProgramGetInfo, hip_piProgramGetInfo)
48144826
_PI_CL(piProgramCompile, hip_piProgramCompile)
48154827
_PI_CL(piProgramBuild, hip_piProgramBuild)
4828+
_PI_CL(piProgramLink, hip_piProgramLink)
48164829
_PI_CL(piProgramGetBuildInfo, hip_piProgramGetBuildInfo)
48174830
_PI_CL(piProgramRetain, hip_piProgramRetain)
48184831
_PI_CL(piProgramRelease, hip_piProgramRelease)

0 commit comments

Comments
 (0)