Skip to content

Commit

Permalink
Stop using sched_yield on non-Windows x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Mar 11, 2024
1 parent cc9713a commit 07b1c0b
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions common.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,34 +358,20 @@ typedef int blasint;
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop; \n");
#endif

#ifdef BULLDOZER
#ifndef YIELDING
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif
#endif


#if defined(POWER8) || defined(POWER9) || defined(POWER10)
#ifndef YIELDING
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif
#endif

/*
#ifdef PILEDRIVER
#ifndef YIELDING
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif
#endif
*/

/*
#ifdef STEAMROLLER
#if defined(ARCH_X86_64)
#ifndef YIELDING
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif
#endif
*/


#ifdef __EMSCRIPTEN__
#define YIELDING
Expand Down

0 comments on commit 07b1c0b

Please sign in to comment.