adding compiler tests to regression suite
This commit is contained in:
@@ -9,6 +9,7 @@ set -e
|
|||||||
./ci/test_opencl.sh
|
./ci/test_opencl.sh
|
||||||
./ci/test_driver.sh
|
./ci/test_driver.sh
|
||||||
./ci/test_simx.sh
|
./ci/test_simx.sh
|
||||||
|
./ci/test_compiler.sh
|
||||||
|
|
||||||
# Build tests disabling extensions
|
# Build tests disabling extensions
|
||||||
CONFIGS=-DEXT_M_DISABLE make -C hw/simulate
|
CONFIGS=-DEXT_M_DISABLE make -C hw/simulate
|
||||||
|
|||||||
18
ci/test_compiler.sh
Normal file
18
ci/test_compiler.sh
Normal file
@@ -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
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
OPAE_HOME ?= /tools/opae/1.4.0
|
OPAE_HOME ?= /tools/opae/1.4.0
|
||||||
|
|
||||||
#CXXFLAGS += -std=c++11 -O2 -DNDEBUG -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 += -std=c++11 -O0 -g -Wall -Wextra -pedantic -Wfatal-errors
|
||||||
|
|
||||||
CXXFLAGS += -I../include -I$(OPAE_HOME)/include -I../../hw
|
CXXFLAGS += -I../include -I$(OPAE_HOME)/include -I../../hw
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ PROJECT = libvortex.so
|
|||||||
|
|
||||||
SIMX_DIR = ../../simX
|
SIMX_DIR = ../../simX
|
||||||
|
|
||||||
#CXXFLAGS += -std=c++11 -O2 -Wall -Wextra -Wfatal-errors
|
CXXFLAGS += -std=c++11 -O2 -Wall -Wextra -Wfatal-errors
|
||||||
CXXFLAGS += -std=c++11 -g -O0 -Wall -Wextra -Wfatal-errors
|
#CXXFLAGS += -std=c++11 -g -O0 -Wall -Wextra -Wfatal-errors
|
||||||
|
|
||||||
CXXFLAGS += -fPIC -Wno-aligned-new -Wno-maybe-uninitialized
|
CXXFLAGS += -fPIC -Wno-aligned-new -Wno-maybe-uninitialized
|
||||||
CXXFLAGS += -I../include -I../../hw -I$(SIMX_DIR)
|
CXXFLAGS += -I../include -I../../hw -I$(SIMX_DIR)
|
||||||
|
|||||||
@@ -188,9 +188,7 @@ RAM::RAM(uint32_t num_pages, uint32_t page_size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
RAM::~RAM() {
|
RAM::~RAM() {
|
||||||
for (auto& page : mem_) {
|
this->clear();
|
||||||
delete[] page;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RAM::clear() {
|
void RAM::clear() {
|
||||||
|
|||||||
Reference in New Issue
Block a user