<?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:undefined refrence to oneapi::mkl::vm::cdfnorminv in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-refrence-to-oneapi-mkl-vm-cdfnorminv/m-p/1319901#M32155</link>
    <description>&lt;P&gt;This issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Oct 2021 04:19:35 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2021-10-07T04:19:35Z</dc:date>
    <item>
      <title>undefined refrence to oneapi::mkl::vm::cdfnorminv</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-refrence-to-oneapi-mkl-vm-cdfnorminv/m-p/1318317#M32119</link>
      <description>&lt;P&gt;I'm trying to calculate element-wise inverse cumulative normal distribution function of a vector using the cdfnorminv function in MKL.&amp;nbsp; For this i have written the following short program:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;CL/sycl.hpp&amp;gt;
#include &amp;lt;algorithm&amp;gt;
#include &amp;lt;sys/time.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include "mkl.h"
#include "oneapi/mkl/vm.hpp"
#include &amp;lt;iostream&amp;gt;
using namespace sycl;

#define RAND_NO 10

int main(){

        std::cout&amp;lt;&amp;lt;"Start";
        queue device{ gpu_selector{} };
        double *h_random1 = malloc_shared&amp;lt;double&amp;gt;(RAND_NO+1, device);
        double *h_random2 = malloc_shared&amp;lt;double&amp;gt;(RAND_NO+1, device);
        device.submit([&amp;amp;](handler &amp;amp;h){
                h.parallel_for(RAND_NO, [=](id&amp;lt;1&amp;gt; i){
                        h_random1[i] = (i[0]+1.0)/(RAND_NO+1.0);
                });
        });

        oneapi::mkl::vm::cdfnorminv(device, RAND_NO, h_random1, h_random2);

        std::cout&amp;lt;&amp;lt;"The numbers generated on the host are :\n ";
        for(int i=0; i&amp;lt;RAND_NO; i++)
        {
                std::cout&amp;lt;&amp;lt; h_random1[i]&amp;lt;&amp;lt;'\n';

        }
        free(h_random1);
        free(h_random2);

        return 0;
}
&lt;/LI-CODE&gt;
&lt;P&gt;However when I try to compile it i get the following error:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; undefined reference to `oneapi::mkl::vm::cdfnorminv(cl::sycl::queue&amp;amp;, long, double*, double*, std::vector&amp;lt;cl::sycl::event, std::allocator&amp;lt;cl::sycl::event&amp;gt; &amp;gt; const&amp;amp;, oneapi::mkl::vm::enums::mode, oneapi::mkl::vm::detail::error_handler&amp;lt;double&amp;gt;)'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;dpcpp: error: linker command failed with exit code 1 (use -v to see invocation)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other parts of MKL work fine (rng for example) so I am having a difficult time figuring out this fails to work.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:20:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-refrence-to-oneapi-mkl-vm-cdfnorminv/m-p/1318317#M32119</guid>
      <dc:creator>Niko_</dc:creator>
      <dc:date>2021-09-30T15:20:29Z</dc:date>
    </item>
    <item>
      <title>Re:undefined refrence to oneapi::mkl::vm::cdfnorminv</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-refrence-to-oneapi-mkl-vm-cdfnorminv/m-p/1318531#M32131</link>
      <description>&lt;P&gt;Mikola,&lt;/P&gt;&lt;P&gt;please follow with MKL Linker adviser (&lt;A href="https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/link-line-advisor.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/link-line-advisor.html&lt;/A&gt;) suggests and you will able to build this example like as follows:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;dpcpp -DMKL_ILP64 -qmkl=sequential test_forum.cpp \&lt;/P&gt;&lt;P&gt;-L/opt/intel/oneapi/mkl/2021.3.0/lib/intel64 -lsycl -lOpenCL -lpthread -lm -ldl&lt;/P&gt;&lt;P&gt;make[1]: Leaving directory ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;dpcpp --version &lt;/P&gt;&lt;P&gt;Intel(R) oneAPI DPC++/C++ Compiler 2021.3.0 (2021.3.0.20210619)&lt;/P&gt;&lt;P&gt;Target: x86_64-unknown-linux-gnu&lt;/P&gt;&lt;P&gt;Thread model: posix&lt;/P&gt;&lt;P&gt;InstalledDir: /opt/intel/oneapi/compiler/2021.3.0/linux/bin&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;$ echo $MKLROOT/&lt;/P&gt;&lt;P&gt;/opt/intel/oneapi/mkl/2021.3.0/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$ ldd a.out&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;linux-vdso.so.1 (0x00007ffdf55f3000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;libsycl.so.5 =&amp;gt; /opt/intel/oneapi/compiler/2021.3.0/linux/lib/libsycl.so.5 (0x000014af8c6fb000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;libOpenCL.so.1 =&amp;gt; /opt/intel/oneapi/compiler/2021.3.0/linux/lib/libOpenCL.so.1 (0x000014af8cbcd000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;libmkl_sycl.so.1 =&amp;gt; /opt/intel/oneapi/mkl/2021.3.0/lib/intel64/libmkl_sycl.so.1 (0x000014af4cae9000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;libmkl_intel_ilp64.so.1 =&amp;gt; /opt/intel/oneapi/mkl/2021.3.0/lib/intel64/libmkl_intel_ilp64.so.1 (0x000014af4bdef000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;libmkl_sequential.so.1 =&amp;gt; /opt/intel/oneapi/mkl/2021.3.0/lib/intel64/libmkl_sequential.so.1 (0x000014af4a1e2000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;libmkl_core.so.1 =&amp;gt; /opt/intel/oneapi/mkl/2021.3.0/lib/intel64/libmkl_core.so.1 (0x000014af45b73000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;libtbb.so.12 =&amp;gt; /opt/intel/oneapi/tbb/2021.3.0/env/../lib/intel64/gcc4.8/libtbb.so.12 (0x000014af458fa000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;….&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Oct 2021 10:55:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-refrence-to-oneapi-mkl-vm-cdfnorminv/m-p/1318531#M32131</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2021-10-01T10:55:56Z</dc:date>
    </item>
    <item>
      <title>Re:undefined refrence to oneapi::mkl::vm::cdfnorminv</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-refrence-to-oneapi-mkl-vm-cdfnorminv/m-p/1319901#M32155</link>
      <description>&lt;P&gt;This issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Oct 2021 04:19:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-refrence-to-oneapi-mkl-vm-cdfnorminv/m-p/1319901#M32155</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2021-10-07T04:19:35Z</dc:date>
    </item>
  </channel>
</rss>

