Skip to content

Commit

Permalink
Use custom module build options in LONG_RUNNING_KERNEL_INTERRUPTED te…
Browse files Browse the repository at this point in the history
…st type
  • Loading branch information
gwawiork committed Sep 6, 2024
1 parent f0b01a1 commit 32fbf52
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion conformance_tests/tools/debug/src/test_debug_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,15 @@ void run_long_kernel(ze_context_handle_t context, ze_device_handle_t device,
}

synchro.wait_for_debugger_signal();

std::string mod_options = "-g";
if (options.module_options_in != "") {
mod_options.append("," + options.module_options_in);
}
LOG_INFO << "Module Options: " << mod_options;
auto module =
lzt::create_module(device, module_name, ZE_MODULE_FORMAT_IL_SPIRV,
"-g" /* include debug symbols*/, nullptr);
mod_options.c_str(), nullptr);

auto kernel = lzt::create_function(module, kernel_name);

Expand Down

0 comments on commit 32fbf52

Please sign in to comment.