Skip to content

Commit 71963a7

Browse files
authored
Merge pull request #4985 from CheryDan/RISCV/sched
added optimizations for RISC-V YIELDING
2 parents 82088cb + 0b3db03 commit 71963a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@ typedef int blasint;
372372
#endif
373373
#endif
374374

375+
#if defined(ARCH_RISCV64)
376+
#ifndef YIELDING
377+
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
378+
#endif
379+
#endif
380+
375381

376382
#ifdef __EMSCRIPTEN__
377383
#define YIELDING

0 commit comments

Comments
 (0)