Skip to content

Commit b840d3a

Browse files
committed
[OpenMP][host runtime] small fixup of RTM CPUID bit check
1 parent f9ad1d1 commit b840d3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openmp/runtime/src/kmp_utility.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,15 @@ void __kmp_query_cpuid(kmp_cpuinfo_t *p) {
247247
i, buf.eax, buf.ebx, buf.ecx, buf.edx));
248248
}
249249
#endif
250-
#if KMP_USE_ADAPTIVE_LOCKS
251250
p->flags.rtm = 0;
252251
if (max_arg > 7) {
253252
/* RTM bit CPUID.07:EBX, bit 11 */
254253
__kmp_x86_cpuid(7, 0, &buf);
255254
p->flags.rtm = (buf.ebx >> 11) & 1;
256-
KA_TRACE(trace_level, (" RTM"));
255+
if (p->flags.rtm) {
256+
KA_TRACE(trace_level, (" RTM"));
257+
}
257258
}
258-
#endif
259259
}
260260

261261
{ // Parse CPU brand string for frequency, saving the string for later.

0 commit comments

Comments
 (0)