From aa757b954eaeb4478cfe8f2c235d81524e20e6bc Mon Sep 17 00:00:00 2001 From: dmed256 Date: Fri, 15 Jun 2018 20:00:59 -0500 Subject: [PATCH] [Lang] withLauncher used wrong inner/outer dims --- src/lang/modes/withLauncher.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lang/modes/withLauncher.cpp b/src/lang/modes/withLauncher.cpp index a43699d9f..85b08f9d4 100644 --- a/src/lang/modes/withLauncher.cpp +++ b/src/lang/modes/withLauncher.cpp @@ -198,6 +198,8 @@ namespace occa { outerCount += isOuter; innerCount += !isOuter; } + const int outerDims = outerCount; + const int innerDims = innerCount; // TODO 1.1: Properly fix this for (int i = 0; i < pathCount; ++i) { @@ -230,14 +232,14 @@ namespace occa { *(new expressionStatement( &launchBlock, *(new identifierNode(forSmnt.source, - "inner.dims = " + occa::toString(innerCount))) + "inner.dims = " + occa::toString(innerDims))) )) ); launchBlock.addFirst( *(new expressionStatement( &launchBlock, *(new identifierNode(forSmnt.source, - "outer.dims = " + occa::toString(outerCount))) + "outer.dims = " + occa::toString(outerDims))) )) ); launchBlock.addFirst(