Skip to content

[SYCL][HIP] Add missing piProgramLink stub #4933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions sycl/plugins/hip/pi_hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2936,6 +2936,18 @@ pi_result hip_piProgramGetInfo(pi_program program, pi_program_info param_name,
return {};
}

pi_result hip_piProgramLink(pi_context context, pi_uint32 num_devices,
const pi_device *device_list, const char *options,
pi_uint32 num_input_programs,
const pi_program *input_programs,
void (*pfn_notify)(pi_program program,
void *user_data),
void *user_data, pi_program *ret_program) {
cl::sycl::detail::pi::die(
"hip_piProgramLink: linking not supported with hip backend");
return {};
}

/// Creates a new program that is the outcome of the compilation of the headers
/// and the program.
/// \TODO Implement asynchronous compilation
Expand Down Expand Up @@ -4813,6 +4825,7 @@ pi_result piPluginInit(pi_plugin *PluginInit) {
_PI_CL(piProgramGetInfo, hip_piProgramGetInfo)
_PI_CL(piProgramCompile, hip_piProgramCompile)
_PI_CL(piProgramBuild, hip_piProgramBuild)
_PI_CL(piProgramLink, hip_piProgramLink)
_PI_CL(piProgramGetBuildInfo, hip_piProgramGetBuildInfo)
_PI_CL(piProgramRetain, hip_piProgramRetain)
_PI_CL(piProgramRelease, hip_piProgramRelease)
Expand Down