akblabla / HarmReCUDA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HarmReCUDA

To compile, the additional include path must be edited to include "MatLabDirectory\extern\include". CUDA must be installed with the CudaToolkitDir enviroment variable set to the CUDA installation directory.

The program reads a in.mat file in the same directory of the executable, or the path specified by the optional launch parameter. The in.mat file must contain the following variables:

data: a sampleCount X stackCount matrix containing all the data stacks. fMax: a double containing the maximum frequency of the search grid. fMin: a double containing the minimum frequency of the search grid. fRes: an integer containing the amount of frequencies in the search grid. fs: a double containing the sample rate. harmonics: a row vector containing the harmonic indexes of the harmonics to be removed.

The data with the harmonics removed are written to the file out.m at the specified path.

Runtime metrics are written to the file runtimePerformance.mat.

To run the program, the program needs access to the matlab drivers. This can be done by adding "MatLabDirectory\bin\win64" to the path enviroment variable.

About


Languages

Language:C 77.2%Language:C++ 22.2%Language:Cuda 0.6%Language:MATLAB 0.0%