aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-03-10 15:53:09 +0100
committerThomas White <taw@physics.org>2010-03-10 15:53:09 +0100
commitc10fc340ae4039447ea5b17addf6424e415f628a (patch)
treeb1c22d07c8a864773078d797764a3485adb17bc5 /src
parent45d7f9b0c71a5c2f36758a862e1f6cbd0d7e59ab (diff)
Remove debugging messages
Diffstat (limited to 'src')
-rw-r--r--src/diffraction-gpu.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c
index ecc04446..9b2f51f5 100644
--- a/src/diffraction-gpu.c
+++ b/src/diffraction-gpu.c
@@ -62,25 +62,19 @@ static void check_sinc_lut(struct gpu_context *gctx, int n)
if ( n > gctx->max_sinc_lut ) {
- STATUS("Allocating %i -> %i\n", gctx->max_sinc_lut, n);
-
gctx->sinc_luts = realloc(gctx->sinc_luts,
n*sizeof(*gctx->sinc_luts));
gctx->sinc_lut_ptrs = realloc(gctx->sinc_lut_ptrs,
n*sizeof(*gctx->sinc_lut_ptrs));
for ( i=gctx->max_sinc_lut; i<n; i++ ) {
- STATUS("zeroing %i\n", i);
gctx->sinc_lut_ptrs[i] = NULL;
}
gctx->max_sinc_lut = n;
}
- if ( gctx->sinc_lut_ptrs[n-1] != NULL ) {
- STATUS("Already have %i\n", n);
- return;
- }
+ if ( gctx->sinc_lut_ptrs[n-1] != NULL ) return;
/* Create a new sinc LUT */
gctx->sinc_lut_ptrs[n-1] = malloc(SINC_LUT_ELEMENTS*sizeof(cl_float));
@@ -489,7 +483,6 @@ void cleanup_gpu(struct gpu_context *gctx)
/* Release LUTs */
for ( i=1; i<=gctx->max_sinc_lut; i++ ) {
if ( gctx->sinc_lut_ptrs[i-1] != NULL ) {
- STATUS("freeing %i\n", i-1);
clReleaseMemObject(gctx->sinc_luts[i-1]);
free(gctx->sinc_lut_ptrs[i-1]);
}