Skip to content

Commit 685ece5

Browse files
committed
restore 'scipy_' prefix, edit fortran test files
1 parent c62aaba commit 685ece5

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

test.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
!testdpotr_test_gh_2691.f90
1+
!testdpotr_test_gh_2691.f90 with scipy_ prefix
22
subroutine garbage(okflag)
33
implicit none
44
integer, intent(out) :: okflag
@@ -23,7 +23,7 @@ subroutine garbage(okflag)
2323

2424
a2 = a
2525

26-
call dpotrf('L', 3, a, 3, info)
26+
call scipy_dpotrf('L', 3, a, 3, info)
2727
if (info.ne.0) then
2828
okflag = 0
2929
write(*,*) 'DPOTRF failed'
@@ -39,20 +39,20 @@ subroutine garbage(okflag)
3939
a(i,j) = 0
4040
end do
4141
end do
42-
call dpotri('L', 3, a, 3, info)
42+
call scipy_dpotri('L', 3, a, 3, info)
4343
if (info.ne.0) then
4444
okflag = 0
4545
write(*,*) 'DPOTRI failed'
4646
return
4747
end if
4848

49-
call dgetrf(3, 3, a2, 3, ipiv, info)
49+
call scipy_dgetrf(3, 3, a2, 3, ipiv, info)
5050
if (info.ne.0) then
5151
okflag = 0
5252
write(*,*) 'DGETRF failed'
5353
return
5454
end if
55-
call dgetri(3, a2, 3, ipiv, work, lwork, info)
55+
call scipy_dgetri(3, a2, 3, ipiv, work, lwork, info)
5656
if (info.ne.0) then
5757
okflag = 0
5858
write(*,*) 'DGETRI failed'

test64_.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
!testdpotr_test_gh_2691.f90 with _64 suffix
1+
!testdpotr_test_gh_2691.f90 with _64 suffix and scipy_ prefix
22
subroutine garbage(okflag)
33
implicit none
44
integer, intent(out) :: okflag
@@ -23,7 +23,7 @@ subroutine garbage(okflag)
2323

2424
a2 = a
2525

26-
call dpotrf_64('L', 3, a, 3, info)
26+
call scipy_dpotrf_64('L', 3, a, 3, info)
2727
if (info.ne.0) then
2828
okflag = 0
2929
write(*,*) 'DPOTRF failed'
@@ -39,20 +39,20 @@ subroutine garbage(okflag)
3939
a(i,j) = 0
4040
end do
4141
end do
42-
call dpotri_64('L', 3, a, 3, info)
42+
call scipy_dpotri_64('L', 3, a, 3, info)
4343
if (info.ne.0) then
4444
okflag = 0
4545
write(*,*) 'DPOTRI failed'
4646
return
4747
end if
4848

49-
call dgetrf_64(3, 3, a2, 3, ipiv, info)
49+
call scipy_dgetrf_64(3, 3, a2, 3, ipiv, info)
5050
if (info.ne.0) then
5151
okflag = 0
5252
write(*,*) 'DGETRF failed'
5353
return
5454
end if
55-
call dgetri_64(3, a2, 3, ipiv, work, lwork, info)
55+
call scipy_dgetri_64(3, a2, 3, ipiv, work, lwork, info)
5656
if (info.ne.0) then
5757
okflag = 0
5858
write(*,*) 'DGETRI failed'

tools/build_openblas.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ if [ "$if_bits" == "64" ]; then
8181
else
8282
interface_flags=""
8383
fi
84-
# XXX uncomment this
85-
# interface_flags="$interface_flags SYMBOLPREFIX=scipy_"
84+
interface_flags="$interface_flags SYMBOLPREFIX=scipy_"
8685

8786
# Build name for output library from gcc version and OpenBLAS commit.
8887
GCC_TAG="gcc_$(gcc -dumpversion | tr .- _)"

0 commit comments

Comments
 (0)