From 002d8fbec9c5c5390107c2b49032e206619247fd Mon Sep 17 00:00:00 2001 From: Blaise Tine Date: Sun, 29 Mar 2020 00:40:02 -0400 Subject: [PATCH] minor update --- driver/tests/demo/common.h | 2 ++ driver/tests/demo/demo | Bin 39968 -> 39968 bytes driver/tests/demo/demo.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/driver/tests/demo/common.h b/driver/tests/demo/common.h index 813d393e..8241b476 100644 --- a/driver/tests/demo/common.h +++ b/driver/tests/demo/common.h @@ -3,6 +3,8 @@ #include "../../../runtime/config.h" +#define MAX_CORES NUMBER_CORES + #define MAX_WARPS NW #define MAX_THREADS NT diff --git a/driver/tests/demo/demo b/driver/tests/demo/demo index ea68ec164d6ef039c16c6f6ef2f3e7c22ed36265..b9a78efd1f2dae7b28502da978c54176874b42eb 100755 GIT binary patch delta 300 zcmZ3mgK5DIrVTAjB6fSapIrO4Es#NVj-h+s0`BOkVQrIVFhxvWFq38S7p54-<&!@$ zi8D?ElaU~Da>5Ldj0j`<HdArPB|Pf-%c76!37_?B=0*&>?- Hefj+Xl0jwz delta 287 zcmZ3mgK5DIrVTAjB0S~N)t}E4F(2dejgbIAlm`N767qX_!K39Y(Ws4gKr53kS(-X(3jsI039G;1poj5 diff --git a/driver/tests/demo/demo.cpp b/driver/tests/demo/demo.cpp index 763c67b7..e1b57379 100644 --- a/driver/tests/demo/demo.cpp +++ b/driver/tests/demo/demo.cpp @@ -55,7 +55,7 @@ int main(int argc, char *argv[]) { kernel_arg_t kernel_arg; uint32_t stride = BLOCK_SIZE / sizeof(uint32_t); - uint32_t num_points = MAX_WARPS * MAX_THREADS * stride; + uint32_t num_points = MAX_CORES * MAX_WARPS * MAX_THREADS * stride; uint32_t buf_size = num_points * sizeof(uint32_t); // parse command arguments