Skip to content

Commit 8377bf0

Browse files
committed
Device instrumentation default is 'off' now.
Signed-off-by: Julian Oppermann <[email protected]>
1 parent 2e78951 commit 8377bf0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,17 @@ Error jit_compiler::linkDefaultDeviceLibraries(llvm::Module &Module,
156156
// `clang::driver::tools::SYCL::getDeviceLibraries`, assuming a SPIR-V target
157157
// (no AoT, no third-party GPUs, no native CPU).
158158

159-
bool DeviceInstrumentationEnabled = true;
159+
bool DeviceInstrumentationEnabled = false;
160160
for (StringRef UA : UserArgs) {
161161
// Check instrumentation-related flags (last occurence determines outcome).
162-
if (UA == "-fno-sycl-instrument-device-code") {
163-
DeviceInstrumentationEnabled = false;
164-
continue;
165-
}
166162
if (UA == "-fsycl-instrument-device-code") {
167163
DeviceInstrumentationEnabled = true;
168164
continue;
169165
}
166+
if (UA == "-fno-sycl-instrument-device-code") {
167+
DeviceInstrumentationEnabled = false;
168+
continue;
169+
}
170170

171171
// Issue warning for `-fsycl-device-lib` or `-fno-sycl-device-lib`.
172172
// TODO: Is it worth supporting these flags? We're using `LinkOnlyNeeded`

0 commit comments

Comments
 (0)