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
Merge pull request
#4609
from yu-chen-surf/develop
Get the l2 cache size via environment variable on confidential VM
tags/v0.3.28^2
Martin Kroeker
GitHub
1 year ago
parent
fbd42e9e0e
8e39c05efd
commit
3cf57a61d5
No known key found for this signature in database
GPG Key ID:
B5690EEEBB952194
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
kernel/setparam-ref.c
+ 4
- 0
kernel/setparam-ref.c
View File
@@ -1248,6 +1248,10 @@ static __inline__ int get_l2_size(void){
int eax, ebx, ecx, edx, l2;
l2 = readenv_atoi("OPENBLAS_L2_SIZE");
if (l2 != 0)
return l2;
cpuid(0x80000006, &eax, &ebx, &ecx, &edx);
l2 = BITMASK(ecx, 16, 0xffff);
Write
Preview
Loading…
Cancel
Save