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
dot returns 0 for n==0, extend early bail check to cover this case
pull/3927/head
Sergei Lewis
3 years ago
parent
5925178d03
commit
cda9cca894
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
kernel/generic/dot.c
+1
-1
kernel/riscv64/dot.c
+ 1
- 1
kernel/generic/dot.c
View File
@@ -43,7 +43,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
FLOAT dot = 0.0 ;
#endif
if ( n <
0
) return(dot);
if ( n <
1
) return(dot);
if ( (inc_x == 1) && (inc_y == 1) )
{
+ 1
- 1
kernel/riscv64/dot.c
View File
@@ -46,7 +46,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
BLASLONG ix=0,iy=0;
double dot = 0.0 ;
if ( n <
0
) return(dot);
if ( n <
1
) return(dot);
while(i < n)
{
Write
Preview
Loading…
Cancel
Save