Skip to content

Commit

Permalink
Merge pull request #4985 from CheryDan/RISCV/sched
Browse files Browse the repository at this point in the history
added optimizations for RISC-V YIELDING
  • Loading branch information
martin-frbg authored Nov 26, 2024
2 parents 82088cb + 0b3db03 commit 71963a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71963a7

Please sign in to comment.