<?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 I realized that upon in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/COI-DOES-NOT-EXIST-error/m-p/1089528#M64760</link>
    <description>&lt;P&gt;I realized that upon installing MKL update 4 one of my relative paths had changed generating the &lt;FONT color="#234600"&gt;&lt;SPAN style="background-color: rgb(248, 255, 240);"&gt;&lt;I&gt;"&lt;/I&gt;&lt;/SPAN&gt;&lt;/FONT&gt;COI_DOES_NOT_EXIST" error.&lt;/P&gt;

&lt;P&gt;This is related to the library dependencies managed by COI when using this interface to launch the MIC binary within the Host (CPU) and specifying s dependencies in the "SINK_LD_PRELOAD" environment variable that is not resolved successfully.&lt;/P&gt;

&lt;P&gt;Just to clarify, when launching the application COI seems to read the environment variable mentioned to determine which libraries to transfer to the MIC.&lt;/P&gt;

&lt;P&gt;If the&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;"SINK_LD_PRELOAD" env is not defined or empty then a COI will exit with a "&lt;/SPAN&gt;COI_MISSING_DEPENDENCY&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;" error instead. In general missing dependencies will cause this error.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Hope it helps poor souls detecting runtime errors after upgrading MKL.&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2016 18:52:25 GMT</pubDate>
    <dc:creator>David_F_8</dc:creator>
    <dc:date>2016-09-23T18:52:25Z</dc:date>
    <item>
      <title>COI_DOES_NOT_EXIST error</title>
      <link>https://community.intel.com/t5/Software-Archive/COI-DOES-NOT-EXIST-error/m-p/1089527#M64759</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I a customized application using SCIF and launching the MIC program with "&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;COIProcessCreateFromFile" and I am getting the following error:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;COI ERROR &amp;lt;&amp;lt; COIProcessCreateFromFile( engines&lt;I&gt;, server, 0, NULL, false, envVarArray, true, NULL, 0, NULL, &amp;amp;(coiProcess&lt;I&gt;) ) returned COI_DOES_NOT_EXIST&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;I was assuming that the error had to do with the coi_daemon either on the host side on the MIC side, but if I run any of the Intel COI examples (say "coi_simple") it works fine!&lt;/P&gt;

&lt;P&gt;The compilation on for Intel's code and my own complete successfully but my own code produces the error mentioned before.&lt;/P&gt;

&lt;P&gt;The compilation files that I am using for the Intel example follows:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;BR /&gt;
		DEV_FLAGS ?= -mmic -lcoi_device -rdynamic -Wl,--enable-new-dtags&lt;BR /&gt;
		HOST_FLAGS ?= -lcoi_host -Wl,--enable-new-dtags&lt;BR /&gt;
		DEBUG_FLAGS = -g -O0 -D_DEBUG&lt;BR /&gt;
		RELEASE_FLAGS = -DNDEBUG -O3&lt;BR /&gt;
		DEBUG_DIR = debug&lt;BR /&gt;
		RELEASE_DIR = release&lt;/P&gt;

	&lt;P&gt;HOST_CC ?= g++&lt;BR /&gt;
		DEV_CC ?= icpc&lt;/P&gt;

	&lt;P&gt;all: $(DEBUG_DIR)/coi_simple_source_host $(DEBUG_DIR)/coi_simple_sink_mic \&lt;BR /&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;$(RELEASE_DIR)/coi_simple_source_host $(RELEASE_DIR)/coi_simple_sink_mic&lt;/P&gt;

	&lt;P&gt;$(DEBUG_DIR)/coi_simple_source_host: coi_simple_source.cpp&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;mkdir -p $(DEBUG_DIR)&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;$(HOST_CC) $(HOST_FLAGS) $(DEBUG_FLAGS) -o $@ $&amp;lt;&lt;/P&gt;

	&lt;P&gt;$(RELEASE_DIR)/coi_simple_source_host: coi_simple_source.cpp&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;mkdir -p $(RELEASE_DIR)&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;$(HOST_CC) $(HOST_FLAGS) $(RELEASE_FLAGS) -o $@ $&amp;lt;&lt;/P&gt;

	&lt;P&gt;$(DEBUG_DIR)/coi_simple_sink_mic: coi_simple_sink.cpp&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;mkdir -p $(DEBUG_DIR)&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;$(DEV_CC) $(DEV_FLAGS) $(DEBUG_FLAGS) -o $@ $&amp;lt;&lt;/P&gt;

	&lt;P&gt;$(RELEASE_DIR)/coi_simple_sink_mic: coi_simple_sink.cpp&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;mkdir -p $(RELEASE_DIR)&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;$(DEV_CC) $(DEV_FLAGS) $(RELEASE_FLAGS) -o $@ $&amp;lt;&lt;/P&gt;

	&lt;P&gt;clean:&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;rm -rf debug&lt;BR /&gt;
		&amp;nbsp;&amp;nbsp; &amp;nbsp;rm -rf release&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;and for my own code is, for the MIC side:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;source /opt/mpss/3.5.2/environment-setup-k1om-mpss-linux&lt;/P&gt;

	&lt;P&gt;# Compiler flags&lt;BR /&gt;
		CXXFLAGS_SCIF="-O2 -m64 -Wall"&lt;BR /&gt;
		MIC_FLAGS="-DMKL_ILP64 -qopenmp -I${MKLROOT}/include "&amp;nbsp;&lt;/P&gt;

	&lt;P&gt;# Linker libraries&lt;BR /&gt;
		LIBS_MIC="-lscif -lrt"&lt;BR /&gt;
		LIBS_COI_MIC="-mmic -lcoi_device -rdynamic -Wl,--enable-new-dtags"&lt;BR /&gt;
		LIBS_MKL_MIC="-L${MKLROOT}/lib/mic -lmkl_intel_ilp64 -lmkl_core -lmkl_intel_thread -lpthread -lm -ldl"&lt;/P&gt;

	&lt;P&gt;# Include directories&lt;BR /&gt;
		COI_INCLUDE="/usr/include/intel-coi"&lt;/P&gt;

	&lt;P&gt;# Compilers&lt;BR /&gt;
		MIC_CC=icpc&lt;/P&gt;

	&lt;P&gt;# Compile &amp;amp; Lnik for MIC&lt;BR /&gt;
		$MIC_CC $LIBS_COI_MIC $CXXFLAGS_SCIF $MIC_FLAGS -I$COI_INCLUDE ./src/mic_server.cxx &amp;nbsp;$LIBS_MIC $LIBS_MKL_MIC -o ./obj/mic_server&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;For the Host side:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;#!/bin/bash&lt;BR /&gt;
		#source ./setup_env.sh&lt;BR /&gt;
		source /opt/mpss/3.5.2/environment-setup-k1om-mpss-linux&lt;/P&gt;

	&lt;P&gt;# Compiler flags&lt;BR /&gt;
		CXXFLAGS="-O2 -m64 -Wall"&lt;BR /&gt;
		CXXFLAGS_SCIF="-O2 -m64 -Wall"&lt;BR /&gt;
		MIC_FLAGS="-DMKL_ILP64 -qopenmp -I${MKLROOT}/include -mmic"&amp;nbsp;&lt;/P&gt;

	&lt;P&gt;# Linker libraries&lt;BR /&gt;
		LIBS_HOST="-qopenmp -lrt"&lt;BR /&gt;
		LIBS_MIC="-lscif -lrt"&lt;BR /&gt;
		OFFLOAD_FLAG="-qoffload-attribute-target=mic"&lt;BR /&gt;
		LIBS_COI_HOST="-lcoi_host -lpthread -Wl,--enable-new-dtags"&lt;BR /&gt;
		LIBS_COI_MIC=" -lcoi_device -lpthread -rdynamic -Wl,--enable-new-dtags"&lt;BR /&gt;
		#LIBS_MKL_MIC="-Wl,--start-group ${MKLROOT}/lib/mic/libmkl_intel_ilp64.a ${MKLROOT}/lib/mic/libmkl_core.a ${MKLROOT}/lib/mic/libmkl_intel_thread.a -Wl,--end-group -lpthread -lm -ldl"&lt;BR /&gt;
		LIBS_MKL_MIC="-L${MKLROOT}/lib/mic -lmkl_intel_ilp64 -lmkl_core -lmkl_intel_thread -lpthread -lm -ldl"&lt;/P&gt;

	&lt;P&gt;#-L/opt/intel/mic/coi/host-linux-release/lib&lt;/P&gt;

	&lt;P&gt;# Include directories&lt;BR /&gt;
		COI_INCLUDE="/usr/include/intel-coi"&lt;/P&gt;

	&lt;P&gt;# Compilers&lt;BR /&gt;
		CXX=icpc&lt;BR /&gt;
		MIC_CC=icpc #k1om-mpss-linux-g++&lt;/P&gt;

	&lt;P&gt;# Compile for Host&lt;BR /&gt;
		$CXX -c $CXXFLAGS -I${MKLROOT}/include -I$COI_INCLUDE ./src/test_scif_main.cxx $LIBS_HOST -o ./obj/test_scif_main.o&lt;BR /&gt;
		$CXX -c $CXXFLAGS -I&lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;$MKLROOT&lt;/SPAN&gt;/include ./src/GetTime64.cxx -o ./obj/GetTime64.o&lt;BR /&gt;
		$CXX -c $CXXFLAGS $OFFLOAD_FLAG -I&lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;$MKLROOT&lt;/SPAN&gt;/include ./src/utilities.cxx $LIBS_HOST -o ./obj/utilities.o&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;$CXX -c $CXXFLAGS_SCIF $LIBS_COI_HOST -I&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;$MKLROOT/&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;include -I$COI_INCLUDE ./src/scif_utilities.cxx -o ./obj/scif_utilities.o&lt;/SPAN&gt;&lt;/P&gt;

	&lt;P&gt;$CXX -c $CXXFLAGS_SCIF $LIBS_COI_HOST -I&lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;$MKLROOT&lt;/SPAN&gt;/include -I$COI_INCLUDE ./src/test_procs_scif.cxx -o ./obj/&lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;test_procs&lt;/SPAN&gt;_scif.o&lt;/P&gt;

	&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;# Linking for Host&lt;/SPAN&gt;&lt;/P&gt;

	&lt;P&gt;$CXX ./obj/test_scif_main.o ./obj/GetTime64.o ./obj/&lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;test_procs&lt;/SPAN&gt;_scif.o ./obj/scif_utilities.o ./obj/utilities.o -lscif -lcoi_host -qopenmp -Wl,--start-group $MKLROOT/lib/intel64/libmkl_intel_lp64.a &lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;$MKLROOT/&lt;/SPAN&gt;lib/intel64/libmkl_intel_thread.a &lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;$MKLROOT&lt;/SPAN&gt;/lib/intel64/libmkl_core.a -Wl,--end-group -lrt -liomp5 -lpthread -lm -ldl -qoffload-option,mic,compiler," -qopenmp -Wl,--start-group &lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;$MKLROOT&lt;/SPAN&gt;/lib/mic/libmkl_intel_lp64.a &lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;$MKLROOT&lt;/SPAN&gt;/lib/mic/libmkl_intel_thread.a &lt;SPAN style="font-size: 13.008px; font-style: italic; line-height: 19.512px;"&gt;$MKLROOT&lt;/SPAN&gt;/lib/mic/libmkl_core.a -Wl,--end-group -m64 -liomp5 -lpthread -lm -ldl" -o ./test_scif&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 15:42:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/COI-DOES-NOT-EXIST-error/m-p/1089527#M64759</guid>
      <dc:creator>David_F_8</dc:creator>
      <dc:date>2016-09-23T15:42:22Z</dc:date>
    </item>
    <item>
      <title>I realized that upon</title>
      <link>https://community.intel.com/t5/Software-Archive/COI-DOES-NOT-EXIST-error/m-p/1089528#M64760</link>
      <description>&lt;P&gt;I realized that upon installing MKL update 4 one of my relative paths had changed generating the &lt;FONT color="#234600"&gt;&lt;SPAN style="background-color: rgb(248, 255, 240);"&gt;&lt;I&gt;"&lt;/I&gt;&lt;/SPAN&gt;&lt;/FONT&gt;COI_DOES_NOT_EXIST" error.&lt;/P&gt;

&lt;P&gt;This is related to the library dependencies managed by COI when using this interface to launch the MIC binary within the Host (CPU) and specifying s dependencies in the "SINK_LD_PRELOAD" environment variable that is not resolved successfully.&lt;/P&gt;

&lt;P&gt;Just to clarify, when launching the application COI seems to read the environment variable mentioned to determine which libraries to transfer to the MIC.&lt;/P&gt;

&lt;P&gt;If the&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;"SINK_LD_PRELOAD" env is not defined or empty then a COI will exit with a "&lt;/SPAN&gt;COI_MISSING_DEPENDENCY&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;" error instead. In general missing dependencies will cause this error.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Hope it helps poor souls detecting runtime errors after upgrading MKL.&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 18:52:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/COI-DOES-NOT-EXIST-error/m-p/1089528#M64760</guid>
      <dc:creator>David_F_8</dc:creator>
      <dc:date>2016-09-23T18:52:25Z</dc:date>
    </item>
  </channel>
</rss>

