Skip to content

Commit 8028868

Browse files
abhiShandyKent Knox
authored andcommitted
fix #265 - spelling errors in comments and print statements (#276)
* fix #265 - spelling errors in comments and print statements * correct the argument order in doxygen comments
1 parent 00a29c6 commit 8028868

File tree

11 files changed

+34
-34
lines changed

11 files changed

+34
-34
lines changed

src/clBLAS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7809,9 +7809,9 @@ clblasDtrmm(
78097809
* @param[in] M Number of rows in matrix \b B.
78107810
* @param[in] N Number of columns in matrix \b B.
78117811
* @param[in] alpha The factor of matrix \b A.
7812+
* @param[in] A Buffer object storing matrix \b A.
78127813
* @param[in] offA Offset of the first element of the matrix \b A in the
78137814
* buffer object. Counted in elements.
7814-
* @param[in] A Buffer object storing matrix \b A.
78157815
* @param[in] lda Leading dimension of matrix \b A. For detailed
78167816
* description, see clblasStrmm().
78177817
* @param[out] B Buffer object storing matrix \b B.

src/include/kerngen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ kgenSyncFormatting(
244244
*
245245
* @return 0 on success; -1 if the source code exceeds the buffer,
246246
* or level of the code nesting is not zero, or the returned
247-
* type is not defined, or there is not a paranthesis opening
247+
* type is not defined, or there is not a parenthesis opening
248248
* the argument list
249249
*/
250250
int

src/library/blas/generic/solution_seq_make.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ selectVectorization(
214214
}
215215

216216
//
217-
// Routines that dont use LDS have to be below the isLdsUsed() code
217+
// Routines that don't use LDS have to be below the isLdsUsed() code
218218
//
219219
if (step->funcID == CLBLAS_GEMM2)
220220
{

src/library/blas/gens/clTemplates/gemm.cl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ __kernel void GEMM_NN__KERNEL ( __global %TYPE const * restrict _A, __global %TY
9898
// %V - Vectoring Width
9999
// %PANEL(*) - Panel Width to access Rows of A and Columns of B
100100
// Right now, %V is assumed to be the panel width.
101-
// We dont use %PANEL in the current implementation.
101+
// We don't use %PANEL in the current implementation.
102102
//
103103
MV = M;
104104
#ifndef TAIL_RUN
@@ -118,7 +118,7 @@ __kernel void GEMM_NN__KERNEL ( __global %TYPE const * restrict _A, __global %TY
118118
bidX = ( get_group_id(0) / ( blockDimY));
119119
//
120120
// Note:
121-
// Using the new Map function does not yeild any performnce gain.
121+
// Using the new Map function does not yield any performnce gain.
122122
// In fact, it degraded the performance
123123
// Keep this commented.
124124
//
@@ -613,7 +613,7 @@ __kernel void GEMM_NT__KERNEL ( __global %TYPE const * restrict _A, __global %TY
613613
// %V - Vectoring Width
614614
// %PANEL(*) - Panel Width to access Rows of A and Columns of B
615615
// Right now, %V is assumed to be the panel width.
616-
// We dont use %PANEL in the current implementation.
616+
// We don't use %PANEL in the current implementation.
617617
//
618618
MV = M;
619619
NV = N;
@@ -1141,7 +1141,7 @@ __kernel void GEMM_TN__KERNEL ( __global %TYPE const * restrict _A, __global %TY
11411141
// %V - Vectoring Width
11421142
// %PANEL(*) - Panel Width to access Rows of A and Columns of B
11431143
// Right now, %V is assumed to be the panel width.
1144-
// We dont use %PANEL in the current implementation.
1144+
// We don't use %PANEL in the current implementation.
11451145
//
11461146
MV = M;
11471147
#ifndef TAIL_RUN

src/library/blas/gens/clTemplates/symm.cl

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -176,18 +176,18 @@ const char *SYMM_C_KERNEL= "
176176
return SYMM_VECTOR_LOAD(A, M, lda, row, col);
177177
}
178178
#ifdef __SYMM_LOWER__
179-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
179+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
180180
#define LOADA_FIRST(A,M,K,lda,row,col) %VLOAD(0, (&A[(col)*lda + (row)]))
181181
#elif defined(__SYMM_UPPER__)
182-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
182+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
183183
#define LOADA_FIRST(A,M,K,lda,row,col) %VLOADWITHINCXV2(0, (&A[(row)*lda + (col)]), lda)
184184
#endif
185185
#define LOADA_SECOND(A,M,K,lda,row,col) SYMM_VECTOR_LOAD_USING_SCALAR(A, M, lda, row, col)
186186
#ifdef __SYMM_LOWER__
187-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
187+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
188188
#define LOADA_THIRD(A,M,K,lda,row, col) %VLOADWITHINCXV2(0, (&A[(row)*lda + (col)]), lda)
189189
#elif defined(__SYMM_UPPER__)
190-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
190+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
191191
#define LOADA_THIRD(A,M,K,lda,row, col) %VLOAD(0, (&A[(col)*lda + (row)]))
192192
#endif
193193
#define LOADA_TAIL(A,M,K,lda,row,col) SYMM_VECTOR_LOAD_USING_SCALAR(A,M,lda,row,col)
@@ -217,18 +217,18 @@ const char *SYMM_C_KERNEL= "
217217
return SYMM_VECTOR_LOAD(B, N, ldb, row, col);
218218
}
219219
#ifdef __SYMM_UPPER__
220-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
220+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
221221
#define LOADB_FIRST(B,K,N,ldb,row,col) %VLOAD(0, (&B[(col)*(ldb) + (row)]))
222222
#elif defined(__SYMM_LOWER__)
223-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
223+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
224224
#define LOADB_FIRST(B,K,N,ldb,row,col) %VLOADWITHINCXV2(0, (&B[(row)*(ldb) + (col)]), ldb)
225225
#endif
226226
#define LOADB_SECOND(B,K,N,ldb,row,col) SYMM_VECTOR_LOAD_USING_SCALAR(B, N, ldb, row, col)
227227
#ifdef __SYMM_UPPER__
228-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
228+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
229229
#define LOADB_THIRD(B,K,N,ldb,row,col) %VLOADWITHINCXV2(0, (&B[(row)*(ldb) + (col)]), ldb)
230230
#elif defined(__SYMM_LOWER__)
231-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
231+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
232232
#define LOADB_THIRD(B,K,N,ldb,row,col) %VLOAD(0, (&B[(col)*(ldb) + (row)]))
233233
#endif
234234
#define LOADB_TAIL(B,K,N,ldb,row,col) SYMM_VECTOR_LOAD_USING_SCALAR(B, N,ldb,row,col)
@@ -288,7 +288,7 @@ const char *SYMM_C_KERNEL= "
288288
// %V - Vectoring Width
289289
// %PANEL(*) - Panel Width to access Rows of A and Columns of B
290290
// Right now, %V is assumed to be the panel width.
291-
// We dont use %PANEL in the current implementation.
291+
// We don't use %PANEL in the current implementation.
292292
//
293293
blockDimY = ((M-1) / (threadsY * %ITEMY)) + 1;
294294
bidY = ( get_group_id(0) % ( blockDimY));
@@ -673,18 +673,18 @@ const char *SYMM_C_KERNEL_WORKING_EXCEPT_CSYMM_PROBLEM = "
673673
return SYMM_VECTOR_LOAD(A, M, lda, row, col);
674674
}
675675
#ifdef __SYMM_LOWER__
676-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
676+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
677677
#define LOADA_FIRST(A,M,K,lda,row,col) %VLOAD(0, (&A[(col)*lda + (row)]))
678678
#elif defined(__SYMM_UPPER__)
679-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
679+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
680680
#define LOADA_FIRST(A,M,K,lda,row,col) %VLOADWITHINCXV2(0, (&A[(row)*lda + (col)]), lda)
681681
#endif
682682
#define LOADA_SECOND(A,M,K,lda,row,col) SYMM_VECTOR_LOAD_USING_SCALAR(A, M, lda, row, col)
683683
#ifdef __SYMM_LOWER__
684-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
684+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
685685
#define LOADA_THIRD(A,M,K,lda,row, col) %VLOADWITHINCXV2(0, (&A[(row)*lda + (col)]), lda)
686686
#elif defined(__SYMM_UPPER__)
687-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
687+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
688688
#define LOADA_THIRD(A,M,K,lda,row, col) %VLOAD(0, (&A[(col)*lda + (row)]))
689689
#endif
690690
#define LOADA_TAIL(A,M,K,lda,row,col) SYMM_VECTOR_LOAD_USING_SCALAR(A,M,lda,row,col)
@@ -714,18 +714,18 @@ const char *SYMM_C_KERNEL_WORKING_EXCEPT_CSYMM_PROBLEM = "
714714
return SYMM_VECTOR_LOAD(B, N, ldb, row, col);
715715
}
716716
#ifdef __SYMM_UPPER__
717-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
717+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
718718
#define LOADB_FIRST(B,K,N,ldb,row,col) %VLOAD(0, (&B[(col)*(ldb) + (row)]))
719719
#elif defined(__SYMM_LOWER__)
720-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
720+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
721721
#define LOADB_FIRST(B,K,N,ldb,row,col) %VLOADWITHINCXV2(0, (&B[(row)*(ldb) + (col)]), ldb)
722722
#endif
723723
#define LOADB_SECOND(B,K,N,ldb,row,col) SYMM_VECTOR_LOAD_USING_SCALAR(B, N, ldb, row, col)
724724
#ifdef __SYMM_UPPER__
725-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
725+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
726726
#define LOADB_THIRD(B,K,N,ldb,row,col) %VLOADWITHINCXV2(0, (&B[(row)*(ldb) + (col)]), ldb)
727727
#elif defined(__SYMM_LOWER__)
728-
// CHECK: KPRINTF Behaviour with so many parantheses - If fails, use parantheses in the caller
728+
// CHECK: KPRINTF Behaviour with so many parentheses - If fails, use parentheses in the caller
729729
#define LOADB_THIRD(B,K,N,ldb,row,col) %VLOAD(0, (&B[(col)*(ldb) + (row)]))
730730
#endif
731731
#define LOADB_TAIL(B,K,N,ldb,row,col) SYMM_VECTOR_LOAD_USING_SCALAR(B, N,ldb,row,col)
@@ -783,7 +783,7 @@ const char *SYMM_C_KERNEL_WORKING_EXCEPT_CSYMM_PROBLEM = "
783783
// %V - Vectoring Width
784784
// %PANEL(*) - Panel Width to access Rows of A and Columns of B
785785
// Right now, %V is assumed to be the panel width.
786-
// We dont use %PANEL in the current implementation.
786+
// We don't use %PANEL in the current implementation.
787787
//
788788
blockDimY = ((M-1) / (threadsY * %ITEMY)) + 1;
789789
bidY = ( get_group_id(0) % ( blockDimY));

src/library/blas/gens/clTemplates/trmv.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ __kernel void %PREFIXtrmv_CU_kernel( __global %TYPE const* restrict _A, __global
170170

171171
//
172172
// Only TARGET_WIDTH threads points are to be read from X-vector
173-
// We dont't use VLOAD here because incx could be > 1
173+
// We don't use VLOAD here because incx could be > 1
174174
// Minimal prototyping shows that having separate loading code
175175
// for incx value of 1 does not change anything in performance
176176
// In fact, the extra IF costs us.
@@ -421,7 +421,7 @@ __kernel void %PREFIXtrmv_CL_kernel( __global %TYPE const* restrict _A, __global
421421

422422
//
423423
// Only TARGET_WIDTH threads points are to be read from X-vector
424-
// We dont't use VLOAD here because incx could be > 1
424+
// We don't use VLOAD here because incx could be > 1
425425
// Minimal prototyping shows that having separate loading code
426426
// for incx value of 1 does not change anything in performance
427427
// In fact, the extra IF costs us.

src/library/blas/gens/kprintf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ void kprintf::handleComplexJoin(char **_src, char **_dst)
854854
{
855855
case SCALAR:
856856
//
857-
// Dont do a thing...ComplexJoin not applicable for Real numbers
857+
// Don't do a thing...ComplexJoin not applicable for Real numbers
858858
//
859859
break;
860860

@@ -1547,7 +1547,7 @@ void kprintf::handleReduceSumReal(char **_src, char **_dst, int vlength)
15471547
if (!vlength) //Can happen for SCALAR cases where source code contains this within COMPLEX define
15481548
{
15491549
//
1550-
// Dont generate a thing.
1550+
// Don't generate a thing.
15511551
// The src pointer has already been advanced to next line
15521552
// Just move on..
15531553
//

src/library/blas/gens/trsv_gemv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static bool isTransposeFeasible(size_t triangle, size_t blockSize, size_t vecLen
278278
/*
279279
* NOTE:
280280
* No-Transpose case - The code iterates along the X direction. Vectoring is along Y Direction.
281-
* Since we dont iterate on Y direction (triangle height), this fixes the "blocky" component of the blocksize.
281+
* Since we don't iterate on Y direction (triangle height), this fixes the "blocky" component of the blocksize.
282282
* The blockSize then determines how much width the block has on X direction and thus the number of loops
283283
* can be calculated from that information.
284284
*/

src/library/blas/include/kprintf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class kprintf {
7777
void registerType(const char *baseType, int vecWidth, int internalVecWidth=1);
7878
void registerReducedTypes( const char* in, int div);
7979
void registerSuperTypes( const char* in, int mul);
80-
char* mystrtok( char* in, const char* tok); //NOTE: strtok overwrites the string. we dont like that...
80+
char* mystrtok( char* in, const char* tok); //NOTE: strtok overwrites the string. we don't like that...
8181
//
8282
// VLOAD %TYPE%V from (%PTYPE*) kind of memory locations
8383
// The Kernel writers should use "%TYPE" and "%TYPE%V" for kernel aguments, local variables etc..

src/library/blas/xtrsv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ orchestrateNonTransposeTRSV(CLBlasKargs *kargs, ListHead *trtriSeq, ListHead *ge
6060

6161
if ((trtri->subdims->y) != (gemv->subdims->y))
6262
{
63-
printf("TRSV: WARNING: TRTRI and GEMV dont have identical sub-divisions!!! %lu and %lu\n", trtri->subdims->y, gemv->subdims->y);
63+
printf("TRSV: WARNING: TRTRI and GEMV don't have identical sub-divisions!!! %lu and %lu\n", trtri->subdims->y, gemv->subdims->y);
6464
return clblasNotImplemented;
6565
} else {
6666
#ifdef DEBUG_TRSV
@@ -166,7 +166,7 @@ orchestrateTransposeTRSV(CLBlasKargs *kargs, ListHead *trtriSeq, ListHead *gemvS
166166

167167
if ((trtri->subdims->y) != (gemv->subdims->y))
168168
{
169-
printf("TRSV: Transpose: WARNING: TRTRI and GEMV dont have identical sub-divisions!!! %lu and %lu\n", trtri->subdims->y, gemv->subdims->y);
169+
printf("TRSV: Transpose: WARNING: TRTRI and GEMV don't have identical sub-divisions!!! %lu and %lu\n", trtri->subdims->y, gemv->subdims->y);
170170
return clblasNotImplemented;
171171
} else {
172172
#ifdef DEBUG_TRSV

0 commit comments

Comments
 (0)