From 07b1c0bc10191ce8ac8723527bdc9ccd28e284ea Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 11 Mar 2024 08:01:49 +0100 Subject: [PATCH] Stop using sched_yield on non-Windows x86_64 --- common.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/common.h b/common.h index 1f0b9e533a..b8bac1ad27 100644 --- a/common.h +++ b/common.h @@ -358,12 +358,6 @@ 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 @@ -371,21 +365,13 @@ typedef int blasint; #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