Debian Codegraph @

test/Makefile

raw symbols SCIP
1 PREFIX ?= f2008
2
3 ifneq (,$(findstring sm_,$(CFLAGS))) # have CUDA arch flag
4 TEST_COLLECTIONS = vecadd hipblas hipfft
5 else
6 TEST_COLLECTIONS = vecadd rocfft rocsparse rocsolver hipblas rocblas hipfft
7 endif
8 RUN_TEST_COLLECTIONS := $(addprefix run., $(TEST_COLLECTIONS))
9 CLEAN_TEST_COLLECTIONS := $(addprefix clean., $(TEST_COLLECTIONS))
10
11 .PHONY: build_all clean_all run_all build clean run $(TEST_COLLECTIONS) $(RUN_TEST_COLLECTIONS) $(CLEAN_TEST_COLLECTIONS)
12
13 build_all:
14 +make -C . build PREFIX=f2003
15 +make -C . build PREFIX=f2008
16 clean_all:
17 +make -C . clean PREFIX=f2003
18 +make -C . clean PREFIX=f2008
19 run_all:
20 +make -C . run PREFIX=f2003
21 +make -C . run PREFIX=f2008
22
23 $(TEST_COLLECTIONS):
24 +make -C $(PREFIX)/$@ build
25
26 $(RUN_TEST_COLLECTIONS):
27 +make -C $(PREFIX)/$(shell echo $@ | sed "s,run.,,g") run
28
29 $(CLEAN_TEST_COLLECTIONS):
30 +make -C $(PREFIX)/$(shell echo $@ | sed "s,clean.,,g") clean
31
32 build: $(TEST_COLLECTIONS)
33
34 run: $(RUN_TEST_COLLECTIONS)
35
36 clean: $(CLEAN_TEST_COLLECTIONS)