Commit f597cae4 authored by Mitch Burnett's avatar Mitch Burnett
Browse files

changing pfb to loading coeff from file instead of generated at runtime

Showing with 6 additions and 4 deletions
+6 -4
File added
......@@ -240,10 +240,12 @@ int initPFB(int iCudaDevice, params pfbParams){
return EXIT_FAILURE;
}
char relPath[256] = "/home/mburnett/GitHub/flag_gpu/lib/pfb/src/";
// Read filter coefficients from file
(void) fprintf(stdout, "\tReading in coefficients...\n");
(void) sprintf(g_acFileCoeff,
"%s_%s_%d_%d_%d%s",
"%s%s_%s_%d_%d_%d%s",
relPath,
FILE_COEFF_PREFIX,
FILE_COEFF_DATATYPE,
g_iNTaps,
......
......@@ -49,9 +49,9 @@ static void * run(hashpipe_thread_args_t * args) {
params pfbParams = DEFAULT_PFB_PARAMS; //databuf.h?
// Initialize prototype filter
char* processName = "flag_pfb_thread\0";
printf("PFB: Generating filter coefficients...\n");
genCoeff(processName, pfbParams);
//char* processName = "flag_pfb_thread\0";
//printf("PFB: Generating filter coefficients...\n");
//genCoeff(processName, pfbParams);
// Initialize polyphase filter bank
printf("PFB: Initializing the polyphase filter bank...\n");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment