3131 * * Redistributions of source code must retain the above copyright
3232 * notice, this list of conditions and the following disclaimer.
3333 * * Redistributions in binary form must reproduce the above copyright
34- * notice, this list of conditions and the following disclaimer in the
34+ * notice, this list of conditions and the following disclaimer in the
3535 * documentation and/or other materials provided with the distribution.
36- * * Neither the name of the University of Tennessee, Knoxville nor the
36+ * * Neither the name of the University of Tennessee, Knoxville nor the
3737 * names of its contributors may be used to endorse or promote products
3838 * derived from this software without specific prior written permission.
3939 *
4040 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
41- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
42- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
41+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
42+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
4343 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
4444 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
45+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
4646 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
47- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
47+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
4848 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
49- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
49+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5050 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5151 *
5252 **********************************************************************/
@@ -149,9 +149,9 @@ magma_int_t magma_getrf_gpu(
149149 if (m == 0 || n == 0 )
150150 return *info;
151151
152- gemm_func <Ty> gpu_gemm;
153- trsm_func <Ty> gpu_trsm;
154- getrf_func <Ty> cpu_getrf;
152+ gpu_gemm_func <Ty> gpu_gemm;
153+ gpu_trsm_func <Ty> gpu_trsm;
154+ cpu_getrf_func <Ty> cpu_getrf;
155155
156156 /* Function Body */
157157 mindim = std::min (m, n);
@@ -165,7 +165,7 @@ magma_int_t magma_getrf_gpu(
165165 return *info;
166166 }
167167 magma_getmatrix<Ty>(m, n, dA (0 ,0 ), ldda, work (0 ), m, queue);
168- cpu_getrf (LAPACK_COL_MAJOR , m, n, work, m, ipiv);
168+ cpu_getrf ( m, n, work, m, ipiv);
169169 magma_setmatrix<Ty>(m, n, work (0 ), m, dA (0 ,0 ), ldda, queue);
170170 magma_free_cpu (work);
171171 }
@@ -219,7 +219,7 @@ magma_int_t magma_getrf_gpu(
219219 magma_getmatrix<Ty>(m-j*nb, nb, dAP (0 ,0 ), maxm, work (0 ), ldwork, queue);
220220
221221 if (j > 0 && n > (j + 1 ) * nb) {
222- gpu_trsm (clblasColumnMajor,
222+ gpu_trsm (
223223 clblasRight, clblasUpper, clblasNoTrans, clblasUnit,
224224 n - (j+1 )*nb, nb,
225225 c_one,
@@ -228,7 +228,7 @@ magma_int_t magma_getrf_gpu(
228228 1 , &queue, 0 , nullptr , &event);
229229
230230 if (m > j * nb) {
231- gpu_gemm (clblasColumnMajor, clblasNoTrans, clblasNoTrans,
231+ gpu_gemm ( clblasNoTrans, clblasNoTrans,
232232 n-(j+1 )*nb, m-j*nb, nb,
233233 c_neg_one,
234234 dAT (j-1 ,j+1 ), lddat,
@@ -241,7 +241,7 @@ magma_int_t magma_getrf_gpu(
241241
242242 // do the cpu part
243243 rows = m - j*nb;
244- cpu_getrf (LAPACK_COL_MAJOR , rows, nb, work, ldwork, ipiv+j*nb);
244+ cpu_getrf ( rows, nb, work, ldwork, ipiv+j*nb);
245245 if (*info == 0 && iinfo > 0 )
246246 *info = iinfo + j*nb;
247247
@@ -257,7 +257,7 @@ magma_int_t magma_getrf_gpu(
257257
258258 // do the small non-parallel computations (next panel update)
259259 if (s > (j+1 )) {
260- gpu_trsm (clblasColumnMajor,
260+ gpu_trsm (
261261 clblasRight, clblasUpper, clblasNoTrans, clblasUnit,
262262 nb, nb,
263263 c_one,
@@ -266,7 +266,7 @@ magma_int_t magma_getrf_gpu(
266266 1 , &queue, 0 , nullptr , &event);
267267
268268
269- gpu_gemm (clblasColumnMajor, clblasNoTrans, clblasNoTrans,
269+ gpu_gemm ( clblasNoTrans, clblasNoTrans,
270270 nb, m-(j+1 )*nb, nb,
271271 c_neg_one,
272272 dAT (j, j+1 ), lddat,
@@ -277,7 +277,7 @@ magma_int_t magma_getrf_gpu(
277277 }
278278 else {
279279 if (n > s * nb) {
280- gpu_trsm (clblasColumnMajor,
280+ gpu_trsm (
281281 clblasRight, clblasUpper, clblasNoTrans, clblasUnit,
282282 n-s*nb, nb,
283283 c_one,
@@ -287,7 +287,7 @@ magma_int_t magma_getrf_gpu(
287287 }
288288
289289 if ((n > (j+1 ) * nb) && (m > (j+1 ) * nb)) {
290- gpu_gemm (clblasColumnMajor, clblasNoTrans, clblasNoTrans,
290+ gpu_gemm ( clblasNoTrans, clblasNoTrans,
291291 n-(j+1 )*nb, m-(j+1 )*nb, nb,
292292 c_neg_one,
293293 dAT (j, j+1 ), lddat,
@@ -308,7 +308,7 @@ magma_int_t magma_getrf_gpu(
308308 magma_getmatrix<Ty>(rows, nb0, dAP (0 ,0 ), maxm, work (0 ), ldwork, queue);
309309
310310 // do the cpu part
311- cpu_getrf (LAPACK_COL_MAJOR , rows, nb0, work, ldwork, ipiv+s*nb);
311+ cpu_getrf ( rows, nb0, work, ldwork, ipiv+s*nb);
312312 if (*info == 0 && iinfo > 0 )
313313 *info = iinfo + s*nb;
314314
@@ -322,7 +322,7 @@ magma_int_t magma_getrf_gpu(
322322 magmablas_transpose<Ty>(rows, nb0, dAP (0 ,0 ), maxm, dAT (s,s), lddat, queue);
323323
324324 if (n > s * nb + nb0) {
325- gpu_trsm (clblasColumnMajor,
325+ gpu_trsm (
326326 clblasRight, clblasUpper, clblasNoTrans, clblasUnit,
327327 n-s*nb-nb0, nb0,
328328 c_one, dAT (s,s), lddat,
0 commit comments