aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.toml
blob: adab2b9f8261a7e68234bd77498c2f4bf9f8b5ab (plain)
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
[config]
default_to_workspace = false
skip_core_tasks = true

[tasks.build]
run_task = [
    { name = "build-windows", condition = { platforms = ["windows"] } },
    { name = "build-linux", condition = { platforms = ["linux"] } },
]

[tasks.build-windows]
command = "cargo"
args = [
    "build",
    "-p", "offline_compiler",
    "-p", "zluda_dump",
    "-p", "zluda_inject",
    "-p", "zluda_lib",
    "-p", "zluda_ml",
    "-p", "zluda_redirect",
]

[tasks.build-linux]
command = "cargo"
args = [
    "build",
    "-p", "offline_compiler",
    "-p", "zluda_blas",
    "-p", "zluda_blaslt",
    "-p", "zluda_ccl",
    "-p", "zluda_dnn",
    "-p", "zluda_dump",
    "-p", "zluda_fft",
    "-p", "zluda_lib",
    "-p", "zluda_ml",
    "-p", "zluda_sparse",
]

[tasks.build-release]
command = "cargo"
args = [
    "build", 
    "--release",
    "-p", "offline_compiler",
    "-p", "zluda_blas",
    "-p", "zluda_blaslt",
    "-p", "zluda_ccl",
    "-p", "zluda_dnn",
    "-p", "zluda_dump",
    "-p", "zluda_fft",
    "-p", "zluda_lib",
    "-p", "zluda_ml",
    "-p", "zluda_sparse",
]

[tasks.default]
alias = "build"