This commit is contained in:
Blaise Tine
2020-03-29 05:24:40 -04:00
parent ede41dff1b
commit ce0cc44d11
5 changed files with 9 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ run-ase: $(PROJECT)
run-rtlsim: $(PROJECT)
LD_LIBRARY_PATH=../../sw/rtlsim:$(LD_LIBRARY_PATH) ./$(PROJECT) -f kernel.bin
run-simx: $(PROJECT)
LD_LIBRARY_PATH=../../sw/simx:$(LD_LIBRARY_PATH) ./$(PROJECT) -f kernel.bin

Binary file not shown.

View File

@@ -115,7 +115,8 @@ int main(int argc, char *argv[]) {
// allocate shared memory
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) {
cleanup();
return -1;
@@ -205,6 +206,7 @@ int main(int argc, char *argv[]) {
if (0 == errors) {
printf("PASSED!\n");
} else {
printf("Found %d errors!\n", errors);
printf("FAILED!\n");
}