Skip to content

Commit a789b77

Browse files
committed
Used SwitchToThread for YIELDING on AMD piledriver with Windows.
1 parent 75acf96 commit a789b77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,10 @@ typedef int blasint;
315315
#endif
316316

317317
#ifdef PILEDRIVER
318+
#ifndef YIELDING
318319
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
319320
#endif
320-
321+
#endif
321322

322323
#ifndef YIELDING
323324
#define YIELDING sched_yield()

0 commit comments

Comments
 (0)