| 167 | |
| 168 | extern "C" |
| 169 | void initReductionRegisterPattern(MemoryPattern *mempat) |
| 170 | { |
| 171 | #ifdef DEBUG_REDUCTION |
| 172 | printf("initRegPattern called with mempat = 0x%p\n", mempat); |
| 173 | #endif |
| 174 | |
| 175 | fflush(stdout); |
| 176 | mempat->name = "Register accumulation based swap"; |
| 177 | mempat->nrLevels = 2; |
| 178 | mempat->cuLevel = 0; |
| 179 | mempat->thLevel = 1; |
| 180 | mempat->sops = &reductionOps; |
| 181 | |
| 182 | mpatExtra.aMset = CLMEM_LEVEL_L2; |
| 183 | mpatExtra.bMset = CLMEM_LEVEL_L2; |
| 184 | mpatExtra.mobjA = CLMEM_GLOBAL_MEMORY; |
| 185 | mpatExtra.mobjB = CLMEM_GLOBAL_MEMORY; |
| 186 | mempat->extra = &mpatExtra; |
| 187 | |
| 188 | Prefix[TYPE_FLOAT] = 'S'; |
| 189 | Prefix[TYPE_DOUBLE] = 'D'; |
| 190 | Prefix[TYPE_COMPLEX_FLOAT] = 'C'; |
| 191 | Prefix[TYPE_COMPLEX_DOUBLE] = 'Z'; |
| 192 | } |
| 193 | |
| 194 | static void |
| 195 | calcNrThreads( |
no outgoing calls
no test coverage detected