Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit edd8ab1

Browse files
committed
Clean up SSYMM SME preprocessing warnings
Use const source pointers in the symmetric preprocessing helpers and compile only the LU or LL helper needed by each object variant.
1 parent 8cde36c commit edd8ab1

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

kernel/arm64/ssymm_direct_alpha_beta_arm64_sme1.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ static uint64_t sve_cntw() {
4545

4646
#if defined(__ARM_FEATURE_SME) && defined(__ARM_FEATURE_LOCALLY_STREAMING) && defined(__clang__) && __clang_major__ >= 16
4747

48+
#if defined(UPPER)
4849
__arm_new("za") __arm_locally_streaming
4950
static void ssymm_direct_sme1_preprocessLU(uint64_t nbr, uint64_t nbc,
5051
const float *restrict a, float *restrict a_mod)
@@ -54,7 +55,7 @@ static void ssymm_direct_sme1_preprocessLU(uint64_t nbr, uint64_t nbc,
5455
const uint64_t svl = svcntw();
5556
uint64_t row_batch = svl;
5657

57-
float *restrict pSrc;
58+
const float *restrict pSrc;
5859
float *restrict pDst;
5960
for (uint64_t row_idx = 0; row_idx < nbr; row_idx += row_batch)
6061
{
@@ -122,8 +123,10 @@ static void ssymm_direct_sme1_preprocessLU(uint64_t nbr, uint64_t nbc,
122123
}
123124
}
124125
}
126+
#endif
125127

126128
//
129+
#if defined(LOWER)
127130
__arm_new("za") __arm_locally_streaming
128131
static void ssymm_direct_sme1_preprocessLL(uint64_t nbr, uint64_t nbc,
129132
const float *restrict a, float *restrict a_mod)
@@ -132,7 +135,7 @@ static void ssymm_direct_sme1_preprocessLL(uint64_t nbr, uint64_t nbc,
132135
const uint64_t svl = svcntw();
133136
uint64_t row_batch = svl;
134137

135-
float *restrict pSrc;
138+
const float *restrict pSrc;
136139
float *restrict pDst;
137140
for (uint64_t row_idx = 0; row_idx < nbr; row_idx += row_batch)
138141
{
@@ -200,12 +203,17 @@ static void ssymm_direct_sme1_preprocessLL(uint64_t nbr, uint64_t nbc,
200203
}
201204
}
202205
}
206+
#endif
203207
#else
208+
#if defined(UPPER)
204209
static void ssymm_direct_sme1_preprocessLU(uint64_t nbr, uint64_t nbc,
205210
const float *restrict a, float *restrict a_mod){}
211+
#endif
212+
#if defined(LOWER)
206213
static void ssymm_direct_sme1_preprocessLL(uint64_t nbr, uint64_t nbc,
207214
const float *restrict a, float *restrict a_mod){}
208215
#endif
216+
#endif
209217

210218
//
211219
void CNAME(BLASLONG M, BLASLONG N, float alpha, float *__restrict A,

0 commit comments

Comments
 (0)