<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Re:Some questions about using MKL for high-dimensional convolution in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585570#M35972</link>
    <description>&lt;P&gt;I read the references to Convolution and Correlation Data Allocation carefully:&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2024-1/convolution-and-correlation-data-allocation.html#GUID-EC3E2E6B-4989-4AF1-A3A8-7BAE7C945E05" target="_self"&gt;https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2024-1/convolution-and-correlation-data-allocation.html#GUID-EC3E2E6B-4989-4AF1-A3A8-7BAE7C945E05&lt;/A&gt;&amp;nbsp;,and I&amp;nbsp;modified my stride to:&lt;/P&gt;&lt;P&gt;const MKL_INT xstride[3]{ inputDims[1]* inputDims[2],inputDims[2],1};&lt;BR /&gt;const MKL_INT ystride[3]{ filterDims[1] * filterDims[2],filterDims[2],1 };&lt;BR /&gt;const MKL_INT zstride[3]{ outputDims[1] * outputDims[2],outputDims[2],1 };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it doesn't help, the error is the same as the previous one.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2024 15:22:06 GMT</pubDate>
    <dc:creator>Chen_muyu</dc:creator>
    <dc:date>2024-04-02T15:22:06Z</dc:date>
    <item>
      <title>Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1579367#M35902</link>
      <description>&lt;P&gt;I want to use mkl to implement simple 3D convolution, for example, my input data size is 10*450*2456, I use a 5*5*5 convolution kernel, the output data size should be 6*446*2452, I use these parameters, refer to the official sample code, but it does't works. I have been using the vsldConvExecX command, it&amp;nbsp; return an uncertain integer, I think the official example code and documentation for how to set the step and code instructions are very vague, hope to add some content to explain more clearly, thank you! By the way,&amp;nbsp; I would&amp;nbsp;&lt;SPAN&gt;appreciate&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;it，&lt;/SPAN&gt; if I can get the code for my calculation example.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2024-03-11 181335.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/52471i26758B3CD07A720C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="屏幕截图 2024-03-11 181335.png" alt="屏幕截图 2024-03-11 181335.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 10:14:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1579367#M35902</guid>
      <dc:creator>Chen_muyu</dc:creator>
      <dc:date>2024-03-11T10:14:46Z</dc:date>
    </item>
    <item>
      <title>Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1581749#M35931</link>
      <description>&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Would it be possible for you to attach the source code here instead of the snippet.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Mar 2024 11:14:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1581749#M35931</guid>
      <dc:creator>Mahan</dc:creator>
      <dc:date>2024-03-19T11:14:23Z</dc:date>
    </item>
    <item>
      <title>Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1582617#M35941</link>
      <description>&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;A gentle reminder for my previous message.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Mar 2024 02:12:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1582617#M35941</guid>
      <dc:creator>Mahan</dc:creator>
      <dc:date>2024-03-22T02:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1583836#M35947</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Mar 2024 11:18:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1583836#M35947</guid>
      <dc:creator>Chen_muyu</dc:creator>
      <dc:date>2024-03-27T11:18:18Z</dc:date>
    </item>
    <item>
      <title>Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1583930#M35949</link>
      <description>&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Is the issue resolved, you marked my previous message, where I asked for the source code, as a solution.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Mar 2024 15:02:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1583930#M35949</guid>
      <dc:creator>Mahan</dc:creator>
      <dc:date>2024-03-27T15:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1584070#M35951</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp; Sorry it took so long to get back to you；＜(。_。)＞&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; My problem has not been solved, it was my fault to set it to be solved; I just tried cudnn to solve my problem, it worked well (but my 8G GPU memory is running out), so I still want to use the CPU to calculate convolution( just&amp;nbsp; like the MATLAB). I took a moment to rewrite the code with it below, thanks very much for answering my question and pointing out my errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;// use_MKL_convn_test.cpp&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#include &amp;lt;iostream&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;#include"mkl.h"&lt;/DIV&gt;&lt;DIV&gt;#include"opencv2/opencv.hpp"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;int main() {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int inputDims[3]{ 10,450,2456 };// 输入张量的尺寸&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int filterDims[3]{ 5,5,5 };// 卷积核尺寸&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int outputDims[3]{ 6,446,2452 }; //输出张量的尺寸&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int xstride[3]{ 1,1,1 };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int ystride[3]{ 1,1,1 };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int zstride[3]{ 1,1,1 };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;double* output{ nullptr };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VSLConvTaskPtr my_task;//卷积任务句柄&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cv::Mat m_input = cv::Mat::ones(1,inputDims[0]* inputDims[1]* inputDims[2],CV_32F);//10*450*2456&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::vector&amp;lt;double&amp;gt; m_one_filter_data(filterDims[0] * filterDims[1] * filterDims[2],1.0f);//5*5*5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cv::Mat m_output;//should be 6*446*2452&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int status = vsldConvNewTaskX(&amp;amp;my_task, VSL_CONV_MODE_AUTO, 3, inputDims, filterDims, outputDims, m_input.ptr&amp;lt;double&amp;gt;(0), xstride);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if (status != VSL_STATUS_OK) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cerr &amp;lt;&amp;lt; "Failed to create convolution handle, code: " &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return -1;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;output = new double[outputDims[0] * outputDims[1] * outputDims[2]];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;status = vsldConvExecX(&amp;amp;my_task, m_one_filter_data.data(), ystride, output, zstride);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if (status != VSL_STATUS_OK) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cerr &amp;lt;&amp;lt; "Failed to do convolution, code:" &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;delete[] output;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return status;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; "卷积计算成功" &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//将output数组以Mat形式返回;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;m_output = cv::Mat(1, outputDims[0] * outputDims[1] * outputDims[2], CV_64F, output).clone();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;delete[] output;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return 0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Mar 2024 01:25:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1584070#M35951</guid>
      <dc:creator>Chen_muyu</dc:creator>
      <dc:date>2024-03-28T01:25:59Z</dc:date>
    </item>
    <item>
      <title>Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1584138#M35952</link>
      <description>&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the script. &lt;/P&gt;&lt;P&gt;If you are using make/cmake, could you please also share the Make/CMakeList for this?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Mar 2024 06:02:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1584138#M35952</guid>
      <dc:creator>Mahan</dc:creator>
      <dc:date>2024-03-28T06:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1584153#M35953</link>
      <description>&lt;P&gt;I didn't use cmake to build my project, I just created a new empty project in visual studio, my include file was correct, and I used Intel Libraries for OneAPI in VS for mkl configuration.As shown in Figure 1 below. When I run my script, the error code looks like Figure 2, and I can't find the cause of the error in the error code's documentation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2024-03-28 142357.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/53095i2818D8B6FCFD4693/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="屏幕截图 2024-03-28 142357.png" alt="屏幕截图 2024-03-28 142357.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="屏幕截图 2024-03-28 142440.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/53096i357220F1F213EDF6/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="屏幕截图 2024-03-28 142440.png" alt="屏幕截图 2024-03-28 142440.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 06:28:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1584153#M35953</guid>
      <dc:creator>Chen_muyu</dc:creator>
      <dc:date>2024-03-28T06:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585427#M35966</link>
      <description>&lt;P&gt;Hi Chen,&lt;/P&gt;
&lt;P&gt;Please us ethe latest oneAPI 2024.1&lt;/P&gt;
&lt;P&gt;Also please do the following changes in the properties as shown in the attachment and let me know what you find.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 08:52:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585427#M35966</guid>
      <dc:creator>Mahan</dc:creator>
      <dc:date>2024-04-02T08:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585432#M35967</link>
      <description>&lt;P&gt;I have 2024.0 installed now, do I need to uninstall or something before installing 2024.1&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 09:11:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585432#M35967</guid>
      <dc:creator>Chen_muyu</dc:creator>
      <dc:date>2024-04-02T09:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585441#M35968</link>
      <description>&lt;P&gt;Surprisingly, I updated it using the APP: "Intel oneAPI base Toolkit" ,and didn't need to worry about uninstalling older version.&lt;/P&gt;&lt;P&gt;ɷ◡ɷ&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 09:31:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585441#M35968</guid>
      <dc:creator>Chen_muyu</dc:creator>
      <dc:date>2024-04-02T09:31:12Z</dc:date>
    </item>
    <item>
      <title>Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585529#M35970</link>
      <description>&lt;P&gt;Yes, that is correct. You do not need to uninstall; just updating the app will do.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Apr 2024 13:25:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585529#M35970</guid>
      <dc:creator>Mahan</dc:creator>
      <dc:date>2024-04-02T13:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585530#M35971</link>
      <description>&lt;P&gt;yep,I&amp;nbsp;have completed your previous suggestion, but my problem now is that when I execute vsldConvExecX, It will report an error of crossing the boundary. Is my stride wrong?&lt;/P&gt;&lt;P&gt;My code is as follows：&lt;/P&gt;&lt;DIV&gt;#include &amp;lt;iostream&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;#include"mkl.h"&lt;/DIV&gt;&lt;DIV&gt;#include"opencv2/opencv.hpp"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;int main() {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const MKL_INT inputDims[3]{ 10,450,2456 };// 输入张量的尺寸&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const MKL_INT filterDims[3]{ 5,5,5 };// 卷积核尺寸&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const MKL_INT outputDims[3]{ inputDims[0] + filterDims[0] - 1,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;inputDims[1] + filterDims[1] - 1,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;inputDims[2] + filterDims[2] - 1 }; //输出张量的尺寸:14*454*2460&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const MKL_INT xstride[3]{ 1,1,1 };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const MKL_INT ystride[3]{ 1,1,1 };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const MKL_INT zstride[3]{ 1,1,1 };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VSLConvTaskPtr my_task;//卷积任务句柄&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Using ordinary arrays&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;double* m_input = new double[inputDims[0] * inputDims[1] * inputDims[2]];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;double* m_filter = new double[filterDims[0] * filterDims[1] * filterDims[2]];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;double* m_output = new double[outputDims[0] * outputDims[1] * outputDims[2]];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for (int i = 0; i &amp;lt; inputDims[0] * inputDims[1] * inputDims[2]; i++)m_input[i] = 1.0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for (int i = 0; i &amp;lt; filterDims[0] * filterDims[1] * filterDims[2]; i++)m_filter[i] = 1.0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int status = vsldConvNewTaskX(&amp;amp;my_task, VSL_CONV_MODE_AUTO, 3, inputDims, filterDims, outputDims, m_input, xstride);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if (status != VSL_STATUS_OK) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cerr &amp;lt;&amp;lt; "Failed to create convolution handle, code: " &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return -1;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;status = vsldConvExecX(&amp;amp;my_task, m_filter, ystride, m_output, zstride);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if (status != VSL_STATUS_OK) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cerr &amp;lt;&amp;lt; "Failed to do convolution, code:" &amp;lt;&amp;lt; status &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;delete[] m_input, m_filter,m_output;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return status;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; "卷积计算成功" &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for (int i = 0; i &amp;lt; 100; i++) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;std::cout &amp;lt;&amp;lt; m_output[i] &amp;lt;&amp;lt; std::endl;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;delete[] m_input, m_filter, m_output;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return 0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Apr 2024 13:32:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585530#M35971</guid>
      <dc:creator>Chen_muyu</dc:creator>
      <dc:date>2024-04-02T13:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585570#M35972</link>
      <description>&lt;P&gt;I read the references to Convolution and Correlation Data Allocation carefully:&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2024-1/convolution-and-correlation-data-allocation.html#GUID-EC3E2E6B-4989-4AF1-A3A8-7BAE7C945E05" target="_self"&gt;https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2024-1/convolution-and-correlation-data-allocation.html#GUID-EC3E2E6B-4989-4AF1-A3A8-7BAE7C945E05&lt;/A&gt;&amp;nbsp;,and I&amp;nbsp;modified my stride to:&lt;/P&gt;&lt;P&gt;const MKL_INT xstride[3]{ inputDims[1]* inputDims[2],inputDims[2],1};&lt;BR /&gt;const MKL_INT ystride[3]{ filterDims[1] * filterDims[2],filterDims[2],1 };&lt;BR /&gt;const MKL_INT zstride[3]{ outputDims[1] * outputDims[2],outputDims[2],1 };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it doesn't help, the error is the same as the previous one.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 15:22:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585570#M35972</guid>
      <dc:creator>Chen_muyu</dc:creator>
      <dc:date>2024-04-02T15:22:06Z</dc:date>
    </item>
    <item>
      <title>Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585762#M35976</link>
      <description>&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is the formula for the output dimension, make sure this is correct.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: var(--ff-mono); font-size: var(--_pr-code-fs);"&gt;[(W−K+2P)/S]+1&lt;/SPAN&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;W is the input size&lt;/LI&gt;&lt;LI&gt;K is the Kernel size&lt;/LI&gt;&lt;LI&gt;P is the padding &lt;/LI&gt;&lt;LI&gt;S is the stride &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Apr 2024 06:02:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585762#M35976</guid>
      <dc:creator>Mahan</dc:creator>
      <dc:date>2024-04-03T06:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585789#M35977</link>
      <description>&lt;P&gt;I finally finally found my error, which came from my carelessness：&lt;/P&gt;&lt;P&gt;status = vsldConvExecX(&amp;amp;my_task, m_filter, NULL, m_output, NULL);&lt;/P&gt;&lt;P&gt;This sentence does not need to take the address"&amp;amp;",&amp;nbsp;but I wrote it and&lt;STRONG&gt; did not report errors,&lt;/STRONG&gt; so it has been ignored by me.&lt;/P&gt;&lt;P&gt;One thing to note, this is required for functions that create tasks:&lt;/P&gt;&lt;P&gt;int status = vsldConvNewTaskX(&amp;amp;my_task, VSL_CONV_MODE_AUTO, 3, inputDims, filterDims, outputDims, m_input, NULL);&lt;/P&gt;&lt;P&gt;I also learned from the official samples that if there is no special stride and padding required, NULL can be used directly&lt;/P&gt;&lt;P&gt;Now my script is running well, thank you for being so patient to help me solve my problem,&amp;nbsp;&lt;SPAN&gt;wish you happy every day!!!⊂◉‿◉つ&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 07:26:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585789#M35977</guid>
      <dc:creator>Chen_muyu</dc:creator>
      <dc:date>2024-04-03T07:26:11Z</dc:date>
    </item>
    <item>
      <title>Re:Some questions about using MKL for high-dimensional convolution</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585929#M35980</link>
      <description>&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am glad that you have found the solution. Have a great time.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Apr 2024 14:38:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Some-questions-about-using-MKL-for-high-dimensional-convolution/m-p/1585929#M35980</guid>
      <dc:creator>Mahan</dc:creator>
      <dc:date>2024-04-03T14:38:55Z</dc:date>
    </item>
  </channel>
</rss>

