mirror of
https://github.com/amd/blis.git
synced 2026-04-20 15:48:50 +00:00
Fixed bug in scal2v reference
- When alpha is equal 1 in scal2v the computation can be reduced to copyv. The condition check in else if condition has to be a check for alpha equal to one and not zero. - BLIS_NO_CONJ has been passed while invoking copy. In case of single and double complex, the appropriate conjx needs to be passed with copyv so that the vector can be conjugated before copying to the destination. AMD-Internal: [CPUPL-2985] Change-Id: Ieb1ad111dff68098a08d870da7215bbd4ff5c9d0
This commit is contained in:
committed by
HariharaSudhan S
parent
8d7593a940
commit
f6960a3b6a
@@ -5,6 +5,7 @@
|
||||
libraries.
|
||||
|
||||
Copyright (C) 2014, The University of Texas at Austin
|
||||
Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
@@ -69,7 +70,7 @@ void PASTEMAC3(ch,opname,arch,suf) \
|
||||
); \
|
||||
return; \
|
||||
} \
|
||||
else if ( PASTEMAC(ch,eq0)( *alpha ) ) \
|
||||
else if ( PASTEMAC(ch,eq1)( *alpha ) ) \
|
||||
{ \
|
||||
/* If alpha is one, use copyv. */ \
|
||||
\
|
||||
@@ -79,7 +80,7 @@ void PASTEMAC3(ch,opname,arch,suf) \
|
||||
\
|
||||
copyv_p \
|
||||
( \
|
||||
BLIS_NO_CONJUGATE, \
|
||||
conjx, \
|
||||
n, \
|
||||
x, incx, \
|
||||
y, incy, \
|
||||
|
||||
Reference in New Issue
Block a user