<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Ch&eacute; zOlive</title>
	<atom:link href="http://ochafik.com/blog/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://ochafik.com/blog</link>
	<description>prograblah blah (yawn)</description>
	<lastBuildDate>Sun, 17 Jul 2011 08:37:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Run Scala code on your GPU with ScalaCL in 1 minute ! by vincegeneralao</title>
		<link>http://ochafik.com/blog/?p=471#comment-576</link>
		<dc:creator>vincegeneralao</dc:creator>
		<pubDate>Sun, 17 Jul 2011 08:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://ochafik.com/blog/?p=471#comment-576</guid>
		<description>i tried to follow the example above, this is what i got.  i wonder how to enable cl_khr_byte_addressable_store ??

scala&gt; val result = a.map(x =&gt;cos(x / 100.0f).toFloat).zipWithIndex
com.nativelibs4java.opencl.CLBuildException: Compilation failure : CL_BUILD_PROGRAM_FAILURE
C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(2): error: can&#039;t enable all
          OpenCL extensions or unrecognized OpenCL extension
              #pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
                                                                       ^

C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(12): warning:
          double-precision constant is represented as single-precision
          constant because double is not enabled
              out0[0] = ((float)cos((float)(in0 / 100.0)));
                                                  ^

C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(15): error: can&#039;t enable all
          OpenCL extensions or unrecognized OpenCL extension
              #pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
                                                                       ^

C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(29): warning:
          double-precision constant is represented as single-precision
          constant because double is not enabled
              out0[__cl_i] = ((float)cos((float)(in0[__cl_i] / 100.0)));
                                                               ^

C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(46): warning:
          double-precision constant is represented as single-precision
          constant because double is not enabled
              out0[__cl_i] = ((float)cos((float)(in0[__cl_i] / 100.0)));
                                                               ^

C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(61): warning:
          double-precision constant is represented as single-precision
          constant because double is not enabled
              out0[__cl_i] = ((float)cos((float)((in0[0] + (__cl_i) * in0[2]) / 100.0)));
                                                                                ^

2 errors detected in the compilation of &quot;C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl&quot;.

        at com.nativelibs4java.opencl.CLProgram.build(CLProgram.java:691)
        at com.nativelibs4java.opencl.CLProgram.createKernels(CLProgram.java:724)
        at scalacl.impl.CLCode$$anonfun$getProgramAndKernels$1.apply(CLCode.scala:35)
        at scalacl.impl.CLCode$$anonfun$getProgramAndKernels$1.apply(CLCode.scala:25)
        at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:188)
        at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:43)
        at scalacl.impl.CLCode$class.getProgramAndKernels(CLCode.scala:23)
        at scalacl.impl.CLFunction.getProgramAndKernels(CLFunction.scala:49)
        at scalacl.impl.CLCode$class.getKernel(CLCode.scala:48)
        at scalacl.impl.CLFunction.getKernel(CLFunction.scala:49)
        at scalacl.impl.CLFunction.run(CLFunction.scala:264)
        at scalacl.impl.CLRunnable$$anonfun$run$5.apply(CLFunction.scala:30)
        at scalacl.impl.CLRunnable$$anonfun$run$5.apply(CLFunction.scala:29)
        at scalacl.impl.CLEventBound$.recursiveSync$1(CLEventBound.scala:76)
        at scalacl.impl.CLEventBound$.recursiveSync$1(CLEventBound.scala:78)
        at scalacl.impl.CLEventBound$.syncBlock(CLEventBound.scala:97)
        at scalacl.impl.CLRunnable$class.run(CLFunction.scala:26)
        at scalacl.impl.CLFunction.run(CLFunction.scala:49)
        at scalacl.MappableToCLArray$class.map(CLArray.scala:71)
        at scalacl.CLRange.map(CLRange.scala:52)
        at scalacl.CLCollectionLike$class.map(CLCollection.scala:77)
        at scalacl.CLRange.map(CLRange.scala:52)
        at .(:15)
        at .()
        at .(:11)
        at .()
        at $export()
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:592)
        at scala.tools.nsc.interpreter.IMain$Request$$anonfun$10.apply(IMain.scala:828)
        at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:43)
        at scala.tools.nsc.io.package$$anon$2.run(package.scala:31)
        at java.lang.Thread.run(Thread.java:662)

scala&gt;</description>
		<content:encoded><![CDATA[<p>i tried to follow the example above, this is what i got.  i wonder how to enable cl_khr_byte_addressable_store ??</p>
<p>scala&gt; val result = a.map(x =&gt;cos(x / 100.0f).toFloat).zipWithIndex<br />
com.nativelibs4java.opencl.CLBuildException: Compilation failure : CL_BUILD_PROGRAM_FAILURE<br />
C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(2): error: can&#8217;t enable all<br />
          OpenCL extensions or unrecognized OpenCL extension<br />
              #pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable<br />
                                                                       ^</p>
<p>C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(12): warning:<br />
          double-precision constant is represented as single-precision<br />
          constant because double is not enabled<br />
              out0[0] = ((float)cos((float)(in0 / 100.0)));<br />
                                                  ^</p>
<p>C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(15): error: can&#8217;t enable all<br />
          OpenCL extensions or unrecognized OpenCL extension<br />
              #pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable<br />
                                                                       ^</p>
<p>C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(29): warning:<br />
          double-precision constant is represented as single-precision<br />
          constant because double is not enabled<br />
              out0[__cl_i] = ((float)cos((float)(in0[__cl_i] / 100.0)));<br />
                                                               ^</p>
<p>C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(46): warning:<br />
          double-precision constant is represented as single-precision<br />
          constant because double is not enabled<br />
              out0[__cl_i] = ((float)cos((float)(in0[__cl_i] / 100.0)));<br />
                                                               ^</p>
<p>C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl(61): warning:<br />
          double-precision constant is represented as single-precision<br />
          constant because double is not enabled<br />
              out0[__cl_i] = ((float)cos((float)((in0[0] + (__cl_i) * in0[2]) / 100.0)));<br />
                                                                                ^</p>
<p>2 errors detected in the compilation of &#8220;C:\Users\vince\AppData\Local\Temp\OCLD7A4.tmp.cl&#8221;.</p>
<p>        at com.nativelibs4java.opencl.CLProgram.build(CLProgram.java:691)<br />
        at com.nativelibs4java.opencl.CLProgram.createKernels(CLProgram.java:724)<br />
        at scalacl.impl.CLCode$$anonfun$getProgramAndKernels$1.apply(CLCode.scala:35)<br />
        at scalacl.impl.CLCode$$anonfun$getProgramAndKernels$1.apply(CLCode.scala:25)<br />
        at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:188)<br />
        at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:43)<br />
        at scalacl.impl.CLCode$class.getProgramAndKernels(CLCode.scala:23)<br />
        at scalacl.impl.CLFunction.getProgramAndKernels(CLFunction.scala:49)<br />
        at scalacl.impl.CLCode$class.getKernel(CLCode.scala:48)<br />
        at scalacl.impl.CLFunction.getKernel(CLFunction.scala:49)<br />
        at scalacl.impl.CLFunction.run(CLFunction.scala:264)<br />
        at scalacl.impl.CLRunnable$$anonfun$run$5.apply(CLFunction.scala:30)<br />
        at scalacl.impl.CLRunnable$$anonfun$run$5.apply(CLFunction.scala:29)<br />
        at scalacl.impl.CLEventBound$.recursiveSync$1(CLEventBound.scala:76)<br />
        at scalacl.impl.CLEventBound$.recursiveSync$1(CLEventBound.scala:78)<br />
        at scalacl.impl.CLEventBound$.syncBlock(CLEventBound.scala:97)<br />
        at scalacl.impl.CLRunnable$class.run(CLFunction.scala:26)<br />
        at scalacl.impl.CLFunction.run(CLFunction.scala:49)<br />
        at scalacl.MappableToCLArray$class.map(CLArray.scala:71)<br />
        at scalacl.CLRange.map(CLRange.scala:52)<br />
        at scalacl.CLCollectionLike$class.map(CLCollection.scala:77)<br />
        at scalacl.CLRange.map(CLRange.scala:52)<br />
        at .(:15)<br />
        at .()<br />
        at .(:11)<br />
        at .()<br />
        at $export()<br />
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
        at java.lang.reflect.Method.invoke(Method.java:597)<br />
        at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:592)<br />
        at scala.tools.nsc.interpreter.IMain$Request$$anonfun$10.apply(IMain.scala:828)<br />
        at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:43)<br />
        at scala.tools.nsc.io.package$$anon$2.run(package.scala:31)<br />
        at java.lang.Thread.run(Thread.java:662)</p>
<p>scala&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Detect the user&#039;s inactivity in Java with JNA by Ariel</title>
		<link>http://ochafik.com/blog/?p=98#comment-556</link>
		<dc:creator>Ariel</dc:creator>
		<pubDate>Thu, 07 Jul 2011 21:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://ochafik.free.fr/blog/?p=98#comment-556</guid>
		<description>I wonder if this is still up to date, or you have heard of anything new to detect idle time? I liked the idle mouse pointer update, but is there anything for keyboard as well?</description>
		<content:encoded><![CDATA[<p>I wonder if this is still up to date, or you have heard of anything new to detect idle time? I liked the idle mouse pointer update, but is there anything for keyboard as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on BridJ 0.4.1 released (r1990): many callbacks fixes, better windows APIs support, enhanced C++ templates&#8230; by BridJ 0.5 released : Android support, dynamic callbacks, prepackaged subsets, support for old Java and MacOS X versions&#8230; &#124; Ch&#233; zOlive</title>
		<link>http://ochafik.com/blog/?p=607#comment-532</link>
		<dc:creator>BridJ 0.5 released : Android support, dynamic callbacks, prepackaged subsets, support for old Java and MacOS X versions&#8230; &#124; Ch&#233; zOlive</dc:creator>
		<pubDate>Tue, 21 Jun 2011 19:49:21 +0000</pubDate>
		<guid isPermaLink="false">http://ochafik.com/blog/?p=607#comment-532</guid>
		<description>[...] Twitter         &#8592; BridJ 0.4.1 released (r1990): many callbacks fixes, better windows APIs support, enhanced C++... [...]</description>
		<content:encoded><![CDATA[<p>[...] Twitter         &larr; BridJ 0.4.1 released (r1990): many callbacks fixes, better windows APIs support, enhanced C++&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ScalaCL: Reap OpenCL&#039;s benefits without learning its syntax (Scala DSL for transparently parallel computations) by Chad Wilson</title>
		<link>http://ochafik.com/blog/?p=207#comment-513</link>
		<dc:creator>Chad Wilson</dc:creator>
		<pubDate>Thu, 09 Jun 2011 19:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://ochafik.free.fr/blog/?p=207#comment-513</guid>
		<description>methinks ScalaCL + BouncyCastle port == crypto goodness!</description>
		<content:encoded><![CDATA[<p>methinks ScalaCL + BouncyCastle port == crypto goodness!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Detect the user&#039;s inactivity in Java with JNA by sooth</title>
		<link>http://ochafik.com/blog/?p=98#comment-473</link>
		<dc:creator>sooth</dc:creator>
		<pubDate>Sat, 28 May 2011 03:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://ochafik.free.fr/blog/?p=98#comment-473</guid>
		<description>Thanks a lot! Brilliant and works great! :)</description>
		<content:encoded><![CDATA[<p>Thanks a lot! Brilliant and works great! <img src='http://ochafik.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Write your first OpenCL Discrete Fourier Transform with JavaCL in 15 minutes by André</title>
		<link>http://ochafik.com/blog/?p=501#comment-442</link>
		<dc:creator>André</dc:creator>
		<pubDate>Wed, 18 May 2011 13:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://ochafik.com/blog/?p=501#comment-442</guid>
		<description>Never mind, I found it [1]. I must have overlooked it.

[1] http://code.google.com/p/nativelibs4java/source/browse/#svn%2Ftrunk%2Flibraries%2FOpenCL%2FJavaCL%2Fsrc%2Fmain%2Fopencl%2Fcom%2Fnativelibs4java%2Fopencl%2Futil%2Ffft</description>
		<content:encoded><![CDATA[<p>Never mind, I found it [1]. I must have overlooked it.</p>
<p>[1] <a  href="http://code.google.com/p/nativelibs4java/source/browse/#svn%2Ftrunk%2Flibraries%2FOpenCL%2FJavaCL%2Fsrc%2Fmain%2Fopencl%2Fcom%2Fnativelibs4java%2Fopencl%2Futil%2Ffft" rel="nofollow">http://code.google.com/p/nativelibs4java/source/browse/#svn%2Ftrunk%2Flibraries%2FOpenCL%2FJavaCL%2Fsrc%2Fmain%2Fopencl%2Fcom%2Fnativelibs4java%2Fopencl%2Futil%2Ffft</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Write your first OpenCL Discrete Fourier Transform with JavaCL in 15 minutes by André</title>
		<link>http://ochafik.com/blog/?p=501#comment-433</link>
		<dc:creator>André</dc:creator>
		<pubDate>Sat, 14 May 2011 00:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://ochafik.com/blog/?p=501#comment-433</guid>
		<description>I&#039;m looking for an OpenCL FFT implementation for a class project and came across your post. Is it possible for you to post your current code?
I know that there is quite a lot of stuff out there already. Having fast code to base my work on would be very helpful.

Thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m looking for an OpenCL FFT implementation for a class project and came across your post. Is it possible for you to post your current code?<br />
I know that there is quite a lot of stuff out there already. Having fast code to base my work on would be very helpful.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on BridJ 0.4 released (r1869): subclass C++ from Java, better Javadoc and many fixes by Ch&#233; zOlive &#187; Blog Archive &#187; BridJ 0.4.1 released (r1989): many callbacks fixes, better windows APIs support, enhanced C++ templates&#8230;</title>
		<link>http://ochafik.com/blog/?p=588#comment-430</link>
		<dc:creator>Ch&#233; zOlive &#187; Blog Archive &#187; BridJ 0.4.1 released (r1989): many callbacks fixes, better windows APIs support, enhanced C++ templates&#8230;</dc:creator>
		<pubDate>Fri, 13 May 2011 15:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://ochafik.com/blog/?p=588#comment-430</guid>
		<description>[...] are the changes since version 0.4 (see full change log here) [...]</description>
		<content:encoded><![CDATA[<p>[...] are the changes since version 0.4 (see full change log here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Detect the user&#039;s inactivity in Java with JNA by Sunitha PV</title>
		<link>http://ochafik.com/blog/?p=98#comment-389</link>
		<dc:creator>Sunitha PV</dc:creator>
		<pubDate>Tue, 05 Apr 2011 04:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://ochafik.free.fr/blog/?p=98#comment-389</guid>
		<description>Here is the working code for MC OS :)


import com.sun.jna.Library;
import com.sun.jna.Native;

/**
 *
 * @author Sunitha
 */
/**
 * Utility method to retrieve the idle time on Mac OS X 10.4+
 * @author kwindszus
 */
public class MacIdleTime {

    public interface ApplicationServices extends Library {

        ApplicationServices INSTANCE = (ApplicationServices) Native.loadLibrary(&quot;ApplicationServices&quot;, ApplicationServices.class);

            int kCGAnyInputEventType = ~0;
            int kCGEventSourceStatePrivate = -1;
            int kCGEventSourceStateCombinedSessionState = 0;
            int kCGEventSourceStateHIDSystemState = 1;

            /**
             * @see http://developer.apple.com/mac/library/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html#//apple_ref/c/func/CGEventSourceSecondsSinceLastEventType
             * @param sourceStateId
             * @param eventType
             * @return the elapsed seconds since the last input event
             */
            public double CGEventSourceSecondsSinceLastEventType(int sourceStateId, int eventType);
        }

        public static long getIdleTimeMillis() {
            double idleTimeSeconds = ApplicationServices.INSTANCE.CGEventSourceSecondsSinceLastEventType(ApplicationServices.kCGEventSourceStateCombinedSessionState, ApplicationServices.kCGAnyInputEventType);
            return (long) (idleTimeSeconds * 1000);
        }
    }</description>
		<content:encoded><![CDATA[<p>Here is the working code for MC OS <img src='http://ochafik.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>import com.sun.jna.Library;<br />
import com.sun.jna.Native;</p>
<p>/**<br />
 *<br />
 * @author Sunitha<br />
 */<br />
/**<br />
 * Utility method to retrieve the idle time on Mac OS X 10.4+<br />
 * @author kwindszus<br />
 */<br />
public class MacIdleTime {</p>
<p>    public interface ApplicationServices extends Library {</p>
<p>        ApplicationServices INSTANCE = (ApplicationServices) Native.loadLibrary(&#8220;ApplicationServices&#8221;, ApplicationServices.class);</p>
<p>            int kCGAnyInputEventType = ~0;<br />
            int kCGEventSourceStatePrivate = -1;<br />
            int kCGEventSourceStateCombinedSessionState = 0;<br />
            int kCGEventSourceStateHIDSystemState = 1;</p>
<p>            /**<br />
             * @see <a  href="http://developer.apple.com/mac/library/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html#//apple_ref/c/func/CGEventSourceSecondsSinceLastEventType" rel="nofollow">http://developer.apple.com/mac/library/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html#//apple_ref/c/func/CGEventSourceSecondsSinceLastEventType</a><br />
             * @param sourceStateId<br />
             * @param eventType<br />
             * @return the elapsed seconds since the last input event<br />
             */<br />
            public double CGEventSourceSecondsSinceLastEventType(int sourceStateId, int eventType);<br />
        }</p>
<p>        public static long getIdleTimeMillis() {<br />
            double idleTimeSeconds = ApplicationServices.INSTANCE.CGEventSourceSecondsSinceLastEventType(ApplicationServices.kCGEventSourceStateCombinedSessionState, ApplicationServices.kCGAnyInputEventType);<br />
            return (long) (idleTimeSeconds * 1000);<br />
        }<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Detect the user&#039;s inactivity in Java with JNA by Sunitha PV</title>
		<link>http://ochafik.com/blog/?p=98#comment-388</link>
		<dc:creator>Sunitha PV</dc:creator>
		<pubDate>Tue, 05 Apr 2011 04:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://ochafik.free.fr/blog/?p=98#comment-388</guid>
		<description>The source code for MAC OS given above is not working for me :( .  Its not compiling here. Could you please provide me the working code for Mac OS? Thanks in advance.</description>
		<content:encoded><![CDATA[<p>The source code for MAC OS given above is not working for me <img src='http://ochafik.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  .  Its not compiling here. Could you please provide me the working code for Mac OS? Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

