mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 13:27:29 -04:00
adding compiler tests to regression suite
This commit is contained in:
parent
ad11bdfc87
commit
3a266fc792
5 changed files with 24 additions and 7 deletions
|
@ -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
|
||||
|
|
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
|
||||
|
||||
#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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue