-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmeson.build
More file actions
58 lines (49 loc) · 1.27 KB
/
Copy pathmeson.build
File metadata and controls
58 lines (49 loc) · 1.27 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
project(
'Cuckoo-GPU',
['cuda', 'cpp'],
version: '0.1',
meson_version: '>= 1.3.0',
default_options: [
'warning_level=3',
'cpp_std=c++20',
'optimization=3',
],
)
cuda_args = [
'-std=c++20',
'--expt-extended-lambda',
'--expt-relaxed-constexpr',
'--generate-line-info',
'-gencode=arch=compute_120,code=sm_120',
'-gencode=arch=compute_90,code=sm_90',
'-gencode=arch=compute_80,code=sm_80',
'-gencode=arch=compute_75,code=compute_75',
]
cuckoogpu_dep = declare_dependency(
include_directories: include_directories('include'),
)
gossip_dep = subproject('gossip').get_variable('gossip_dep')
build_examples = (
get_option('examples').enabled()
or (get_option('examples').auto() and not meson.is_subproject())
)
build_benchmarks = (
get_option('benchmarks').enabled()
or (get_option('benchmarks').auto() and not meson.is_subproject())
)
build_tests = (
get_option('tests').enabled()
or (get_option('tests').auto() and not meson.is_subproject())
)
if build_benchmarks or build_examples
cli11_dep = subproject('cli11').get_variable('CLI11_dep')
endif
if build_examples
subdir('examples')
endif
if build_benchmarks
subdir('benchmarks')
endif
if build_tests
subdir('tests')
endif