172
171
printf("Temp buffer : %i\n", size/1024/1024);
173
172
printf("Points : %i\n", 2 * ps->ncp_alloc_size * sizeof(float) / 1024 / 1024);
174
173
printf("Input buffer: %i\n", CP_BLOCK * side_alloc_size2 * sizeof(uint8_t) / 1024 / 1024);
176
175
printf("Lsum temp : %i\n", 4 * lsum_alloc_size2 * sizeof(float) / 1024 / 1024);
177
176
printf("Cache : %i\n", ps->ncp * ps->fft_alloc_size * (2 * sizeof(float) + sizeof(cufftComplex)) / 1024 / 1024);
178
177
printf("No Cache : %i\n", CP_BLOCK * ps->fft_alloc_size * (2 * sizeof(float) + sizeof(cufftComplex)) / 1024 / 1024);
181
180
// Counting necessary memory, here is cache memory, 64MB is considered for other needs (base and current images)
185
183
ncp_cache = ps->use_cache?ps->ncp:CP_BLOCK;