Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions unified-runtime/source/adapters/level_zero/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,15 +1036,15 @@ ur_program_handle_t_::ur_program_handle_t_(ur_context_handle_t Context)
ur_program_handle_t_::ur_program_handle_t_(state, ur_context_handle_t Context,
ze_module_handle_t InteropZeModule)
: Context{Context}, NativeProperties{nullptr}, OwnZeModule{true},
AssociatedDevices({Context->getDevices()[0]}), InteropZeModule{
InteropZeModule} {}
AssociatedDevices({Context->getDevices()[0]}),
InteropZeModule{InteropZeModule} {}

ur_program_handle_t_::ur_program_handle_t_(state, ur_context_handle_t Context,
ze_module_handle_t InteropZeModule,
bool OwnZeModule)
: Context{Context}, NativeProperties{nullptr}, OwnZeModule{OwnZeModule},
AssociatedDevices({Context->getDevices()[0]}), InteropZeModule{
InteropZeModule} {
AssociatedDevices({Context->getDevices()[0]}),
InteropZeModule{InteropZeModule} {
// TODO: Currently it is not possible to understand the device associated
// with provided ZeModule. So we can't set the state on that device to Exe.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ ur_result_t TsanInterceptor::registerProgram(ur_program_handle_t Program) {
return UR_RESULT_SUCCESS;
}

ur_result_t TsanInterceptor::registerDeviceGlobals(ur_program_handle_t Program) {
ur_result_t
TsanInterceptor::registerDeviceGlobals(ur_program_handle_t Program) {
std::vector<ur_device_handle_t> Devices = GetDevices(Program);
assert(Devices.size() != 0 && "No devices in registerDeviceGlobals");
auto Context = GetContext(Program);
Expand Down
Loading