update
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#CFLAGS += -std=c++11 -O3 -Wall -Wextra -pedantic -Wfatal-errors
|
CFLAGS += -std=c++11 -O3 -Wall -Wextra -pedantic -Wfatal-errors
|
||||||
CFLAGS += -std=c++11 -g -O0 -Wall -Wextra -pedantic -Wfatal-errors
|
#CFLAGS += -std=c++11 -g -O0 -Wall -Wextra -pedantic -Wfatal-errors
|
||||||
|
|
||||||
#USE_MULTICORE=1
|
USE_MULTICORE=1
|
||||||
|
|
||||||
CFLAGS += -I../../include -I../../../../rtl/simulate -I../../../../runtime
|
CFLAGS += -I../../include -I../../../../rtl/simulate -I../../../../runtime
|
||||||
|
|
||||||
@@ -15,6 +15,7 @@ ifdef USE_MULTICORE
|
|||||||
CFLAGS += -DUSE_MULTICORE
|
CFLAGS += -DUSE_MULTICORE
|
||||||
RTL_TOP = Vortex_SOC
|
RTL_TOP = Vortex_SOC
|
||||||
else
|
else
|
||||||
|
VL_FLAGS += -DSINGLE_CORE_BENCH
|
||||||
RTL_TOP = Vortex
|
RTL_TOP = Vortex
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -115,7 +115,8 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
// allocate shared memory
|
// allocate shared memory
|
||||||
std::cout << "allocate shared memory" << std::endl;
|
std::cout << "allocate shared memory" << std::endl;
|
||||||
ret = vx_alloc_shared_mem(device, buf_size, &buffer);
|
uint32_t alloc_size = std::max<uint32_t>(buf_size, sizeof(kernel_arg_t));
|
||||||
|
ret = vx_alloc_shared_mem(device, alloc_size, &buffer);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
cleanup();
|
cleanup();
|
||||||
return -1;
|
return -1;
|
||||||
@@ -205,6 +206,7 @@ int main(int argc, char *argv[]) {
|
|||||||
if (0 == errors) {
|
if (0 == errors) {
|
||||||
printf("PASSED!\n");
|
printf("PASSED!\n");
|
||||||
} else {
|
} else {
|
||||||
|
printf("Found %d errors!\n", errors);
|
||||||
printf("FAILED!\n");
|
printf("FAILED!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ module VX_warp_scheduler (
|
|||||||
thread_masks[0] <= 1; // Activating first thread in first warp
|
thread_masks[0] <= 1; // Activating first thread in first warp
|
||||||
warp_stalled <= 0;
|
warp_stalled <= 0;
|
||||||
didnt_split <= 0;
|
didnt_split <= 0;
|
||||||
|
warp_lock <= 0;
|
||||||
// total_barrier_stall = 0;
|
// total_barrier_stall = 0;
|
||||||
for (curr_w_help = 1; curr_w_help < `NW; curr_w_help=curr_w_help+1) begin
|
for (curr_w_help = 1; curr_w_help < `NW; curr_w_help=curr_w_help+1) begin
|
||||||
warp_pcs[curr_w_help] <= 0;
|
warp_pcs[curr_w_help] <= 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user