- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't run vslzCorrExec1D because I get status=-2303 or -2302.
Here is my code:
// Creating input and output vetcors
std::vector<std::complex<double>> x, y, z;
x.resize(5);
y.resize(5);
z.resize(2*std::max(x.size(),y.size()) - 1);
// Starting MKL cross correlation
VSLCorrTaskPtr task;
int status = 0;
int iy0 = y.size() - 1;
status = vslzCorrNewTask1D(&task, VSL_CORR_MODE_AUTO, y.size(), x.size(), z.size());
status = vslCorrSetStart(task,&iy0);
status = vslzCorrExec1D(task, (MKL_Complex16*)y.data(), xyz_indx, (MKL_Complex16*)x.data(), xyz_indx, (MKL_Complex16*)z.data(), xyz_indx);
Where are errors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
>>Where are errors?
Could you please try changing the below line as follows?
int iy0 = y.size() - 1;
to
int iy0 = -(y.size() - 1);
Please refer to the below link for details about the start parameter while using the vslCorrSetStart routine.
Please try running your code with the above changes and do let us know if it resolves your issue. If not, please provide us a complete reproducer with oneMKL version and your OS details so that we can work on it from our end.
Regards,
Vidya.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
>>Where are errors?
Could you please try changing the below line as follows?
int iy0 = y.size() - 1;
to
int iy0 = -(y.size() - 1);
Please refer to the below link for details about the start parameter while using the vslCorrSetStart routine.
Please try running your code with the above changes and do let us know if it resolves your issue. If not, please provide us a complete reproducer with oneMKL version and your OS details so that we can work on it from our end.
Regards,
Vidya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dear Vidya, after your suggestion my code works without any errors
int iy0 = -(y.size() - 1); // it works
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for accepting our solution.
As your issue is resolved we are closing this thread.
If you need any additional assistance from Intel please post a new question as this thread will no longer be monitored.
Have a Nice Day!
Regards,
Vidya.
![](/skins/images/7FC17B7B85029576C25F1E43CE255B51/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page