<?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   in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793056#M2389</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks Chao. I have followed your indications but now I have more errors when I run&lt;/P&gt;

&lt;P&gt;CUDA_PATH=/usr/local/cuda&lt;BR /&gt;
	MKLROOT=~/intel/composer_xe_2015.0.090/mkl&lt;BR /&gt;
	BUILD_DIR=./build&lt;/P&gt;

&lt;P&gt;#Cuda includes&lt;BR /&gt;
	CUDA_INCLUDE_DIR=-I. -I$(CUDA_PATH)/include&lt;/P&gt;

&lt;P&gt;#BLAS includes&lt;BR /&gt;
	BLAS_INCLUDE_DIR=-I. -I$(MKLROOT)/include&lt;BR /&gt;
	####################&lt;BR /&gt;
	#library search paths&lt;BR /&gt;
	####################&lt;BR /&gt;
	CUDA_LIB_DIR=-L$(CUDA_PATH)/lib64&lt;BR /&gt;
	BLAS_LIB_DIR=-L$(MKLROOT)/lib/intel64&amp;nbsp; -L$(MKLROOT)/../compiler/lib/intel64&lt;/P&gt;

&lt;P&gt;####################&lt;BR /&gt;
	#libraries&lt;BR /&gt;
	####################&lt;BR /&gt;
	CUDALIBS=-lcublas&lt;BR /&gt;
	utilS=&amp;nbsp; -lpthread&amp;nbsp; -lm&lt;BR /&gt;
	####################&lt;BR /&gt;
	#other compilation flags&lt;BR /&gt;
	####################&lt;BR /&gt;
	CFLAGS= -Wwrite-strings&lt;BR /&gt;
	MKLFLAGS=-D __MKL&lt;BR /&gt;
	CUDAFLAGS=--gpu-architecture sm_20&lt;BR /&gt;
	LINKERFLAGS= -Wl,--start-group $(MKLROOT)/lib/intel64/libmkl_intel_lp64.a $(MKLROOT)/lib/intel64/libmkl_sequential.a $(MKLROOT)/lib/intel64/libmkl_core.a $(MKLROOT)/../compiler/lib/intel64/libiomp5.a -Wl,--end-group&lt;/P&gt;

&lt;P&gt;&amp;nbsp; icc $(CFLAGS) -c -O3 io.c -o $(BUILD_DIR)/io.o&lt;BR /&gt;
	&amp;nbsp; icc $(CFLAGS) $(MKLFLAGS) $(BLAS_INCLUDE_DIR) -c -O3 util.c -o $(BUILD_DIR)/util.o&lt;BR /&gt;
	&amp;nbsp; nvcc $(CUDAFLAGS) $(CUDA_INCLUDE_DIR) -c -O3 metodos.cu&amp;nbsp; -o $(BUILD_DIR)/metodos.o&lt;BR /&gt;
	&amp;nbsp; nvcc $(CUDAFLAGS) $(CUDA_INCLUDE_DIR) -c -O3 GPUutil.cu&amp;nbsp; -o $(BUILD_DIR)/GPUutil.o&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; nvcc $(CUDAFLAGS) $(CUDA_INCLUDE_DIR) -c -O3 PCA_Kernels.cu&amp;nbsp; -o $(BUILD_DIR)/PCA_Kernels.o&lt;BR /&gt;
	&amp;nbsp; nvcc $(CUDAFLAGS) $(CUDA_INCLUDE_DIR) -c -O3 PCA.cu&amp;nbsp; -o $(BUILD_DIR)/PCA.o&lt;/P&gt;

&lt;P&gt;&amp;nbsp; icc $(CFLAGS) $(BUILD_DIR)/io.o $(BUILD_DIR)/util.o $(BUILD_DIR)/metodos.o $(BUILD_DIR)/GPUutil.o $(BUILD_DIR)/PCA_Kernels.o&amp;nbsp;&amp;nbsp; \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$(BUILD_DIR)/PCA.o&amp;nbsp;&amp;nbsp; \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$(CUDA_LIB_DIR) $(BLAS_LIB_DIR) $(LINKERFLAGS) $(utilS) $(CUDALIBS)&amp;nbsp; -o PCA&lt;/P&gt;

&lt;P&gt;&amp;nbsp; The execution of the last icc produces the following errors:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; ./build/metodos.o: En la función `VD(double*, double, int, int, int, int)':&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x1b5): referencia a `cudaConfigureCall' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x2f2): referencia a `cudaConfigureCall' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x81f): referencia a `cudaFree' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x82c): referencia a `cudaFree' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x839): referencia a `cudaFree' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x846): referencia a `cudaFree' sin definir&lt;BR /&gt;
	./build/metodos.o: En la función `PCA(float*, float*, int, int, int, int, int)':&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0xe54): referencia a `cudaConfigureCall' sin definir&lt;BR /&gt;
	./build/metodos.o: En la función `SPCA(float*, float*, int, int, float, int, int, int, int)':&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x1502): referencia a `cudaConfigureCall' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x1a3c): referencia a `cudaMemcpy' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x1d2d): referencia a `cudaMemcpy' sin definir&lt;BR /&gt;
	./build/metodos.o: En la función `NFINDR(float*, int*, int, int, int, int, int)':&lt;BR /&gt;
	...&lt;/P&gt;

&lt;P&gt;&amp;nbsp;I haven't listed all the errors but the following one are similar .&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Any idea where the problem is. I am using icc 15.0 y CUDA 6.0&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks in advance&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; Ernestina&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Oct 2014 18:39:46 GMT</pubDate>
    <dc:creator>Ernestina_M_</dc:creator>
    <dc:date>2014-10-16T18:39:46Z</dc:date>
    <item>
      <title>cuda + mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793049#M2382</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a piece of code that uses both Cuda BLAS and regular BLAS calls from MKL.&lt;BR /&gt;When I try to compile (using nvcc - nvidia's C compiler) using the options&lt;BR /&gt;&lt;BR /&gt;nvcc cudaMKL.cu -lcuda -lcudart -lcublas -I$MKL_INC $MKL_LIB/libmkl_intel_ilp64.a $MKL_LIB/libmkl_sequential.a $MKL_LIB/libmkl_core.a -lpthread -DMKL_ILP64 -m64&lt;BR /&gt;&lt;BR /&gt;I get the following warnings and errors ( using MKL 10.3 update 4)&lt;BR /&gt;&lt;BR /&gt;/opt/compilers/intel/icc/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_ilp64.a:3: warning: null character(s) ignored&lt;BR /&gt;/opt/compilers/intel/icc/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_ilp64.a:3: warning: null character(s) preserved in literal&lt;BR /&gt;/opt/compilers/intel/icc/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_ilp64.a:22: warning: null character(s) ignored&lt;BR /&gt;/opt/compilers/intel/icc/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_ilp64.a:23: error: invalid preprocessing directive #b&lt;BR /&gt;/opt/compilers/intel/icc/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_ilp64.a:23: warning: null character(s) ignored&lt;BR /&gt;/opt/compilers/intel/icc/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_ilp64.a:24: error: invalid preprocessing directive #b&lt;BR /&gt;/opt/compilers/intel/icc/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_ilp64.a:23: warning: null character(s) ignored&lt;BR /&gt;&lt;BR /&gt;Is there a workaround for this issue ? I have attached the code (cudaMKL.cu) in case someone wants to have a look.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ajay&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jul 2011 16:35:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793049#M2382</guid>
      <dc:creator>ajay_panyala</dc:creator>
      <dc:date>2011-07-07T16:35:55Z</dc:date>
    </item>
    <item>
      <title>cuda + mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793050#M2383</link>
      <description>&lt;P&gt;Ajay, &lt;/P&gt;&lt;P&gt;thanks for report. Are you using the 64 bit integer interface or 32 bit interface? &lt;/P&gt;&lt;P&gt;If you are using the 64 bit integer, it should be -DMKL_ILP64 (not -DMKL_ILP64). It is 32 bit integer, the interface library is libmkl_intel_lp64.a Check the article here for some information: &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=83366" target="_blank"&gt;http://software.intel.com/en-us/forums/showthread.php?t=83366&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We will have further check on the error message here. &lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2011 05:50:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793050#M2383</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2011-07-08T05:50:27Z</dc:date>
    </item>
    <item>
      <title>cuda + mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793051#M2384</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;our engineer expert have a check on the code, and it could be compiled by the following ways:&lt;/P&gt;&lt;P&gt;1. Renamed the source file to *.cpp &lt;/P&gt;&lt;P&gt;2. Used -ccbin /usr/bin/gcc in the compile line&lt;/P&gt;&lt;P&gt;nvcc -ccbin /usr/bin/gcc main.cpp $CUDA_DIR/lib64/libcublas.so I$MKLROOT/include $MKLROOT/lib/intel64/libmkl_intel_ilp64.a $MKLROOT/lib/intel64/libmkl_sequential.a $MKLROOT/lib/intel64/libmkl_core.a -lpthread -DMKL_ILP64 -m64&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao &lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2011 08:06:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793051#M2384</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2011-07-08T08:06:40Z</dc:date>
    </item>
    <item>
      <title>cuda + mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793052#M2385</link>
      <description>&lt;DIV&gt;Another workaroun is to tell nvcc that it should treat the MKL libraries as linker options via --linker-options flag:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;PRE&gt;nvcc \
    cudaMKL.cu -lcuda -lcudart -lcublas -m64 -DMKL_ILP64 -I$MKL_INC \
    --linker-options $MKL_LIB/libmkl_intel_ilp64.a,$MKL_LIB/libmkl_sequential.a,$MKL_LIB/libmkl_core.a,-lpthread&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Jul 2011 10:28:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793052#M2385</guid>
      <dc:creator>Roman_D_Intel1</dc:creator>
      <dc:date>2011-07-08T10:28:55Z</dc:date>
    </item>
    <item>
      <title>cuda + mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793053#M2386</link>
      <description>Hello Chao and Dubtsov,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot. Both the compilation suggestions work perfectly.&lt;BR /&gt;&lt;BR /&gt;-Ajay</description>
      <pubDate>Fri, 08 Jul 2011 14:10:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793053#M2386</guid>
      <dc:creator>ajay_panyala</dc:creator>
      <dc:date>2011-07-08T14:10:52Z</dc:date>
    </item>
    <item>
      <title>Hello</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793054#M2387</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;&amp;nbsp; I am trying to compile a cuda code in NSight. The code uses mkl, cublas and cuda. The configuration of the project is the following;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Project's include: ~/intel/mkl/include, /usr/local/cuda-6.0/include, /usr/local/cuda-6.0/lib&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Project's libraries: cublas mkl&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Project's library path as ~/intel/mkl/lib/intel64&lt;/P&gt;

&lt;P&gt;&amp;nbsp; When I build the project I have got the following error:&lt;/P&gt;

&lt;P&gt;Building target: MyUnmixing&lt;BR /&gt;
	Invoking: NVCC Linker&lt;BR /&gt;
	/usr/local/cuda-6.0/bin/nvcc --cudart static -L~/intel/mkl/lib/intel64 -link -o&amp;nbsp; "MyUnmixing"&amp;nbsp; ./src/GPUutil.o ./src/MyUnmixing.o ./src/PCA_Kernels.o ./src/io.o ./src/metodos.o ./src/util.o&amp;nbsp;&amp;nbsp; -lcublas -lmkl&lt;BR /&gt;
	nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.&lt;BR /&gt;
	/usr/bin/ld: no se puede encontrar -lmkl&lt;BR /&gt;
	collect2: error: ld returned 1 exit status&lt;BR /&gt;
	make: *** [MyUnmixing] Error 1&lt;/P&gt;

&lt;P&gt;&amp;nbsp; How can I build the project which includes the Intel Math Kernel Library in NSight?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks in advance&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; Ernestina&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 15:48:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793054#M2387</guid>
      <dc:creator>Ernestina_M_</dc:creator>
      <dc:date>2014-10-14T15:48:37Z</dc:date>
    </item>
    <item>
      <title>Ernestina,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793055#M2388</link>
      <description>&lt;P&gt;Ernestina,&lt;/P&gt;

&lt;P&gt;"-lmkl" is the options for Intel Compiler.&amp;nbsp; If you are not using Intel compiler, you can manually adding Intel MKL libraries into the linkage line, for example,&amp;nbsp; for 64 bit libraries, need to add:&lt;/P&gt;

&lt;P&gt;-L~/intel/mkl/lib/intel64 &amp;nbsp; --linker-options $MKL_LIB/libmkl_intel_ilp64.a,$MKL_LIB/libmkl_sequential.a,$MKL_LIB/libmkl_core.a,-lpthread ...&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 01:45:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793055#M2388</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2014-10-15T01:45:38Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793056#M2389</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks Chao. I have followed your indications but now I have more errors when I run&lt;/P&gt;

&lt;P&gt;CUDA_PATH=/usr/local/cuda&lt;BR /&gt;
	MKLROOT=~/intel/composer_xe_2015.0.090/mkl&lt;BR /&gt;
	BUILD_DIR=./build&lt;/P&gt;

&lt;P&gt;#Cuda includes&lt;BR /&gt;
	CUDA_INCLUDE_DIR=-I. -I$(CUDA_PATH)/include&lt;/P&gt;

&lt;P&gt;#BLAS includes&lt;BR /&gt;
	BLAS_INCLUDE_DIR=-I. -I$(MKLROOT)/include&lt;BR /&gt;
	####################&lt;BR /&gt;
	#library search paths&lt;BR /&gt;
	####################&lt;BR /&gt;
	CUDA_LIB_DIR=-L$(CUDA_PATH)/lib64&lt;BR /&gt;
	BLAS_LIB_DIR=-L$(MKLROOT)/lib/intel64&amp;nbsp; -L$(MKLROOT)/../compiler/lib/intel64&lt;/P&gt;

&lt;P&gt;####################&lt;BR /&gt;
	#libraries&lt;BR /&gt;
	####################&lt;BR /&gt;
	CUDALIBS=-lcublas&lt;BR /&gt;
	utilS=&amp;nbsp; -lpthread&amp;nbsp; -lm&lt;BR /&gt;
	####################&lt;BR /&gt;
	#other compilation flags&lt;BR /&gt;
	####################&lt;BR /&gt;
	CFLAGS= -Wwrite-strings&lt;BR /&gt;
	MKLFLAGS=-D __MKL&lt;BR /&gt;
	CUDAFLAGS=--gpu-architecture sm_20&lt;BR /&gt;
	LINKERFLAGS= -Wl,--start-group $(MKLROOT)/lib/intel64/libmkl_intel_lp64.a $(MKLROOT)/lib/intel64/libmkl_sequential.a $(MKLROOT)/lib/intel64/libmkl_core.a $(MKLROOT)/../compiler/lib/intel64/libiomp5.a -Wl,--end-group&lt;/P&gt;

&lt;P&gt;&amp;nbsp; icc $(CFLAGS) -c -O3 io.c -o $(BUILD_DIR)/io.o&lt;BR /&gt;
	&amp;nbsp; icc $(CFLAGS) $(MKLFLAGS) $(BLAS_INCLUDE_DIR) -c -O3 util.c -o $(BUILD_DIR)/util.o&lt;BR /&gt;
	&amp;nbsp; nvcc $(CUDAFLAGS) $(CUDA_INCLUDE_DIR) -c -O3 metodos.cu&amp;nbsp; -o $(BUILD_DIR)/metodos.o&lt;BR /&gt;
	&amp;nbsp; nvcc $(CUDAFLAGS) $(CUDA_INCLUDE_DIR) -c -O3 GPUutil.cu&amp;nbsp; -o $(BUILD_DIR)/GPUutil.o&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; nvcc $(CUDAFLAGS) $(CUDA_INCLUDE_DIR) -c -O3 PCA_Kernels.cu&amp;nbsp; -o $(BUILD_DIR)/PCA_Kernels.o&lt;BR /&gt;
	&amp;nbsp; nvcc $(CUDAFLAGS) $(CUDA_INCLUDE_DIR) -c -O3 PCA.cu&amp;nbsp; -o $(BUILD_DIR)/PCA.o&lt;/P&gt;

&lt;P&gt;&amp;nbsp; icc $(CFLAGS) $(BUILD_DIR)/io.o $(BUILD_DIR)/util.o $(BUILD_DIR)/metodos.o $(BUILD_DIR)/GPUutil.o $(BUILD_DIR)/PCA_Kernels.o&amp;nbsp;&amp;nbsp; \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$(BUILD_DIR)/PCA.o&amp;nbsp;&amp;nbsp; \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$(CUDA_LIB_DIR) $(BLAS_LIB_DIR) $(LINKERFLAGS) $(utilS) $(CUDALIBS)&amp;nbsp; -o PCA&lt;/P&gt;

&lt;P&gt;&amp;nbsp; The execution of the last icc produces the following errors:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; ./build/metodos.o: En la función `VD(double*, double, int, int, int, int)':&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x1b5): referencia a `cudaConfigureCall' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x2f2): referencia a `cudaConfigureCall' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x81f): referencia a `cudaFree' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x82c): referencia a `cudaFree' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x839): referencia a `cudaFree' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x846): referencia a `cudaFree' sin definir&lt;BR /&gt;
	./build/metodos.o: En la función `PCA(float*, float*, int, int, int, int, int)':&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0xe54): referencia a `cudaConfigureCall' sin definir&lt;BR /&gt;
	./build/metodos.o: En la función `SPCA(float*, float*, int, int, float, int, int, int, int)':&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x1502): referencia a `cudaConfigureCall' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x1a3c): referencia a `cudaMemcpy' sin definir&lt;BR /&gt;
	tmpxft_00003dfc_00000000-3_metodos.cudafe1.cpp:(.text+0x1d2d): referencia a `cudaMemcpy' sin definir&lt;BR /&gt;
	./build/metodos.o: En la función `NFINDR(float*, int*, int, int, int, int, int)':&lt;BR /&gt;
	...&lt;/P&gt;

&lt;P&gt;&amp;nbsp;I haven't listed all the errors but the following one are similar .&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Any idea where the problem is. I am using icc 15.0 y CUDA 6.0&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks in advance&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; Ernestina&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2014 18:39:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793056#M2389</guid>
      <dc:creator>Ernestina_M_</dc:creator>
      <dc:date>2014-10-16T18:39:46Z</dc:date>
    </item>
    <item>
      <title>Ernestina, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793057#M2390</link>
      <description>&lt;P&gt;&lt;BR /&gt;
	Ernestina,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	The missed symbols are from the cuda libraries. It seems some required cuda libraries are missed in your likage line,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You may follow the example Roman provide before to linkage line:&amp;nbsp;&lt;BR /&gt;
	nvcc \&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; cudaMKL.cu -lcuda -lcudart -lcublas -m64 -I$MKL_INC \&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; --linker-options $MKL_LIB/libmkl_intel_lp64.a,$MKL_LIB/libmkl_sequential.a,$MKL_LIB/libmkl_core.a,-lpthread&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	Thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 03:16:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793057#M2390</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2014-10-27T03:16:48Z</dc:date>
    </item>
    <item>
      <title>Quote:Roman Dubtsov (Intel)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793058#M2391</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Roman Dubtsov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another workaroun is to tell nvcc that it should treat the MKL libraries as linker options via --linker-options flag:&lt;/P&gt;
&lt;PRE&gt;nvcc \
    cudaMKL.cu -lcuda -lcudart -lcublas -m64 -DMKL_ILP64 -I$MKL_INC \
    --linker-options $MKL_LIB/libmkl_intel_ilp64.a,$MKL_LIB/libmkl_sequential.a,$MKL_LIB/libmkl_core.a,-lpthread&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks. This worked for me.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 10:54:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/cuda-mkl/m-p/793058#M2391</guid>
      <dc:creator>Najeeb_A_</dc:creator>
      <dc:date>2020-01-14T10:54:00Z</dc:date>
    </item>
  </channel>
</rss>

