Skip to content
Snippets Groups Projects
Commit a0ed8116 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

make dummy signal more interesting

parent f3f91f4f
No related branches found
No related tags found
No related merge requests found
...@@ -150,7 +150,8 @@ int main(int argc, char **argv) { ...@@ -150,7 +150,8 @@ int main(int argc, char **argv) {
thrust::device_vector<cufftComplex> input_dummy_data_freq(nFreqs); thrust::device_vector<cufftComplex> input_dummy_data_freq(nFreqs);
thrust::device_vector<float> tmp(dadaBufferLayout.sizeOfData() * 8 / input_bit_depth); thrust::device_vector<float> tmp(dadaBufferLayout.sizeOfData() * 8 / input_bit_depth);
thrust::device_vector<uint32_t> packed_data(tmp.size() * 8 / 32); thrust::device_vector<uint32_t> packed_data(tmp.size() * 8 / 32);
input_dummy_data_freq[nFreqs / 50] = make_cuComplex(50.f, 0.0f); input_dummy_data_freq[nFreqs / 3] = make_cuComplex(50.f, 0.0f);
input_dummy_data_freq[nFreqs / 2] = make_cuComplex(20.f, 0.0f);
cufftHandle plan; cufftHandle plan;
cufftPlan1d(&plan, tmp.size(), CUFFT_C2R, 1); cufftPlan1d(&plan, tmp.size(), CUFFT_C2R, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment