<?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 Timofey, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947042#M18521</link>
    <description>&lt;P&gt;Timofey,&lt;/P&gt;
&lt;P&gt;If you have anything other problems or if it shows back up again, please let us know.&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;--&lt;BR /&gt;Taylor&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2013 14:39:16 GMT</pubDate>
    <dc:creator>TaylorIoTKidd</dc:creator>
    <dc:date>2013-09-04T14:39:16Z</dc:date>
    <item>
      <title>Using Offload in Dynamic Shared Library for Postgres</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947038#M18517</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I need to compile user defined functions in C language for Postgres. These functions may offload some work to MIC.&lt;/P&gt;
&lt;P&gt;The problem is that Postgres drop session on any #pragma offload.&lt;/P&gt;
&lt;P&gt;I make minimal example. I made a simple DSO library, simple direct call tester and testing with Postgres (in attachments).&lt;/P&gt;
&lt;P&gt;I use next compilation commands:&lt;/P&gt;
&lt;P&gt;[bash]&lt;/P&gt;
&lt;P&gt;CC=icc &lt;BR /&gt;CFLAGS=-Wall -openmp &lt;BR /&gt;PG_PATH_BIN=/storage/home/xxx/postgresql-9.1.9-build/bin&lt;BR /&gt;PG_SERVER_INCLUDE_DIR_PATH=-I`$(PG_PATH_BIN)/pg_config --includedir-server`&lt;BR /&gt;SO_FLAG=-shared&lt;/P&gt;
&lt;P&gt;$(CC) $(CFLAGS) $(SO_FLAG) $(PG_SERVER_INCLUDE_DIR_PATH) -fPIC pgMIC.c -o libpgMIC.so&lt;/P&gt;
&lt;P&gt;$(CC) exec.o -L. -lpgMIC -o exec.out&lt;/P&gt;
&lt;P&gt;[/bash]&lt;/P&gt;
&lt;P&gt;exec.out returns: add_one1(5) = 11&lt;/P&gt;
&lt;P&gt;Postgres psql call returns:&lt;BR /&gt;postgres=# CREATE FUNCTION add_one(integer) returnS integer AS 'libpgMIC', 'add_one' LANGUAGE C STRICT;&lt;BR /&gt;CREATE FUNCTION&lt;BR /&gt;postgres=# SELECT add_one(5);&lt;BR /&gt;The connection to the server was lost. Attempting reset: Succeeded&lt;/P&gt;
&lt;P&gt;Postgres log shows: LOG:&amp;nbsp; server process (PID 25489) was terminated by signal 11: Segmentation fault&lt;/P&gt;
&lt;P&gt;If I comment out #pragma offload Postgres is OK.&lt;/P&gt;
&lt;P&gt;Can anybody give some advice what is the problem, how to get more information about segmentation fault reason? Maybe I forgot some compile options?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 00:06:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947038#M18517</guid>
      <dc:creator>Timofey_R_</dc:creator>
      <dc:date>2013-07-11T00:06:24Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947039#M18518</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Unfortunately, your post fell through the cracks.&lt;/P&gt;
&lt;P&gt;Do you still need an answer?&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;--&lt;BR /&gt;Taylor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 21:47:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947039#M18518</guid>
      <dc:creator>TaylorIoTKidd</dc:creator>
      <dc:date>2013-09-03T21:47:11Z</dc:date>
    </item>
    <item>
      <title>Hi Taylor!</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947040#M18519</link>
      <description>&lt;P&gt;Hi Taylor!&lt;/P&gt;
&lt;P&gt;Happens strange thing - the problem fixed suddenly without any changes in code. Now it is not reproducable. I don't know what was the reason and what solved the problem.&lt;/P&gt;
&lt;P&gt;So for now question is closed.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;Timofey&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 08:10:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947040#M18519</guid>
      <dc:creator>Timofey_R_</dc:creator>
      <dc:date>2013-09-04T08:10:16Z</dc:date>
    </item>
    <item>
      <title>Hi</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947041#M18520</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;(I don't know what was the reason and what solved the problem.)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Probably it's only&amp;nbsp; refresh (ldconfig) when you have reboot.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 14:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947041#M18520</guid>
      <dc:creator>aazue</dc:creator>
      <dc:date>2013-09-04T14:37:00Z</dc:date>
    </item>
    <item>
      <title>Timofey,</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947042#M18521</link>
      <description>&lt;P&gt;Timofey,&lt;/P&gt;
&lt;P&gt;If you have anything other problems or if it shows back up again, please let us know.&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;--&lt;BR /&gt;Taylor&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 14:39:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947042#M18521</guid>
      <dc:creator>TaylorIoTKidd</dc:creator>
      <dc:date>2013-09-04T14:39:16Z</dc:date>
    </item>
    <item>
      <title>To bustaf:</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947043#M18522</link>
      <description>&lt;P&gt;To bustaf:&lt;/P&gt;
&lt;P&gt;I'm just user of cluster not sysadmin so I can't reboot node. I just can try to move to other node. Problem reproduced on all nodes which I tried to use. Possibly sysadmins made some magic so it starts work again.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 15:03:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947043#M18522</guid>
      <dc:creator>Timofey_R_</dc:creator>
      <dc:date>2013-09-04T15:03:36Z</dc:date>
    </item>
    <item>
      <title>HiIn system you have  (cron)</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947044#M18523</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;In system you have&amp;nbsp; (cron) that could run this task automatically without &lt;BR /&gt;query accord of your admin.&lt;/P&gt;
&lt;P&gt;I think functions dissociated on each&amp;nbsp; database&lt;BR /&gt;&amp;nbsp;Personally I not use OpenMp directly on function database&lt;BR /&gt;exist several problems conflicts I use only on an backend .. &lt;BR /&gt;with using&amp;nbsp; (PTH) it's&amp;nbsp; better but it's also not perfect.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2013 16:06:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947044#M18523</guid>
      <dc:creator>aazue</dc:creator>
      <dc:date>2013-09-04T16:06:00Z</dc:date>
    </item>
    <item>
      <title>HiLook  the last Babar  9.3 ,</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947045#M18524</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;Look&amp;nbsp; the last Babar&amp;nbsp; 9.3 , I think you have&amp;nbsp; is tailor for your Phi card.&lt;BR /&gt;(postgres_fdw) &lt;BR /&gt;&lt;A href="http://www.postgresql.org/docs/9.3/static/postgres-fdw.h.t.m.l" target="_blank"&gt;http://www.postgresql.org/docs/9.3/static/postgres-fdw.h.t.m.l&lt;/A&gt; (remove the (.) h.t.m.l)&lt;BR /&gt;&lt;A href="http://wiki.postgresql.org/wiki/What%27s_new_in_PostgreSQL_9.3" target="_blank"&gt;http://wiki.postgresql.org/wiki/What%27s_new_in_PostgreSQL_9.3&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It's sure that when you have the system is specifically builded to&amp;nbsp; databases&lt;BR /&gt;and is not&amp;nbsp; unique imposed same here, it could be more simple to manage...&lt;BR /&gt;&lt;BR /&gt;About other sides&amp;nbsp; he seem improved compared the&amp;nbsp; precedent version.&lt;BR /&gt;&lt;BR /&gt;Maybe, yet, two new future version, I think&amp;nbsp; that&amp;nbsp; with , all&amp;nbsp; functions are&amp;nbsp; added each &lt;BR /&gt;upgrade ,it will be reserved only&amp;nbsp; accessible&amp;nbsp; for Einstein. &lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 01:27:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-Offload-in-Dynamic-Shared-Library-for-Postgres/m-p/947045#M18524</guid>
      <dc:creator>aazue</dc:creator>
      <dc:date>2013-09-13T01:27:48Z</dc:date>
    </item>
  </channel>
</rss>

