diff --git a/ci/regression.sh b/ci/regression.sh index c2ff7466..13d8136d 100755 --- a/ci/regression.sh +++ b/ci/regression.sh @@ -9,6 +9,7 @@ set -e ./ci/test_opencl.sh ./ci/test_driver.sh ./ci/test_simx.sh +./ci/test_compiler.sh # Build tests disabling extensions CONFIGS=-DEXT_M_DISABLE make -C hw/simulate diff --git a/ci/test_compiler.sh b/ci/test_compiler.sh new file mode 100644 index 00000000..14bf260f --- /dev/null +++ b/ci/test_compiler.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# exit when any command fails +set -e + +# rebuild runtime +make -C runtime clean +make -C runtime + +# rebuild native kernel +make -C driver/tests/dogfood clean-all +make -C driver/tests/dogfood +./ci/blackbox.sh --driver=vlsim --cores=1 --app=dogfood + +# rebuild opencl kernel +make -C benchmarks/opencl/sgemm clean-all +make -C benchmarks/opencl/sgemm +./ci/blackbox.sh --driver=vlsim --cores=1 --app=sgemm \ No newline at end of file diff --git a/driver/opae/Makefile b/driver/opae/Makefile index 926d0abf..1a8c6051 100644 --- a/driver/opae/Makefile +++ b/driver/opae/Makefile @@ -1,7 +1,7 @@ OPAE_HOME ?= /tools/opae/1.4.0 -#CXXFLAGS += -std=c++11 -O2 -DNDEBUG -Wall -Wextra -pedantic -Wfatal-errors -CXXFLAGS += -std=c++11 -O0 -g -Wall -Wextra -pedantic -Wfatal-errors +CXXFLAGS += -std=c++11 -O2 -DNDEBUG -Wall -Wextra -pedantic -Wfatal-errors +#CXXFLAGS += -std=c++11 -O0 -g -Wall -Wextra -pedantic -Wfatal-errors CXXFLAGS += -I../include -I$(OPAE_HOME)/include -I../../hw diff --git a/driver/simx/Makefile b/driver/simx/Makefile index dfd8f1a6..fb3a23e2 100644 --- a/driver/simx/Makefile +++ b/driver/simx/Makefile @@ -3,8 +3,8 @@ PROJECT = libvortex.so SIMX_DIR = ../../simX -#CXXFLAGS += -std=c++11 -O2 -Wall -Wextra -Wfatal-errors -CXXFLAGS += -std=c++11 -g -O0 -Wall -Wextra -Wfatal-errors +CXXFLAGS += -std=c++11 -O2 -Wall -Wextra -Wfatal-errors +#CXXFLAGS += -std=c++11 -g -O0 -Wall -Wextra -Wfatal-errors CXXFLAGS += -fPIC -Wno-aligned-new -Wno-maybe-uninitialized CXXFLAGS += -I../include -I../../hw -I$(SIMX_DIR) diff --git a/simX/mem.cpp b/simX/mem.cpp index 70bb7846..42f8fbba 100644 --- a/simX/mem.cpp +++ b/simX/mem.cpp @@ -188,9 +188,7 @@ RAM::RAM(uint32_t num_pages, uint32_t page_size) } RAM::~RAM() { - for (auto& page : mem_) { - delete[] page; - } + this->clear(); } void RAM::clear() {