Skip to content

Commit e99cd80

Browse files
committed
minor
1 parent 6aa41dc commit e99cd80

File tree

3 files changed

+16
-22
lines changed

3 files changed

+16
-22
lines changed

jlibrary/addons/math/lapack/lapack.ijs

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ NB. lapack definitions
88
path=: jpath '~addons/math/lapack/'
99

1010
3 : 0''
11-
if. UNAME-:'Linux' do.
11+
if. 0: ~: 4!:0 @ <'IFWA64' do. IFWA64=. 0 end.
12+
if. (<UNAME)e.'Linux';'FreeBSD';'OpenBSD' do.
1213
dll=: 'liblapack.so.3'
1314
JLAPACK=: 'F'
1415
elseif. UNAME-:'Darwin' do.
@@ -23,31 +24,25 @@ elseif. UNAME-:'Darwin' do.
2324
end.
2425
elseif. UNAME-:'Win' do.
2526
if. IF64 do.
26-
if. fexist path,'jlapack64.dll' do.
27-
dll=: '"',path,'jlapack64.dll"'
28-
JLAPACK=: 'J'
29-
else.
30-
dll=: 'liblapack.dll'
27+
if. IFWA64 do.
28+
dll=: 'libopenblas',((-.IFWA64){::'_arm64';(-.IF64)#'_32'),'.dll'
3129
JLAPACK=: 'F'
30+
else.
31+
if. fexist path,'jlapack64.dll' do.
32+
dll=: '"',path,'jlapack64.dll"'
33+
JLAPACK=: 'J'
34+
else.
35+
dll=: 'libopenblas',((-.IFWA64){::'_arm64';(-.IF64)#'_32'),'.dll'
36+
JLAPACK=: 'F'
37+
end.
3238
end.
3339
else.
3440
dll=: '"',path,'jlapack.dll"'
3541
JLAPACK=: 'J'
3642
end.
37-
elseif. UNAME-:'Android' do.
38-
JLAPACK=: 'J'
39-
arch=. LF-.~ 2!:0'getprop ro.product.cpu.abi'
40-
if. IF64 < arch-:'arm64-v8a' do.
41-
arch=. 'armeabi-v7a'
42-
elseif. IF64 < arch-:'x86_64' do.
43-
arch=. 'x86'
44-
end.
45-
dll=: '"',(jpath'~bin/../libexec/android-libs/',arch,'/liblapack.so'),'"'
46-
if. 0=fexist dltb dll -. '"' do.
47-
smoutput 'lapack error: please run install_jlapack_'''' to install liblapack.so'
48-
end.
4943
elseif. do.
50-
'platform not supported' 13!:8[10
44+
dll=: 'liblapack.so'
45+
JLAPACK=: 'F'
5146
end.
5247
''
5348
)

script/testga.ijs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ echo '_DEBUG: ',": 2!:5'_DEBUG'
2828
echo 'RUNNER_ARCH: ',": 2!:5'RUNNER_ARCH'
2929

3030
ddall=: ddall -. blacklist=: blacklist, ('OpenBSD'-:UNAME)#(<testpath),each <'gstack.ijs' NB. temporarily disable
31-
ddall=: ddall -. blacklist=: blacklist, ('OpenBSD'-:UNAME)#(<testpath),each 'gtdot.ijs';'gtdot3.ijs';'gtdot4.ijs';'gtdot5.ijs' NB. temporarily disable
32-
ddall=: ~. ddall ,~ (-.IFWA64)#((<UNAME)e.'Win';'Darwin')#(<testpath),each 'glapack.ijs';'glapackcb.ijs'
31+
ddall=: ~. ddall -. blacklist=: blacklist, ('OpenBSD'-:UNAME)#(<testpath),each 'gtdot.ijs';'gtdot3.ijs';'gtdot4.ijs';'gtdot5.ijs' NB. temporarily disable
3332

3433
NB. smoke test
3534

test/tsu.ijs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ blacklist=: ((<testpath),each 'gmbx.ijs';'gfft.ijs';'glapack.ijs';'glapackcb.ijs
5050
blacklist=: blacklist, (IFIOS+.(UNAME-:'Wasm'))#(<testpath),each <'gregex.ijs' NB. require libjpcre2 binary
5151
blacklist=: blacklist, (0=(9!:56'c_avx2')+.9!:56'emu_avx2')#(<testpath),each 'g6x14.ijs';'g128x14.ijs';'g128x19.ijs' NB. avx2 or emu_avx2
5252
blacklist=: blacklist, (0=9!:56'PYXES')#(<testpath),each 'gtdot.ijs';'gtdot1.ijs';'gtdot2.ijs';'gtdot3.ijs';'gtdot4.ijs';'gtdot5.ijs';'g128x14.ijs';'g128x19.ijs' NB. require multithreading
53-
blacklist=: blacklist, (0=15!:23'')#(<testpath),each 'g15x.ijs';'g7x5.ijs';'gdll.ijs';'gdll_df.ijs';'gmmf.ijs';'gmmf1s.ijs';'gmmf1u.ijs';'gmmf1w.ijs' NB. 15!:0 unavailable
53+
blacklist=: blacklist, (0=15!:23'')#(<testpath),each 'g15x.ijs';'g7x5.ijs';'gdll.ijs';'gdll_df.ijs';'gmmf.ijs';'gmmf1s.ijs';'gmmf1u.ijs';'gmmf1w.ijs';'gfft.ijs';'glapack.ijs';'glapackcb.ijs';'gregex.ijs' NB. 15!:0 unavailable
5454
blacklist=: blacklist, ('Wasm'-:UNAME)#(<testpath),each <'gstack.ijs' NB. crash
5555
blacklist=: blacklist, (IFQT*.'Wasm'-:UNAME)#(<testpath),each 'g331ps.ijs';'gsp422.ijs';'gsp432.ijs' NB. crash
5656
blacklist=: blacklist, IFIOS#(<testpath),each <'gipht.ijs' NB. crash if included in the whole suite, but ok if running alone

0 commit comments

Comments
 (0)