Skip to content

Commit d702da5

Browse files
committed
* _gpu.cu float_data error on Nbps != 16/32
1 parent 15a2070 commit d702da5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

rawspec_gpu.cu

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,10 @@ int rawspec_initialize(rawspec_context * ctx)
506506
fflush(stderr);
507507
return 1;
508508
} else if(ctx->float_data && ctx->Nbps != 16 && ctx->Nbps != 32) {
509-
fprintf(
510-
stdout,
511-
"Nbps cannot be %d for floating-point data, treating as 16.\n",
512-
ctx->Nbps
513-
);
509+
fprintf(stderr, "Number of bits per float sample in raw header must be 16 or 32\n");
510+
fprintf(stderr, "Observed a value of %d\n", ctx->Nbps);
514511
fflush(stderr);
515-
ctx->Nbps = 16;
512+
return 1;
516513
}
517514
NbpsIsExpanded = ctx->Nbps == 4;
518515
if(ctx->Nbps == 4)

0 commit comments

Comments
 (0)