From 0b3db03d4b41b86bb26170e4f4e36785ced9d947 Mon Sep 17 00:00:00 2001 From: daichengrong Date: Fri, 22 Nov 2024 11:13:24 +0800 Subject: [PATCH] added optimizations for RISC-V YIELDING --- common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.h b/common.h index b8bac1ad2..b3fc6d7de 100644 --- a/common.h +++ b/common.h @@ -372,6 +372,12 @@ typedef int blasint; #endif #endif +#if defined(ARCH_RISCV64) +#ifndef YIELDING +#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n"); +#endif +#endif + #ifdef __EMSCRIPTEN__ #define YIELDING