Skip to content
Snippets Groups Projects
Commit 7a1350a5 authored by Adel Ejjeh's avatar Adel Ejjeh
Browse files

Update hpvm/test/benchmarks/hpvm-cava/README.md,...

Update hpvm/test/benchmarks/hpvm-cava/README.md, hpvm/test/benchmarks/hpvm-cava/scripts/Makefile files
parent 52c73b3a
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,6 @@ After building HPVM, the following steps are required to build and run the camer
* This processes the raw image `example-tulip-small/raw_tulip-small.bin`. Note that raw images are different from bitmaps, so you might need to obtain them using special software.
* This generates: `tulip-small.bin` and `tulip-small-<stage>.bin` where `<stage>` represents the stage of the pipeline, in the directory `example-tulip-small`.
3. Convert the binary outputs to a PNG with `./convert.sh example-tulip-small`.
* The convert script uses some scripts in the `script` directory. These need to be compiled first using `cd ./scripts; make`.
* **In order to compile the convert scripts, the path to numpy should be set correctly in the makefile.**
4. View the resulting PNG at `example-tulip-small/tulip-small.png`. (As well as all the intermediary images for each stage `tulip-small-<stage>.png`).
......@@ -5,15 +5,16 @@ IMAGE_NAME = $(basename $(IMAGE))
CXX = g++
CFLAGS = -c -fPIC -O2
LFLAGS = -I/usr/include/python2.7/ -I/home/kotsifa2/.local/lib/python2.7/site-packages/numpy/core/include
#LFLAGS = -I/group/brooks/environments/gem5-aladdin-ubuntu/include/python2.7/ -I/group/brooks/environments/gem5-aladdin-ubuntu/lib/python2.7/site-packages/numpy/core/include
# set local paths below
IFLAGS = -I/usr/include/python2.7/ -I/path/to/local/numpy/include
all: ${PROGRAM}
${PROGRAM}: ${PROGRAM}.cc
swig -python -o ${PROGRAM}_wrap.cc ${PROGRAM}.i
$(CXX) ${CFLAGS} ${PROGRAM}.cc -o ${PROGRAM}.o
$(CXX) ${CFLAGS} ${PROGRAM}_wrap.cc -o ${PROGRAM}_wrap.o ${LFLAGS}
$(CXX) ${CFLAGS} ${PROGRAM}_wrap.cc -o ${PROGRAM}_wrap.o ${IFLAGS}
$(CXX) -shared -o _${LIBRARY}.so *.o
run:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment