File: Makefile

package info (click to toggle)
kokkos 4.7.01-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,636 kB
  • sloc: cpp: 223,676; sh: 2,446; makefile: 2,437; python: 91; fortran: 4; ansic: 2
file content (123 lines) | stat: -rw-r--r-- 4,895 bytes parent folder | download | duplicates (5)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
ifndef KOKKOS_PATH
  MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
  KOKKOS_PATH = $(subst Makefile,,$(MAKEFILE_PATH))../../..
endif

ifndef KOKKOS_SETTINGS
  KOKKOS_SETTINGS = "KOKKOS_PATH=${KOKKOS_PATH}"
  ifdef KOKKOS_ARCH
    KOKKOS_SETTINGS += "KOKKOS_ARCH=${KOKKOS_ARCH}"
  endif
  ifdef KOKKOS_DEVICES
    KOKKOS_SETTINGS += "KOKKOS_DEVICES=${KOKKOS_DEVICES}"
  endif
  ifdef KOKKOS_OPTIONS
    KOKKOS_SETTINGS += "KOKKOS_OPTIONS=${KOKKOS_OPTIONS}"
  endif
  ifdef KOKKOS_CUDA_OPTIONS
    KOKKOS_SETTINGS += "KOKKOS_CUDA_OPTIONS=${KOKKOS_CUDA_OPTIONS}"
  endif
endif

build:
	mkdir -p 01_data_layouts
	cd ./01_data_layouts; \
	$(MAKE) build -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/01_data_layouts/Makefile ${KOKKOS_SETTINGS}
	mkdir -p 02_memory_traits
	cd ./02_memory_traits; \
	$(MAKE) build -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/02_memory_traits/Makefile ${KOKKOS_SETTINGS}
	mkdir -p 03_subviews
	cd ./03_subviews; \
	$(MAKE) build -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/03_subviews/Makefile ${KOKKOS_SETTINGS}
	mkdir -p 04_dualviews
	cd ./04_dualviews; \
	$(MAKE) build -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/04_dualviews/Makefile ${KOKKOS_SETTINGS}
	mkdir -p 05_NVIDIA_UVM
	cd ./05_NVIDIA_UVM; \
	$(MAKE) build -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/05_NVIDIA_UVM/Makefile ${KOKKOS_SETTINGS}
	#mkdir -p 06_AtomicViews
	#cd ./06_AtomicViews; \
	#$(MAKE) build -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/06_AtomicViews/Makefile ${KOKKOS_SETTINGS}
	#mkdir -p 07_Overlapping_DeepCopy
	#cd ./07_Overlapping_DeepCopy; \
	#$(MAKE) build -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/07_Overlapping_DeepCopy/Makefile ${KOKKOS_SETTINGS}

build-insource:
	cd ./01_data_layouts; \
	$(MAKE) build ${KOKKOS_SETTINGS}
	cd ./02_memory_traits; \
	$(MAKE) build ${KOKKOS_SETTINGS}
	cd ./03_subviews; \
	$(MAKE) build ${KOKKOS_SETTINGS}
	cd ./04_dualviews; \
	$(MAKE) build ${KOKKOS_SETTINGS}
	cd ./05_NVIDIA_UVM; \
	$(MAKE) build ${KOKKOS_SETTINGS}
	#cd ./06_AtomicViews; \
	#$(MAKE) build ${KOKKOS_SETTINGS}
	#cd ./07_Overlapping_DeepCopy; \
	#$(MAKE) build ${KOKKOS_SETTINGS}

test:
	cd ./01_data_layouts; \
	$(MAKE) test -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/01_data_layouts/Makefile ${KOKKOS_SETTINGS}
	cd ./02_memory_traits; \
	$(MAKE) test -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/02_memory_traits/Makefile ${KOKKOS_SETTINGS}
	cd ./03_subviews; \
	$(MAKE) test -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/03_subviews/Makefile ${KOKKOS_SETTINGS}
	cd ./04_dualviews; \
	$(MAKE) test -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/04_dualviews/Makefile ${KOKKOS_SETTINGS}
	cd ./05_NVIDIA_UVM; \
	$(MAKE) test -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/05_NVIDIA_UVM/Makefile ${KOKKOS_SETTINGS}
	#cd ./06_AtomicViews; \
	#$(MAKE) test -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/06_AtomicViews/Makefile ${KOKKOS_SETTINGS}
	#cd ./07_Overlapping_DeepCopy; \
	#$(MAKE) test -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/07_Overlapping_DeepCopy/Makefile ${KOKKOS_SETTINGS}

test-insource:
	cd ./01_data_layouts; \
	$(MAKE) test ${KOKKOS_SETTINGS}
	cd ./02_memory_traits; \
	$(MAKE) test ${KOKKOS_SETTINGS}
	cd ./03_subviews; \
	$(MAKE) test ${KOKKOS_SETTINGS}
	cd ./04_dualviews; \
	$(MAKE) test ${KOKKOS_SETTINGS}
	cd ./05_NVIDIA_UVM; \
	$(MAKE) test ${KOKKOS_SETTINGS}
	#cd ./06_AtomicViews; \
	#$(MAKE) test ${KOKKOS_SETTINGS}
	#cd ./07_Overlapping_DeepCopy; \
	#$(MAKE) test ${KOKKOS_SETTINGS}

clean:
	cd ./01_data_layouts; \
	$(MAKE) clean -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/01_data_layouts/Makefile ${KOKKOS_SETTINGS}
	cd ./02_memory_traits; \
	$(MAKE) clean -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/02_memory_traits/Makefile ${KOKKOS_SETTINGS}
	cd ./03_subviews; \
	$(MAKE) clean -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/03_subviews/Makefile ${KOKKOS_SETTINGS}
	cd ./04_dualviews; \
	$(MAKE) clean -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/04_dualviews/Makefile ${KOKKOS_SETTINGS}
	cd ./05_NVIDIA_UVM; \
	$(MAKE) clean -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/05_NVIDIA_UVM/Makefile ${KOKKOS_SETTINGS}
	#cd ./06_AtomicViews; \
	#$(MAKE) clean -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/06_AtomicViews/Makefile ${KOKKOS_SETTINGS}
	#cd ./07_Overlapping_DeepCopy; \
	#$(MAKE) clean -f ${KOKKOS_PATH}/example/tutorial/Advanced_Views/07_Overlapping_DeepCopy/Makefile ${KOKKOS_SETTINGS}

clean-insource:
	cd ./01_data_layouts; \
	$(MAKE) clean ${KOKKOS_SETTINGS}
	cd ./02_memory_traits; \
	$(MAKE) clean ${KOKKOS_SETTINGS}
	cd ./03_subviews; \
	$(MAKE) clean ${KOKKOS_SETTINGS}
	cd ./04_dualviews; \
	$(MAKE) clean ${KOKKOS_SETTINGS}
	cd ./05_NVIDIA_UVM; \
	$(MAKE) clean ${KOKKOS_SETTINGS}
	#cd ./06_AtomicViews; \
	#$(MAKE) clean ${KOKKOS_SETTINGS}
	#cd ./07_Overlapping_DeepCopy; \
	#$(MAKE) clean ${KOKKOS_SETTINGS}