File: demo.mk

package info (click to toggle)
rocsparse 6.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,428 kB
  • sloc: cpp: 234,069; f90: 9,307; sh: 2,262; python: 1,939; makefile: 1,585; ansic: 440; xml: 26
file content (18 lines) | stat: -rw-r--r-- 531 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
help:
	@echo ""
	@echo "Demo on running tests with an external yaml file"
	@echo ""
	@echo "- help  : produces this help (default)"
	@echo "- run   : run the tests"
	@echo ""
	@echo "set the variable MATRICES_DIR (default is ./) to indicate where the matrix files are."
	@echo ""

MATRICES_DIR=./
ROCSPARSE_TEST_PATH=../../build/release/clients/staging
ROCSPARSE_TEST=$(ROCSPARSE_TEST_PATH)/rocsparse-test

run: demo.txt

%.txt:%.yaml
	$(ROCSPARSE_TEST) -I $(ROCSPARSE_TEST_PATH) --matrices-dir $(MATRICES_DIR) --yaml $< > $@ 2>&1