This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLakefile
59 lines (47 loc) · 1.71 KB
/
Lakefile
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
#|-*- mode:lisp -*-|#
(in-package :cl-user)
(defpackage :lake.user
(:use :cl :asdf :lake :cl-syntax)
(:shadowing-import-from :lake
:directory))
(in-package :lake.user)
(use-syntax :interpol)
(defparameter *app-name* "cl-waffe")
(defparameter *version* "0.1")
; To add: Ros ensure
(task "default" ()
(echo #?"${*app-name*} version: ${*version*}
Usage: lake [command]
Tasks:
test Operate tests
benchmark Start Benchmarking
benchmark-python Start Benchmarking with cl-waffe and numpy.
gendoc Generating Documentations
example:install Install training data for examples
example:mnist Run example model with MNIST
example:rnn Run example model with Seq2Seq
"))
(task "test" ()
(sh "./roswell/cl-waffe-test.ros"))
(task "benchmark" ()
(sh "./roswell/cl-waffe-benchmark.ros"))
(task "benchmark-python" ()
;(sh "export OPENBLAS_NUM_THREADS=4 && ros build ./roswell/cl-waffe-benchmark.ros")
(sh "export MKL_NUM_THREADS=4 && sh ./scripts/python-benchmark.sh")
(sh "export OPENBLAS_NUM_THREADS=4 && ./roswell/cl-waffe-benchmark.ros python"))
(task "gendoc" ()
(sh "./roswell/gendoc.ros"))
(namespace "build" ()
(task ("mps") ()
(sh "sh ./source/kernel_backends/mps/build_metal.sh")
(sh "cd ./source/kernel_backends/mps && swift test && swift build -c release && cd ../../../")))
(namespace "example"
(task ("install") ()
(sh "cd ./examples && sh install.sh && cd ../"))
(task ("mnist") ()
(sh #?"./run-test-model.ros mnist"))
(task ("fnn") ()
(sh #?"./run-test-model.ros fnn"))
(task ("rnn") ()
(sh #?"./run-test-model.ros rnn")))
;;; here follow your tasks...