@@ -58,33 +58,45 @@ doRotg(
5858
5959 retCode = checkMemObjects (A , B , A , false, X_VEC_ERRSET , Y_VEC_ERRSET , X_VEC_ERRSET );
6060 if (retCode ) { // for mem objects A, B
61- printf ("Invalid mem object..\n" );
61+ #ifdef DEBUG_ROTG
62+ printf ("Invalid mem object..\n" );
63+ #endif
6264 return retCode ;
6365 }
6466 retCode = checkMemObjects (C , S , C , false, X_VEC_ERRSET , Y_VEC_ERRSET , X_VEC_ERRSET );
6567 if (retCode ) { // for mem objects C, S
66- printf ("Invalid mem object..\n" );
68+ #ifdef DEBUG_ROTG
69+ printf ("Invalid mem object..\n" );
70+ #endif
6771 return retCode ;
6872 }
6973
7074 // Check wheather enough memory was allocated
7175
7276 if ((retCode = checkVectorSizes (kargs -> dtype , 1 , A , offA , 1 , X_VEC_ERRSET ))) {
73- printf ("Invalid Size for A\n" );
77+ #ifdef DEBUG_ROTG
78+ printf ("Invalid Size for A\n" );
79+ #endif
7480 return retCode ;
7581 }
7682 if ((retCode = checkVectorSizes (kargs -> dtype , 1 , B , offB , 1 , Y_VEC_ERRSET ))) {
77- printf ("Invalid Size for B\n" );
83+ #ifdef DEBUG_ROTG
84+ printf ("Invalid Size for B\n" );
85+ #endif
7886 return retCode ;
7987 }
8088
8189 if ((retCode = checkVectorSizes (cType , 1 , C , offC , 1 , X_VEC_ERRSET ))) {
82- printf ("Invalid Size for C\n" );
90+ #ifdef DEBUG_ROTG
91+ printf ("Invalid Size for C\n" );
92+ #endif
8393 return retCode ;
8494 }
8595
8696 if ((retCode = checkVectorSizes (kargs -> dtype , 1 , S , offS , 1 , Y_VEC_ERRSET ))) {
87- printf ("Invalid Size for S\n" );
97+ #ifdef DEBUG_ROTG
98+ printf ("Invalid Size for S\n" );
99+ #endif
88100 return retCode ;
89101 }
90102 ///////////////////////////////////////////////////////////////
0 commit comments