Skip to content

Commit

Permalink
added optimizations for RISC-V YIELDING
Browse files Browse the repository at this point in the history
  • Loading branch information
daichengrong committed Nov 22, 2024
1 parent 18014b0 commit 0b3db03
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 0b3db03

Please sign in to comment.