summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2014-10-23 13:31:59 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2014-10-23 13:31:59 +0800
commitaa81fd8b4822014af045f3b597312970319b00b1 (patch)
tree89fee29a7682f58bbed19e147fbb7f3559a7d652
parentfd0204918b920077a14298b00a64bf38f08fb2d3 (diff)
Fix gpu_add.cl build failure
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
-rw-r--r--MPBenchmarks/appMain.cpp1
-rw-r--r--MPBenchmarks/gpu_add.cl18
2 files changed, 9 insertions, 10 deletions
diff --git a/MPBenchmarks/appMain.cpp b/MPBenchmarks/appMain.cpp
index 3ddb725..2f18ec7 100644
--- a/MPBenchmarks/appMain.cpp
+++ b/MPBenchmarks/appMain.cpp
@@ -235,7 +235,6 @@ int main(int argc,char ** argv)
title.assign("zeroN 64-bit");
g = new ZeroGPUTask(64,log);
break;
-
case 10:
title.assign("AddN v1 16-bit");
g = new AddNGPUTask(ADDN_V1,16,log);
diff --git a/MPBenchmarks/gpu_add.cl b/MPBenchmarks/gpu_add.cl
index 7237395..5668b98 100644
--- a/MPBenchmarks/gpu_add.cl
+++ b/MPBenchmarks/gpu_add.cl
@@ -4,23 +4,23 @@
#if (WORD_SIZE == 64)
typedef long Word;
-const Word LOG_BASE = 62;
-const Word BASE = (Word)1<<(Word)62;
-const Word BASE_MINUS1 = (Word)1<<(Word)62 - 1;
+constant Word LOG_BASE = 62;
+constant Word BASE = (Word)1<<(Word)62;
+constant Word BASE_MINUS1 = ((Word)1<<(Word)62) - 1;
#elif (WORD_SIZE == 32)
typedef int Word;
-const Word LOG_BASE = 30;
-const Word BASE = (Word)1<<(Word)30;
-const Word BASE_MINUS1 = (Word)1<<(Word)30 - 1;
+constant Word LOG_BASE = 30;
+constant Word BASE = (Word)1<<(Word)30;
+constant Word BASE_MINUS1 = ((Word)1<<(Word)30) - 1;
#elif (WORD_SIZE == 16)
typedef short Word;
-const Word LOG_BASE = 14;
-const Word BASE = (Word)1<<(Word)14;
-const Word BASE_MINUS1 = (Word)1<<(Word)14 - 1;
+constant Word LOG_BASE = 14;
+constant Word BASE = (Word)1<<(Word)14;
+constant Word BASE_MINUS1 = ((Word)1<<(Word)14) - 1;
#endif