This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
OSchip
/
OpenBLAS
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
66
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Add preliminary implementation of WhereAmI()
pull/4648/head
Martin Kroeker
GitHub
1 year ago
parent
91a24b837d
commit
34fd14036c
No known key found for this signature in database
GPG Key ID:
B5690EEEBB952194
1 changed files
with
12 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+12
-0
common_arm64.h
+ 12
- 0
common_arm64.h
View File
@@ -55,6 +55,18 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef ASSEMBLER
static __inline int WhereAmI(void){
uint64_t ret;
__asm__ volatile (
" mrs x0, mpidr_el1 \n"
" and x0, x0, 0xff \n"
:"=r" (ret)
:: "memory"
);
if (ret > MAX_CPU_NUMBER) ret = MAX_CPU_NUMBER;
return (int)ret;
}
static __inline void blas_lock(volatile BLASULONG *address){
BLASULONG ret;
Write
Preview
Loading…
Cancel
Save