Skip to content

/github/workspace/src/TransformFunctions/plp_rfftfast_f32_parallel.c

Functions

Name
void plp_rfftfast_f32_parallel(const plp_fft_fast_instance_f32 * S, float32_t restrict pSrc, float32_t restrict pDst, const uint32_t nPE)
Floating-point FFT on real input data.

Functions Documentation

function plp_rfftfast_f32_parallel

void plp_rfftfast_f32_parallel(
    const plp_fft_fast_instance_f32 * S,
    float32_t *__restrict__ pSrc,
    float32_t *__restrict__ pDst,
    const uint32_t nPE
)

Floating-point FFT on real input data.

Parameters:

  • S points to an instance of the floating-point FFT structure
  • pSrc points to the input buffer (real data)
  • pDst points to the output buffer (complex data)

Return: none

Floating-point parallel FFT on real input data.

Source code

/* ----------------------------------------------------------------------
 * Project:      PULP DSP Library
 * Title:        plp_rfftfast_f32.c
 * Description:  Floating-point parallel FFT on real input data
 *
 * $Date:        22. April 2022
 * $Revision:    V0
 *
 * Target Processor: PULP cores with "F" support (wolfe, vega)
 * -------------------------------------------------------------------- */
/*
 * Copyright (C) 2022 ETH Zurich and University of Bologna. All rights reserved.
 *
 * Author: Marco Bertuletti, Thorir Ingolfsson ETH Zurich
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the License); you may
 * not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "plp_math.h"

void plp_rfftfast_f32_parallel( const plp_fft_fast_instance_f32 *S,
                                 float32_t *__restrict__ pSrc,
                                 float32_t *__restrict__ pDst,
                                 const uint32_t nPE) {

    if (hal_cluster_id() == ARCHI_FC_CID) {
        printf("Parallel processing supported only for cluster side\n");
        return;
    }
    plp_fft_fast_instance_f32_parallel arg = (plp_fft_fast_instance_f32_parallel){ S, pSrc, pDst, nPE };
    //plp_thorirfft_f32p_xpulpv2((void *)&arg);
    hal_cl_team_fork(nPE, plp_rfftfast_f32p_xpulpv2, (void *)&arg);
}

Updated on 2023-03-01 at 16:16:33 +0000