| 145 | |
| 146 | extern "C" |
| 147 | void initSwapRegisterPattern(MemoryPattern *mempat) |
| 148 | { |
| 149 | #ifdef DEBUG_SWAP |
| 150 | printf("initREgPattern called with mempat = 0x%p\n", mempat); |
| 151 | #endif |
| 152 | |
| 153 | fflush(stdout); |
| 154 | mempat->name = "Register accumulation based swap"; |
| 155 | mempat->nrLevels = 2; |
| 156 | mempat->cuLevel = 0; |
| 157 | mempat->thLevel = 1; |
| 158 | mempat->sops = &swapOps; |
| 159 | |
| 160 | mpatExtra.aMset = CLMEM_LEVEL_L2; |
| 161 | mpatExtra.bMset = CLMEM_LEVEL_L2; |
| 162 | mpatExtra.mobjA = CLMEM_GLOBAL_MEMORY; |
| 163 | mpatExtra.mobjB = CLMEM_GLOBAL_MEMORY; |
| 164 | mempat->extra = &mpatExtra; |
| 165 | |
| 166 | Prefix[TYPE_FLOAT] = 'S'; |
| 167 | Prefix[TYPE_DOUBLE] = 'D'; |
| 168 | Prefix[TYPE_COMPLEX_FLOAT] = 'C'; |
| 169 | Prefix[TYPE_COMPLEX_DOUBLE] = 'Z'; |
| 170 | } |
| 171 | |
| 172 | static void |
| 173 | calcNrThreads( |
no outgoing calls
no test coverage detected