MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / initReductionRegisterPattern

Function initReductionRegisterPattern

src/library/blas/gens/reduction.cpp:169–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168extern "C"
169void 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
194static void
195calcNrThreads(

Callers 1

initReductionMemPatternsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected