From e6188044ee6a953849151d860c4b8af027256adb Mon Sep 17 00:00:00 2001
From: Ben Schreiber <bjschre2@illinois.edu>
Date: Thu, 16 Jan 2020 16:06:19 -0600
Subject: [PATCH] Fix type casting in stencil test

---
 hpvm/test/parboil/benchmarks/stencil/src/visc/stencil.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hpvm/test/parboil/benchmarks/stencil/src/visc/stencil.cpp b/hpvm/test/parboil/benchmarks/stencil/src/visc/stencil.cpp
index 11a02fdd48..9ecba96aed 100644
--- a/hpvm/test/parboil/benchmarks/stencil/src/visc/stencil.cpp
+++ b/hpvm/test/parboil/benchmarks/stencil/src/visc/stencil.cpp
@@ -219,9 +219,9 @@ int main(int argc, char** argv) {
 
 
     //only use 1D thread block
-    int tx =256;
-    long block[3] = {tx,1,1};
-    long grid[3] = {(nx-2+tx-1)/tx*tx,ny-2,nz-2};
+    size_t tx = 256;
+    size_t block[3] = {tx,1,1};
+    size_t grid[3] = {((unsigned)nx-2+tx-1)/tx*tx,(unsigned)ny-2,(unsigned)nz-2};
     //size_t grid[3] = {nx-2,ny-2,nz-2};
     size_t offset[3] = {1,1,1};
 
-- 
GitLab