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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
0 deletions
-
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 |
|
|
|
|