| … | … | @@ -66,7 +66,7 @@ unsigned int c = COMPRESS_FUNC(((CL_GLOBAL NAME##MODIFIER##Hash_TableData*)table |
| 66 | 66 | #endif |
| 67 | 67 | |
| 68 | 68 | #define OPEN_COMPACT_HASH_SEARCH_EXP(NAME, MODIFIER, COMPRESS_FUNC, COMPRESS_FUNC_DATA, READ_KEY_EXP, CL_GLOBAL, JUMP_EXP, CYCLE_EXP) \ |
| 69 | NAME##MODIFIER##Hash_TableData* mytableData = (NAME##MODIFIER##Hash_TableData*)tableData;\ | |
| 69 | GLOBAL NAME##MODIFIER##Hash_TableData* mytableData = (GLOBAL NAME##MODIFIER##Hash_TableData*)tableData;\ | |
| 70 | 70 | NAME##Hash_CompressLCGData compressFuncData = mytableData->compressFuncData;\ |
| 71 | 71 | unsigned int c = COMPRESS_FUNC(compressFuncData, key);\ |
| 72 | 72 | unsigned long int iteration = 0;\ |
| … | … | @@ -1,4 +1,31 @@ |
| 1 | 1 | |
| 2 | /* Copyright (C) 1991-2012 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | /* This header is separate from features.h so that the compiler can | |
| 19 | include it implicitly at the start of every compilation. It must | |
| 20 | not itself include <features.h> or any other header that includes | |
| 21 | <features.h> because the implicit include comes before any feature | |
| 22 | test macros that may be defined in a source file before it first | |
| 23 | explicitly includes a system header. GCC knows the name of this | |
| 24 | header in order to preinclude it. */ | |
| 25 | /* We do support the IEC 559 math functionality, real and complex. */ | |
| 26 | /* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) / | |
| 27 | Unicode 6.0. */ | |
| 28 | /* We do not support C11 <threads.h>. */ | |
| 2 | 29 | /* Copyright 2013-14. Los Alamos National Security, LLC. This material was produced |
| 3 | 30 | * under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National |
| 4 | 31 | * Laboratory (LANL), which is operated by Los Alamos National Security, LLC |
| … | … | @@ -4118,6 +4145,33 @@ int intintLCGQuadraticOpenCompactCLHash_BufferInsertNoOverwrite(intintHash_Table |
| 4118 | 4145 | } |
| 4119 | 4146 | const char *hash_source = |
| 4120 | 4147 | "\n" |
| 4148 | "/* Copyright (C) 1991-2012 Free Software Foundation, Inc.\n" | |
| 4149 | " This file is part of the GNU C Library.\n" | |
| 4150 | "\n" | |
| 4151 | " The GNU C Library is free software; you can redistribute it and/or\n" | |
| 4152 | " modify it under the terms of the GNU Lesser General Public\n" | |
| 4153 | " License as published by the Free Software Foundation; either\n" | |
| 4154 | " version 2.1 of the License, or (at your option) any later version.\n" | |
| 4155 | "\n" | |
| 4156 | " The GNU C Library is distributed in the hope that it will be useful,\n" | |
| 4157 | " but WITHOUT ANY WARRANTY; without even the implied warranty of\n" | |
| 4158 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n" | |
| 4159 | " Lesser General Public License for more details.\n" | |
| 4160 | "\n" | |
| 4161 | " You should have received a copy of the GNU Lesser General Public\n" | |
| 4162 | " License along with the GNU C Library; if not, see\n" | |
| 4163 | " <http://www.gnu.org/licenses/>. */\n" | |
| 4164 | "/* This header is separate from features.h so that the compiler can\n" | |
| 4165 | " include it implicitly at the start of every compilation. It must\n" | |
| 4166 | " not itself include <features.h> or any other header that includes\n" | |
| 4167 | " <features.h> because the implicit include comes before any feature\n" | |
| 4168 | " test macros that may be defined in a source file before it first\n" | |
| 4169 | " explicitly includes a system header. GCC knows the name of this\n" | |
| 4170 | " header in order to preinclude it. */\n" | |
| 4171 | "/* We do support the IEC 559 math functionality, real and complex. */\n" | |
| 4172 | "/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /\n" | |
| 4173 | " Unicode 6.0. */\n" | |
| 4174 | "/* We do not support C11 <threads.h>. */\n" | |
| 4121 | 4175 | "/* Copyright 2013-14. Los Alamos National Security, LLC. This material was produced\n" |
| 4122 | 4176 | " * under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National \n" |
| 4123 | 4177 | " * Laboratory (LANL), which is operated by Los Alamos National Security, LLC\n" |
| … | … | @@ -5185,8 +5239,8 @@ const char *hash_source = |
| 5185 | 5239 | " tableData[sizeof(intintLCGLinearOpenCompactCLHash_TableData)];\n" |
| 5186 | 5240 | " int index;\n" |
| 5187 | 5241 | " int exitCode;\n" |
| 5188 | " intintLCGLinearOpenCompactCLHash_TableData *mytableData =\n" | |
| 5189 | " (intintLCGLinearOpenCompactCLHash_TableData *) tableData;\n" | |
| 5242 | " __global intintLCGLinearOpenCompactCLHash_TableData *mytableData =\n" | |
| 5243 | " (__global intintLCGLinearOpenCompactCLHash_TableData *) tableData;\n" | |
| 5190 | 5244 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5191 | 5245 | " mytableData->compressFuncData;\n" |
| 5192 | 5246 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5236,8 +5290,10 @@ const char *hash_source = |
| 5236 | 5290 | " for (i = 0; i < numKeys; i++) {\n" |
| 5237 | 5291 | " key = keys[i];\n" |
| 5238 | 5292 | " valueOutput = &valuesOutput[i];\n" |
| 5239 | " intintLCGLinearOpenCompactCLHash_TableData *mytableData =\n" | |
| 5240 | " (intintLCGLinearOpenCompactCLHash_TableData *) tableData;\n" | |
| 5293 | " __global intintLCGLinearOpenCompactCLHash_TableData *mytableData\n" | |
| 5294 | " =\n" | |
| 5295 | " (__global intintLCGLinearOpenCompactCLHash_TableData *)\n" | |
| 5296 | " tableData;\n" | |
| 5241 | 5297 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5242 | 5298 | " mytableData->compressFuncData;\n" |
| 5243 | 5299 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5282,8 +5338,8 @@ const char *hash_source = |
| 5282 | 5338 | " tableData[sizeof(intintLCGLinearOpenCompactCLHash_TableData)];\n" |
| 5283 | 5339 | " int index;\n" |
| 5284 | 5340 | " int exitCode;\n" |
| 5285 | " intintLCGLinearOpenCompactCLHash_TableData *mytableData =\n" | |
| 5286 | " (intintLCGLinearOpenCompactCLHash_TableData *) tableData;\n" | |
| 5341 | " __global intintLCGLinearOpenCompactCLHash_TableData *mytableData =\n" | |
| 5342 | " (__global intintLCGLinearOpenCompactCLHash_TableData *) tableData;\n" | |
| 5287 | 5343 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5288 | 5344 | " mytableData->compressFuncData;\n" |
| 5289 | 5345 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5335,8 +5391,10 @@ const char *hash_source = |
| 5335 | 5391 | " uint i;\n" |
| 5336 | 5392 | " for (i = 0; i < numEntries; i++) {\n" |
| 5337 | 5393 | " key = keys[i];\n" |
| 5338 | " intintLCGLinearOpenCompactCLHash_TableData *mytableData =\n" | |
| 5339 | " (intintLCGLinearOpenCompactCLHash_TableData *) tableData;\n" | |
| 5394 | " __global intintLCGLinearOpenCompactCLHash_TableData *mytableData\n" | |
| 5395 | " =\n" | |
| 5396 | " (__global intintLCGLinearOpenCompactCLHash_TableData *)\n" | |
| 5397 | " tableData;\n" | |
| 5340 | 5398 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5341 | 5399 | " mytableData->compressFuncData;\n" |
| 5342 | 5400 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5384,8 +5442,8 @@ const char *hash_source = |
| 5384 | 5442 | " tableData[sizeof(intintLCGLinearOpenCompactCLHash_TableData)];\n" |
| 5385 | 5443 | " int index;\n" |
| 5386 | 5444 | " int exitCode;\n" |
| 5387 | " intintLCGLinearOpenCompactCLHash_TableData *mytableData =\n" | |
| 5388 | " (intintLCGLinearOpenCompactCLHash_TableData *) tableData;\n" | |
| 5445 | " __global intintLCGLinearOpenCompactCLHash_TableData *mytableData =\n" | |
| 5446 | " (__global intintLCGLinearOpenCompactCLHash_TableData *) tableData;\n" | |
| 5389 | 5447 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5390 | 5448 | " mytableData->compressFuncData;\n" |
| 5391 | 5449 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5439,8 +5497,10 @@ const char *hash_source = |
| 5439 | 5497 | " uint i;\n" |
| 5440 | 5498 | " for (i = 0; i < numEntries; i++) {\n" |
| 5441 | 5499 | " key = keys[i];\n" |
| 5442 | " intintLCGLinearOpenCompactCLHash_TableData *mytableData =\n" | |
| 5443 | " (intintLCGLinearOpenCompactCLHash_TableData *) tableData;\n" | |
| 5500 | " __global intintLCGLinearOpenCompactCLHash_TableData *mytableData\n" | |
| 5501 | " =\n" | |
| 5502 | " (__global intintLCGLinearOpenCompactCLHash_TableData *)\n" | |
| 5503 | " tableData;\n" | |
| 5444 | 5504 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5445 | 5505 | " mytableData->compressFuncData;\n" |
| 5446 | 5506 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5651,8 +5711,9 @@ const char *hash_source = |
| 5651 | 5711 | " tableData[sizeof(intintLCGQuadraticOpenCompactCLHash_TableData)];\n" |
| 5652 | 5712 | " int index;\n" |
| 5653 | 5713 | " int exitCode;\n" |
| 5654 | " intintLCGQuadraticOpenCompactCLHash_TableData *mytableData =\n" | |
| 5655 | " (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData;\n" | |
| 5714 | " __global intintLCGQuadraticOpenCompactCLHash_TableData *mytableData =\n" | |
| 5715 | " (__global intintLCGQuadraticOpenCompactCLHash_TableData *)\n" | |
| 5716 | " tableData;\n" | |
| 5656 | 5717 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5657 | 5718 | " mytableData->compressFuncData;\n" |
| 5658 | 5719 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5706,8 +5767,10 @@ const char *hash_source = |
| 5706 | 5767 | " for (i = 0; i < numKeys; i++) {\n" |
| 5707 | 5768 | " key = keys[i];\n" |
| 5708 | 5769 | " valueOutput = &valuesOutput[i];\n" |
| 5709 | " intintLCGQuadraticOpenCompactCLHash_TableData *mytableData =\n" | |
| 5710 | " (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData;\n" | |
| 5770 | " __global intintLCGQuadraticOpenCompactCLHash_TableData\n" | |
| 5771 | " *mytableData =\n" | |
| 5772 | " (__global intintLCGQuadraticOpenCompactCLHash_TableData *)\n" | |
| 5773 | " tableData;\n" | |
| 5711 | 5774 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5712 | 5775 | " mytableData->compressFuncData;\n" |
| 5713 | 5776 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5757,8 +5820,9 @@ const char *hash_source = |
| 5757 | 5820 | " tableData[sizeof(intintLCGQuadraticOpenCompactCLHash_TableData)];\n" |
| 5758 | 5821 | " int index;\n" |
| 5759 | 5822 | " int exitCode;\n" |
| 5760 | " intintLCGQuadraticOpenCompactCLHash_TableData *mytableData =\n" | |
| 5761 | " (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData;\n" | |
| 5823 | " __global intintLCGQuadraticOpenCompactCLHash_TableData *mytableData =\n" | |
| 5824 | " (__global intintLCGQuadraticOpenCompactCLHash_TableData *)\n" | |
| 5825 | " tableData;\n" | |
| 5762 | 5826 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5763 | 5827 | " mytableData->compressFuncData;\n" |
| 5764 | 5828 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5814,8 +5878,10 @@ const char *hash_source = |
| 5814 | 5878 | " uint i;\n" |
| 5815 | 5879 | " for (i = 0; i < numEntries; i++) {\n" |
| 5816 | 5880 | " key = keys[i];\n" |
| 5817 | " intintLCGQuadraticOpenCompactCLHash_TableData *mytableData =\n" | |
| 5818 | " (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData;\n" | |
| 5881 | " __global intintLCGQuadraticOpenCompactCLHash_TableData\n" | |
| 5882 | " *mytableData =\n" | |
| 5883 | " (__global intintLCGQuadraticOpenCompactCLHash_TableData *)\n" | |
| 5884 | " tableData;\n" | |
| 5819 | 5885 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5820 | 5886 | " mytableData->compressFuncData;\n" |
| 5821 | 5887 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5869,8 +5935,9 @@ const char *hash_source = |
| 5869 | 5935 | " tableData[sizeof(intintLCGQuadraticOpenCompactCLHash_TableData)];\n" |
| 5870 | 5936 | " int index;\n" |
| 5871 | 5937 | " int exitCode;\n" |
| 5872 | " intintLCGQuadraticOpenCompactCLHash_TableData *mytableData =\n" | |
| 5873 | " (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData;\n" | |
| 5938 | " __global intintLCGQuadraticOpenCompactCLHash_TableData *mytableData =\n" | |
| 5939 | " (__global intintLCGQuadraticOpenCompactCLHash_TableData *)\n" | |
| 5940 | " tableData;\n" | |
| 5874 | 5941 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5875 | 5942 | " mytableData->compressFuncData;\n" |
| 5876 | 5943 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -5929,8 +5996,10 @@ const char *hash_source = |
| 5929 | 5996 | " uint i;\n" |
| 5930 | 5997 | " for (i = 0; i < numEntries; i++) {\n" |
| 5931 | 5998 | " key = keys[i];\n" |
| 5932 | " intintLCGQuadraticOpenCompactCLHash_TableData *mytableData =\n" | |
| 5933 | " (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData;\n" | |
| 5999 | " __global intintLCGQuadraticOpenCompactCLHash_TableData\n" | |
| 6000 | " *mytableData =\n" | |
| 6001 | " (__global intintLCGQuadraticOpenCompactCLHash_TableData *)\n" | |
| 6002 | " tableData;\n" | |
| 5934 | 6003 | " intintHash_CompressLCGData compressFuncData =\n" |
| 5935 | 6004 | " mytableData->compressFuncData;\n" |
| 5936 | 6005 | " unsigned int c = intintHash_CompressLCG(compressFuncData, key);\n" |
| … | … | @@ -1,4 +1,31 @@ |
| 1 | 1 | |
| 2 | /* Copyright (C) 1991-2012 Free Software Foundation, Inc. | |
| 3 | This file is part of the GNU C Library. | |
| 4 | ||
| 5 | The GNU C Library is free software; you can redistribute it and/or | |
| 6 | modify it under the terms of the GNU Lesser General Public | |
| 7 | License as published by the Free Software Foundation; either | |
| 8 | version 2.1 of the License, or (at your option) any later version. | |
| 9 | ||
| 10 | The GNU C Library is distributed in the hope that it will be useful, | |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 | Lesser General Public License for more details. | |
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public | |
| 16 | License along with the GNU C Library; if not, see | |
| 17 | <http://www.gnu.org/licenses/>. */ | |
| 18 | /* This header is separate from features.h so that the compiler can | |
| 19 | include it implicitly at the start of every compilation. It must | |
| 20 | not itself include <features.h> or any other header that includes | |
| 21 | <features.h> because the implicit include comes before any feature | |
| 22 | test macros that may be defined in a source file before it first | |
| 23 | explicitly includes a system header. GCC knows the name of this | |
| 24 | header in order to preinclude it. */ | |
| 25 | /* We do support the IEC 559 math functionality, real and complex. */ | |
| 26 | /* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) / | |
| 27 | Unicode 6.0. */ | |
| 28 | /* We do not support C11 <threads.h>. */ | |
| 2 | 29 | /* Copyright 2013-14. Los Alamos National Security, LLC. This material was produced |
| 3 | 30 | * under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National |
| 4 | 31 | * Laboratory (LANL), which is operated by Los Alamos National Security, LLC |
| … | … | @@ -1066,8 +1093,8 @@ int intintLCGLinearOpenCompactCLHash_InnerQuerySingle(__global char *tableData, |
| 1066 | 1093 | tableData[sizeof(intintLCGLinearOpenCompactCLHash_TableData)]; |
| 1067 | 1094 | int index; |
| 1068 | 1095 | int exitCode; |
| 1069 | intintLCGLinearOpenCompactCLHash_TableData *mytableData = | |
| 1070 | (intintLCGLinearOpenCompactCLHash_TableData *) tableData; | |
| 1096 | __global intintLCGLinearOpenCompactCLHash_TableData *mytableData = | |
| 1097 | (__global intintLCGLinearOpenCompactCLHash_TableData *) tableData; | |
| 1071 | 1098 | intintHash_CompressLCGData compressFuncData = |
| 1072 | 1099 | mytableData->compressFuncData; |
| 1073 | 1100 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1117,8 +1144,10 @@ int intintLCGLinearOpenCompactCLHash_InnerQuery(__global char *tableData, |
| 1117 | 1144 | for (i = 0; i < numKeys; i++) { |
| 1118 | 1145 | key = keys[i]; |
| 1119 | 1146 | valueOutput = &valuesOutput[i]; |
| 1120 | intintLCGLinearOpenCompactCLHash_TableData *mytableData = | |
| 1121 | (intintLCGLinearOpenCompactCLHash_TableData *) tableData; | |
| 1147 | __global intintLCGLinearOpenCompactCLHash_TableData *mytableData | |
| 1148 | = | |
| 1149 | (__global intintLCGLinearOpenCompactCLHash_TableData *) | |
| 1150 | tableData; | |
| 1122 | 1151 | intintHash_CompressLCGData compressFuncData = |
| 1123 | 1152 | mytableData->compressFuncData; |
| 1124 | 1153 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1163,8 +1192,8 @@ int intintLCGLinearOpenCompactCLHash_InnerInsertSingle(__global char *tableData, |
| 1163 | 1192 | tableData[sizeof(intintLCGLinearOpenCompactCLHash_TableData)]; |
| 1164 | 1193 | int index; |
| 1165 | 1194 | int exitCode; |
| 1166 | intintLCGLinearOpenCompactCLHash_TableData *mytableData = | |
| 1167 | (intintLCGLinearOpenCompactCLHash_TableData *) tableData; | |
| 1195 | __global intintLCGLinearOpenCompactCLHash_TableData *mytableData = | |
| 1196 | (__global intintLCGLinearOpenCompactCLHash_TableData *) tableData; | |
| 1168 | 1197 | intintHash_CompressLCGData compressFuncData = |
| 1169 | 1198 | mytableData->compressFuncData; |
| 1170 | 1199 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1216,8 +1245,10 @@ int intintLCGLinearOpenCompactCLHash_InnerInsert(__global char *tableData, |
| 1216 | 1245 | uint i; |
| 1217 | 1246 | for (i = 0; i < numEntries; i++) { |
| 1218 | 1247 | key = keys[i]; |
| 1219 | intintLCGLinearOpenCompactCLHash_TableData *mytableData = | |
| 1220 | (intintLCGLinearOpenCompactCLHash_TableData *) tableData; | |
| 1248 | __global intintLCGLinearOpenCompactCLHash_TableData *mytableData | |
| 1249 | = | |
| 1250 | (__global intintLCGLinearOpenCompactCLHash_TableData *) | |
| 1251 | tableData; | |
| 1221 | 1252 | intintHash_CompressLCGData compressFuncData = |
| 1222 | 1253 | mytableData->compressFuncData; |
| 1223 | 1254 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1265,8 +1296,8 @@ int intintLCGLinearOpenCompactCLHash_InnerInsertSingleNoOverwrite(__global char |
| 1265 | 1296 | tableData[sizeof(intintLCGLinearOpenCompactCLHash_TableData)]; |
| 1266 | 1297 | int index; |
| 1267 | 1298 | int exitCode; |
| 1268 | intintLCGLinearOpenCompactCLHash_TableData *mytableData = | |
| 1269 | (intintLCGLinearOpenCompactCLHash_TableData *) tableData; | |
| 1299 | __global intintLCGLinearOpenCompactCLHash_TableData *mytableData = | |
| 1300 | (__global intintLCGLinearOpenCompactCLHash_TableData *) tableData; | |
| 1270 | 1301 | intintHash_CompressLCGData compressFuncData = |
| 1271 | 1302 | mytableData->compressFuncData; |
| 1272 | 1303 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1320,8 +1351,10 @@ int intintLCGLinearOpenCompactCLHash_InnerInsertNoOverwrite(__global char |
| 1320 | 1351 | uint i; |
| 1321 | 1352 | for (i = 0; i < numEntries; i++) { |
| 1322 | 1353 | key = keys[i]; |
| 1323 | intintLCGLinearOpenCompactCLHash_TableData *mytableData = | |
| 1324 | (intintLCGLinearOpenCompactCLHash_TableData *) tableData; | |
| 1354 | __global intintLCGLinearOpenCompactCLHash_TableData *mytableData | |
| 1355 | = | |
| 1356 | (__global intintLCGLinearOpenCompactCLHash_TableData *) | |
| 1357 | tableData; | |
| 1325 | 1358 | intintHash_CompressLCGData compressFuncData = |
| 1326 | 1359 | mytableData->compressFuncData; |
| 1327 | 1360 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1532,8 +1565,9 @@ int intintLCGQuadraticOpenCompactCLHash_InnerQuerySingle(__global char |
| 1532 | 1565 | tableData[sizeof(intintLCGQuadraticOpenCompactCLHash_TableData)]; |
| 1533 | 1566 | int index; |
| 1534 | 1567 | int exitCode; |
| 1535 | intintLCGQuadraticOpenCompactCLHash_TableData *mytableData = | |
| 1536 | (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData; | |
| 1568 | __global intintLCGQuadraticOpenCompactCLHash_TableData *mytableData = | |
| 1569 | (__global intintLCGQuadraticOpenCompactCLHash_TableData *) | |
| 1570 | tableData; | |
| 1537 | 1571 | intintHash_CompressLCGData compressFuncData = |
| 1538 | 1572 | mytableData->compressFuncData; |
| 1539 | 1573 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1587,8 +1621,10 @@ int intintLCGQuadraticOpenCompactCLHash_InnerQuery(__global char *tableData, |
| 1587 | 1621 | for (i = 0; i < numKeys; i++) { |
| 1588 | 1622 | key = keys[i]; |
| 1589 | 1623 | valueOutput = &valuesOutput[i]; |
| 1590 | intintLCGQuadraticOpenCompactCLHash_TableData *mytableData = | |
| 1591 | (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData; | |
| 1624 | __global intintLCGQuadraticOpenCompactCLHash_TableData | |
| 1625 | *mytableData = | |
| 1626 | (__global intintLCGQuadraticOpenCompactCLHash_TableData *) | |
| 1627 | tableData; | |
| 1592 | 1628 | intintHash_CompressLCGData compressFuncData = |
| 1593 | 1629 | mytableData->compressFuncData; |
| 1594 | 1630 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1638,8 +1674,9 @@ int intintLCGQuadraticOpenCompactCLHash_InnerInsertSingle(__global char |
| 1638 | 1674 | tableData[sizeof(intintLCGQuadraticOpenCompactCLHash_TableData)]; |
| 1639 | 1675 | int index; |
| 1640 | 1676 | int exitCode; |
| 1641 | intintLCGQuadraticOpenCompactCLHash_TableData *mytableData = | |
| 1642 | (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData; | |
| 1677 | __global intintLCGQuadraticOpenCompactCLHash_TableData *mytableData = | |
| 1678 | (__global intintLCGQuadraticOpenCompactCLHash_TableData *) | |
| 1679 | tableData; | |
| 1643 | 1680 | intintHash_CompressLCGData compressFuncData = |
| 1644 | 1681 | mytableData->compressFuncData; |
| 1645 | 1682 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1695,8 +1732,10 @@ int intintLCGQuadraticOpenCompactCLHash_InnerInsert(__global char *tableData, |
| 1695 | 1732 | uint i; |
| 1696 | 1733 | for (i = 0; i < numEntries; i++) { |
| 1697 | 1734 | key = keys[i]; |
| 1698 | intintLCGQuadraticOpenCompactCLHash_TableData *mytableData = | |
| 1699 | (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData; | |
| 1735 | __global intintLCGQuadraticOpenCompactCLHash_TableData | |
| 1736 | *mytableData = | |
| 1737 | (__global intintLCGQuadraticOpenCompactCLHash_TableData *) | |
| 1738 | tableData; | |
| 1700 | 1739 | intintHash_CompressLCGData compressFuncData = |
| 1701 | 1740 | mytableData->compressFuncData; |
| 1702 | 1741 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1750,8 +1789,9 @@ int intintLCGQuadraticOpenCompactCLHash_InnerInsertSingleNoOverwrite(__global |
| 1750 | 1789 | tableData[sizeof(intintLCGQuadraticOpenCompactCLHash_TableData)]; |
| 1751 | 1790 | int index; |
| 1752 | 1791 | int exitCode; |
| 1753 | intintLCGQuadraticOpenCompactCLHash_TableData *mytableData = | |
| 1754 | (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData; | |
| 1792 | __global intintLCGQuadraticOpenCompactCLHash_TableData *mytableData = | |
| 1793 | (__global intintLCGQuadraticOpenCompactCLHash_TableData *) | |
| 1794 | tableData; | |
| 1755 | 1795 | intintHash_CompressLCGData compressFuncData = |
| 1756 | 1796 | mytableData->compressFuncData; |
| 1757 | 1797 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -1810,8 +1850,10 @@ int intintLCGQuadraticOpenCompactCLHash_InnerInsertNoOverwrite(__global char |
| 1810 | 1850 | uint i; |
| 1811 | 1851 | for (i = 0; i < numEntries; i++) { |
| 1812 | 1852 | key = keys[i]; |
| 1813 | intintLCGQuadraticOpenCompactCLHash_TableData *mytableData = | |
| 1814 | (intintLCGQuadraticOpenCompactCLHash_TableData *) tableData; | |
| 1853 | __global intintLCGQuadraticOpenCompactCLHash_TableData | |
| 1854 | *mytableData = | |
| 1855 | (__global intintLCGQuadraticOpenCompactCLHash_TableData *) | |
| 1856 | tableData; | |
| 1815 | 1857 | intintHash_CompressLCGData compressFuncData = |
| 1816 | 1858 | mytableData->compressFuncData; |
| 1817 | 1859 | unsigned int c = intintHash_CompressLCG(compressFuncData, key); |
| … | … | @@ -30,6 +30,8 @@ |
| 30 | 30 | * This is LANL Copyright Disclosure C14043/LA-CC-14-003 |
| 31 | 31 | */ |
| 32 | 32 | |
| 33 | #define GLOBAL __global | |
| 34 | ||
| 33 | 35 | int intintIdentityPerfectCLHash_InsertSingle(__global char *tableData, |
| 34 | 36 | int key, int value); |
| 35 | 37 | int intintIdentityPerfectCLHash_InnerInsertSingle(__global char *tableData, |
| … | … | @@ -30,6 +30,8 @@ |
| 30 | 30 | * This is LANL Copyright Disclosure C14043/LA-CC-14-003 |
| 31 | 31 | */ |
| 32 | 32 | |
| 33 | #define GLOBAL | |
| 34 | ||
| 33 | 35 | #undef UNDEFINED |
| 34 | 36 | #ifdef UNDEFINED |
| 35 | 37 | /** |
| … | … | @@ -248,7 +248,7 @@ int main (int argc, const char * argv[]) |
| 248 | 248 | }else{ |
| 249 | 249 | for (int i = 0; i < argc; i++) { |
| 250 | 250 | if (strcmp(argv[i], "-h") == 0) { |
| 251 | printf("Use '-t' to set threshold and '-o' to add tests: br, kd, hc, hlc, hc1, hlc1, hc2, hlc2, hc3, hlc3, holc3, hg, hg1, hg2, hg3, hg4 hlg hlg1 hlg2 hlg3 holg3\n"); | |
| 251 | printf("Use '-t' to set threshold and '-o' to add tests: br kd hc hlc hc1 hlc1 hc2 hlc2 hc3 hlc3 holc3 hg hg1 hg2 hg3 hlg hlg1 hlg2 hlg3 holg3\n"); | |
| 252 | 252 | printf("Use -r for randomization of cell data to see performance without cache\n"); |
| 253 | 253 | printf("Use -n for min mesh size and -N for max mesh size [ default is 256 min to 256 max ]\n"); |
| 254 | 254 | printf("Use -l for min levmx and -L for max levmx [ default is 1 min to 5 max ]\n"); |