<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>&#12414;&#12384;&#12522;&#12522;&#12540;&#12473;&#12373;&#12428;&#12390;&#38291;&#12418;&#12394;&#12356;&#12379;&#12356;&#12363;&#12289;
NVIDIA&#12398;OpenCL SDK&#12434;&#20351;&#12387;&#12390;&#12356;&#12427;&#12392;&#19981;&#21487;&#35299;&#12394;&#12456;&#12521;&#12540;&#12395;&#36973;&#36935;&#12375;&#12414;&#12377;&#12290;
&#25522;&#38988;&#12398;&#12424;&#12358;&#12394;&#12456;&#12521;&#12540;&#12513;&#12483;&#12475;&#12540;&#12472;&#12434;&#20986;&#12377;&#12398;&#12418;&#12381;&#12398;&#19968;&#20363;&#12391;&#12377;&#12364;&#12289;
&#20197;&#19979;&#12398;&#12424;&#12358;&#12394;&#12467;&#12540;&#12489;&#65288;&#19968;&#37096;&#25244;&#31883;&#65289;&#12391;&#12456;&#12521;&#12540;&#12364;&#12391;&#12414;&#12377;&#12290;

c&gt;&gt;
    float4 x = sphere-&gt;c;
    dg-&gt;t = x.x;
&lt;&lt;--

&#12375;&#12363;&#12375;&#20197;&#19979;&#12398;&#12424;&#12358;&#12395;&#35352;&#36848;&#12377;&#12427;&#12392;&#22823;&#19976;&#22827;&#12391;&#12377;&#12290;

c&gt;&gt;
    float x = sphere-&gt;c.x;
    dg-&gt;t = x;
&lt;&lt;--

OpenCL&#12467;&#12531;&#12497;&#12452;&#12521;&#12364;&#29983;&#25104;&#12375;&#12383;ptx&#12467;&#12540;&#12489;&#12398;&#20013;&#12395;'selp'&#12392;&#12356;&#12358;&#12398;&#12364;&#20837;&#12427;&#12424;&#12358;&#12394;&#22580;&#21512;&#12395;&#21839;&#38988;&#12364;&#30330;&#29983;&#12377;&#12427;&#12424;&#12358;&#12391;&#12377;&#12290;

NVIDIA&#12398;OpenCL SDK&#12398;&#22580;&#21512;&#12289;*.cl&#12501;&#12449;&#12452;&#12523;&#12434;CL&#12467;&#12531;&#12497;&#12452;&#12521;&#12364;&#12467;&#12531;&#12497;&#12452;&#12523;&#12375;&#12390;&#12289;ptx&#12392;&#12356;&#12358;&#20013;&#38291;&#35328;&#35486;&#12395;&#22793;&#25563;&#12375;&#12414;&#12377;&#12290;&#12373;&#12425;&#12395;&#12289;ptx&#12434;ptxparse&#65288;PLANG&#12392;&#12356;&#12358;&#12497;&#12483;&#12465;&#12540;&#12472;&#12398;&#19968;&#37096;&#12425;&#12375;&#12356;&#65289;&#12364;&#35299;&#26512;&#12375;&#12390;llvm&#12398;bc&#12395;&#22793;&#25563;&#12375;&#12414;&#12377;&#12290;
&#12371;&#12398;&#12465;&#12540;&#12473;&#12391;&#12399;&#12289;CL&#12467;&#12531;&#12497;&#12452;&#12521;&#12364;&#21520;&#12365;&#20986;&#12377;&#12467;&#12540;&#12489;&#12392;&#12289;ptxparse&#20596;&#12398;&#35469;&#35672;&#12364;&#19968;&#33268;&#12375;&#12390;&#12356;&#12394;&#12356;&#24863;&#12376;&#12391;&#12377;&#12290;
&#12392;&#12426;&#12354;&#12360;&#12378;&#12289;&#12496;&#12464;&#12364;&#30452;&#12427;&#12414;&#12391;&#12467;&#12531;&#12497;&#12452;&#12521;&#12398;&#27671;&#25345;&#12385;&#12395;&#12394;&#12387;&#12390;&#22238;&#36991;&#12377;&#12427;&#12375;&#12363;&#12354;&#12426;&#12414;&#12379;&#12435;&#12290;</body>
  <cached-tag-list>nvidia opencl llvm bug</cached-tag-list>
  <comments-count type="integer">1</comments-count>
  <created-at type="datetime">2010-02-01T13:26:43+00:00</created-at>
  <daily-archive-id type="integer">1328</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">1702</id>
  <monthly-archive-id type="integer">210</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink nil="true"></permalink>
  <published-at type="datetime">2010-02-01T13:00:00+00:00</published-at>
  <secret>409331ed-3b2e-4709-a9c7-adba7103dbeb</secret>
  <title>Arguments mismatch for instruction 'selp'</title>
  <updated-at type="datetime">2010-02-01T13:26:43+00:00</updated-at>
  <user-id type="integer">1</user-id>
</article>
