Browse Source

Merge pull request #4985 from CheryDan/RISCV/sched

added optimizations for RISC-V YIELDING
tags/v0.3.29
Martin Kroeker GitHub 1 year ago
parent
commit
71963a7bc4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      common.h

+ 6
- 0
common.h View File

@@ -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


Loading…
Cancel
Save