-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnimblas.nimble
More file actions
61 lines (53 loc) · 1.54 KB
/
nimblas.nimble
File metadata and controls
61 lines (53 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version = "0.3.1"
author = "Andrea Ferretti"
description = "BLAS interface for Nim"
license = "Apache2"
skipDirs = @["tests"]
requires "nim >= 0.19.9"
proc configForTests() =
--hints: off
--linedir: on
--stacktrace: on
--linetrace: on
--debuginfo
--path: "."
--run
task test, "run NimBLAS tests":
configForTests()
setCommand "c", "tests/test.nim"
task testopenblas, "run NimBLAS tests with openBLAS":
configForTests()
--define:"blas=openblas"
setCommand "c", "tests/test.nim"
task testatlas, "run NimBLAS tests with ATLAS":
configForTests()
--define:"blas=cblas"
setCommand "c", "tests/test.nim"
task testmkl, "run NimBLAS tests with MKL":
configForTests()
--define:"blas=mkl_intel_lp64"
--clibdir: "/opt/intel/mkl/lib/intel64"
--passl: "/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.a"
--passl: "-lmkl_core"
--passl: "-lmkl_sequential"
--passl: "-lpthread"
--passl: "-lm"
--dynlibOverride:mkl_intel_lp64
setCommand "c", "tests/test.nim"
task testmklthreaded, "run NimBLAS tests with MKL threaded":
configForTests()
--define: "blas=mkl_intel_lp64"
--clibdir: "/opt/intel/mkl/lib/intel64"
--passl: "/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.a"
--passl: "-lmkl_core"
--passl: "-lmkl_gnu_thread"
--passl: "-lgomp"
--passl: "-lm"
--dynlibOverride:mkl_intel_lp64
setCommand "c", "tests/test.nim"
task tests, "run tests with all BLAS versions":
exec("nimble test")
exec("nimble testopenblas")
exec("nimble testatlas")
exec("nimble testmkl")
exec("nimble testmklthreaded")