Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

These are some improvements to SuperLU to try to make it more cross p… #25

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 10 additions & 4 deletions CBLAS/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
set(headers
find_library(F2C f2c)
if (NOT F2C)
message(FATAL_ERROR "f2c required. It is available at http://www.netlib.org/f2c/index.html ")
endif()
set(headers
f2c.h
slu_Cnames.h
)
Expand All @@ -12,8 +16,8 @@ set(sources "")
scopy.c
sdot.c
snrm2.c
srot.c
sscal.c
srot.c
sscal.c
sswap.c
sgemv
ssymv
Expand Down Expand Up @@ -79,4 +83,6 @@ set(sources "")
)
#endif()

add_library(blas ${sources} ${HEADERS})
#This must be compiled as a static library
add_library(blas STATIC ${sources} ${HEADERS})
target_link_libraries(blas ${F2C} m)
12 changes: 6 additions & 6 deletions CBLAS/caxpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
static integer i, ix, iy;


/* constant times a vector plus a vector.
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)
/* constant times a vector plus a vector.
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)


Parameter adjustments

Parameter adjustments
Function Body */
#define CY(I) cy[(I)-1]
#define CX(I) cx[(I)-1]
Expand All @@ -45,7 +45,7 @@
goto L20;
}

/* code for unequal increments or equal increments
/* code for unequal increments or equal increments
not equal to 1 */

ix = 1;
Expand Down
12 changes: 6 additions & 6 deletions CBLAS/ccopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
static integer i, ix, iy;


/* copies a vector, x, to a vector, y.
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)
/* copies a vector, x, to a vector, y.
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)


Parameter adjustments

Parameter adjustments
Function Body */
#define CY(I) cy[(I)-1]
#define CX(I) cx[(I)-1]
Expand All @@ -37,7 +37,7 @@
goto L20;
}

/* code for unequal increments or equal increments
/* code for unequal increments or equal increments
not equal to 1 */

ix = 1;
Expand Down
18 changes: 9 additions & 9 deletions CBLAS/cdotc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "f2c.h"

/* Complex */ VOID cdotc_(complex * ret_val, integer *n, complex *cx, integer
/* Complex */ VOID cdotc_(complex * ret_val, integer *n, complex *cx, integer
*incx, complex *cy, integer *incy)
{
/* System generated locals */
Expand All @@ -21,13 +21,13 @@
static integer ix, iy;


/* forms the dot product of two vectors, conjugating the first
vector.
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)
/* forms the dot product of two vectors, conjugating the first
vector.
jack dongarra, linpack, 3/11/78.
modified 12/3/93, array(1) declarations changed to array(*)




Parameter adjustments */
--cy;
--cx;
Expand All @@ -42,7 +42,7 @@
goto L20;
}

/* code for unequal increments or equal increments
/* code for unequal increments or equal increments
not equal to 1 */

ix = 1;
Expand All @@ -57,7 +57,7 @@
for (i = 1; i <= *n; ++i) {
r_cnjg(&q__3, &cx[ix]);
i__2 = iy;
q__2.r = q__3.r * cy[iy].r - q__3.i * cy[iy].i, q__2.i = q__3.r *
q__2.r = q__3.r * cy[iy].r - q__3.i * cy[iy].i, q__2.i = q__3.r *
cy[iy].i + q__3.i * cy[iy].r;
q__1.r = ctemp.r + q__2.r, q__1.i = ctemp.i + q__2.i;
ctemp.r = q__1.r, ctemp.i = q__1.i;
Expand All @@ -75,7 +75,7 @@
for (i = 1; i <= *n; ++i) {
r_cnjg(&q__3, &cx[i]);
i__2 = i;
q__2.r = q__3.r * cy[i].r - q__3.i * cy[i].i, q__2.i = q__3.r *
q__2.r = q__3.r * cy[i].r - q__3.i * cy[i].i, q__2.i = q__3.r *
cy[i].i + q__3.i * cy[i].r;
q__1.r = ctemp.r + q__2.r, q__1.i = ctemp.i + q__2.i;
ctemp.r = q__1.r, ctemp.i = q__1.i;
Expand Down
Loading