Skip to content

Commit 5eca862

Browse files
committed
Test instrumentation.
Signed-off-by: Julian Oppermann <[email protected]>
1 parent 93169a7 commit 5eca862

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,6 @@ getDeviceLibraries(const ArgList &Args, DiagnosticsEngine &Diags) {
301301

302302
Error jit_compiler::linkDeviceLibraries(llvm::Module &Module,
303303
const InputArgList &UserArgList) {
304-
// This function mimics the device library selection process
305-
// `clang::driver::tools::SYCL::getDeviceLibraries`, assuming a SPIR-V target
306-
// (no AoT, no third-party GPUs, no native CPU).
307-
308304
const std::string &DPCPPRoot = getDPCPPRoot();
309305
if (DPCPPRoot == InvalidDPCPPRoot) {
310306
return createStringError("Could not locate DPCPP root directory");

sycl/test-e2e/KernelCompiler/kernel_compiler_sycl_jit.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ void test_build_and_run() {
106106

107107
// // Compilation with props and devices
108108
std::string log;
109-
std::vector<std::string> flags{"-g", "-fno-fast-math"};
109+
std::vector<std::string> flags{"-g", "-fno-fast-math",
110+
"-fsycl-instrument-device-code"};
110111
std::vector<sycl::device> devs = kbSrc.get_devices();
111112
exe_kb kbExe2 = syclex::build(
112113
kbSrc, devs, syclex::properties{syclex::build_options{flags}});

0 commit comments

Comments
 (0)