<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>high performance computing</title>
	<atom:link href="http://hpc.nomad-labs.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://hpc.nomad-labs.com</link>
	<description>at nomad-labs</description>
	<lastBuildDate>Sat, 12 Dec 2009 16:04:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Slides for GPU Tech. Conf. talk</title>
		<link>http://hpc.nomad-labs.com/?p=54</link>
		<comments>http://hpc.nomad-labs.com/?p=54#comments</comments>
		<pubDate>Mon, 19 Oct 2009 19:31:39 +0000</pubDate>
		<dc:creator>kashif</dc:creator>
				<category><![CDATA[cuda]]></category>
		<category><![CDATA[gtc]]></category>
		<category><![CDATA[mathematica]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[gpu]]></category>
		<category><![CDATA[nvidia]]></category>

		<guid isPermaLink="false">http://hpc.nomad-labs.com/?p=54</guid>
		<description><![CDATA[Here are the slides for the talk as promised: Using CUDA Within Mathematica View more documents from krasul.]]></description>
			<content:encoded><![CDATA[<p>Here are the slides for the talk as promised:</p>
<div style="width:425px;text-align:left" id="__ss_2282569"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/krasul/using-cuda-within-mathematica-2282569" title="Using CUDA Within Mathematica">Using CUDA Within Mathematica</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=usingcudawithinmathematicalite-091019141441-phpapp01&#038;stripped_title=using-cuda-within-mathematica-2282569" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=usingcudawithinmathematicalite-091019141441-phpapp01&#038;stripped_title=using-cuda-within-mathematica-2282569" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">documents</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/krasul">krasul</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hpc.nomad-labs.com/?feed=rss2&amp;p=54</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speaking at the GPU Technology Conference in San Jose</title>
		<link>http://hpc.nomad-labs.com/?p=49</link>
		<comments>http://hpc.nomad-labs.com/?p=49#comments</comments>
		<pubDate>Thu, 24 Sep 2009 20:26:42 +0000</pubDate>
		<dc:creator>kashif</dc:creator>
				<category><![CDATA[cuda]]></category>
		<category><![CDATA[gtc]]></category>
		<category><![CDATA[mathematica]]></category>

		<guid isPermaLink="false">http://hpc.nomad-labs.com/?p=49</guid>
		<description><![CDATA[We will be speaking at this year&#8217;s GPU Tech. Conf. in San Jose, which goes from Sept. 30 to Oct. 2, about using CUDA within Mathematica. The slides are almost ready and we are just organizing some logistics etc. I thought we might write a bit about the talk in order to get some initial [...]]]></description>
			<content:encoded><![CDATA[<p>We will be speaking at this year&#8217;s <a href="http://www.nvidia.com/object/gpu_technology_conference.html">GPU Tech. Conf.</a> in San Jose, which goes from Sept. 30 to Oct. 2, about <a href="http://www.nvidia.com/object/gpu_tech_conf_agenda.html">using CUDA within Mathematica</a>. The slides are almost ready and we are just organizing some logistics etc. I thought we might write a bit about the talk in order to get some initial feedback on the content.</p>
<p>The talk is divided into three parts, initially we introduce the structure of Mathematica, in particular its MathLink API and go into the basics idea of creating a simple C++ application which we can call from Mathematica. Then we discuss the API in a bit more details, especially receiving and sending arrays to and from Mathematica. Its here where we also discus how to receive and send complex numbers, which is handy when doing FFT for example. We then briefly discuss running MathLink applications on remote computers, which is specially useful if you share your  CUDA enabled computer with others. Finally we go through some basic error and interruption handling in the MathLink API.</p>
<p>The second part then concentrates on the CUDA aspect of the MathLink application, in some sense the whole philosophy of the talk. If we create a CUDA application that can get and receive data from Mathematica, via the MathLink API, then we are done! In particular we give an overview of a simple example using the <code>mathematica_cuda</code> plugin, which lets you do just this. For a more universal solution, one that works under Windows, there is the excellent CMake module: FindCUDA together with my FindMathLink module which I wrote about previously. We then finish this part by going through a complete example: FFT via CUFFT and show how one goes about getting it working in Mathematica.</p>
<p>The last part, time permitting, is where we show some of the work we have been doing with sending computations to the GPU from Mathematica. In particular I will show some of the work I have been doing with image deconvolution of Confocal and Wide-field images. I am using the GPU to do my deconvolution experiments and using Mathematica to read in the images and analyze the results. Shoaib will present his work on calculating the vegetation index in multi and hyper-spectral satellite images.</p>
<p>I hope you find this overview helpful. We will put the slides up here when the tutorial is over, and if you plan to attend the conference it would be great to see you and get your feedback. Also if there is something specific you would like us to cover, you still have a few days to let us know.</p>
]]></content:encoded>
			<wfw:commentRss>http://hpc.nomad-labs.com/?feed=rss2&amp;p=49</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CMake module for Mathematica&#8217;s MathLink API</title>
		<link>http://hpc.nomad-labs.com/?p=37</link>
		<comments>http://hpc.nomad-labs.com/?p=37#comments</comments>
		<pubDate>Sat, 05 Sep 2009 10:39:38 +0000</pubDate>
		<dc:creator>kashif</dc:creator>
				<category><![CDATA[cmake]]></category>
		<category><![CDATA[cuda]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[mathematica]]></category>
		<category><![CDATA[FindCUDA]]></category>
		<category><![CDATA[FindMathLink]]></category>

		<guid isPermaLink="false">http://hpc.nomad-labs.com/?p=37</guid>
		<description><![CDATA[In order to get a more universal solution to my mathematica_cuda plugin, one that works on Windows as well as on Mac and Linux, I decided to use CMake, which comes with the excellent FindCUDA module together with a MathLink module which would offer the same functionality as the current mathematica_cuda plugin, plus more. I [...]]]></description>
			<content:encoded><![CDATA[<p>In order to get a more universal solution to my <a href="http://github.com/kashif/mathematica_cuda/tree/master">mathematica_cuda</a> plugin, one that works on Windows as well as on Mac and Linux, I decided to use <a href="http://www.cmake.org/">CMake</a>, which comes with the excellent FindCUDA module together with a <a href="http://www.wolfram.com/solutions/mathlink/mathlink.html">MathLink</a> module which would offer the same functionality as the current <code>mathematica_cuda</code> plugin, plus more.</p>
<p>I looked on the web if someone else had already written such a module for MathLink, and in the end found Erik Franken who sent me a version he had modified from a version by Jan Woetzel and others:<script src="http://gist.github.com/181152.js"></script></p>
<p>By this time I had a version on <a href="https://github.com/kashif">github</a> which I wrote up. Feel free to download it from <a href="http://github.com/kashif/FindMathLink/tree/master">here</a>.</p>
<p>Recently Markus van Almsick sent me a more advanced version which I will integrate into my version soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://hpc.nomad-labs.com/?feed=rss2&amp;p=37</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mathematica on Twitter</title>
		<link>http://hpc.nomad-labs.com/?p=22</link>
		<comments>http://hpc.nomad-labs.com/?p=22#comments</comments>
		<pubDate>Thu, 30 Apr 2009 23:05:28 +0000</pubDate>
		<dc:creator>kashif</dc:creator>
				<category><![CDATA[Twitter]]></category>
		<category><![CDATA[mathematica]]></category>

		<guid isPermaLink="false">http://hpc.nomad-labs.com/?p=22</guid>
		<description><![CDATA[A great article about Twittering with Mathematica on the Wolfram blog. I had investigated a while ago a Mathematica twitter bot for doing &#8220;Micro-calculations&#8221; with the results from Mathematica being less than 140 chars. Not very useful but a fun bot. Anyways if you are interested, I made a gist for it. Its  in Java [...]]]></description>
			<content:encoded><![CDATA[<p>A great article about<a title="Twittering with Mathematica" href="http://blog.wolfram.com/2009/04/30/twittering-with-mathematica/"> Twittering with Mathematica </a>on the Wolfram blog. I had investigated a while ago a Mathematica twitter bot for doing &#8220;Micro-calculations&#8221; with the results from Mathematica being less than 140 chars. Not very useful but a fun bot.</p>
<p>Anyways if you are interested, I made a gist for it. Its  in Java and uses JLink to communicate with Mathematica. It was never running for long as I suspect it violated some end user license, but basically one would send a Mathematica command to <a href="http://twitter.com/mathematica">@mathematica</a> and it would tweet you back your result evaluated by the MathKernel. I am hoping Wolfram might create a similar bot themselves for when you need to know the value of a special function quickly <img src='http://hpc.nomad-labs.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><script src="http://gist.github.com/104743.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://hpc.nomad-labs.com/?feed=rss2&amp;p=22</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mathematica Cuda plug-in now on github</title>
		<link>http://hpc.nomad-labs.com/?p=8</link>
		<comments>http://hpc.nomad-labs.com/?p=8#comments</comments>
		<pubDate>Tue, 23 Dec 2008 16:45:04 +0000</pubDate>
		<dc:creator>kashif</dc:creator>
				<category><![CDATA[cuda]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[mathematica]]></category>

		<guid isPermaLink="false">http://hpc.nomad-labs.com/?p=8</guid>
		<description><![CDATA[I have decided to push the initial Mathematica Cuda plug-in to a public repo on github. Feel free to download or fork it. The basic structure of the project follows that of the Nvidia&#8217;s Cuda SDK, in that the individual projects are in their own folder inside the projects folder. Right now I have the [...]]]></description>
			<content:encoded><![CDATA[<p>I have decided to push the initial Mathematica Cuda plug-in to a public <a href="http://github.com/kashif/mathematica_cuda/tree/master">repo</a> on <a href="http://github.com/">github</a>. Feel free to download or <strong>fork it</strong>.</p>
<p>The basic structure of the project follows that of the Nvidia&#8217;s Cuda SDK, in that the individual projects are in their own folder inside the projects folder. Right now I have the scalarProd example from Nvidia. I have also included Nvidia&#8217;s cuda utilities <strong>cutils</strong> and extended the make system to handle Mathematica template files.</p>
<p>Currently I have tested it only on 64-bit Linux, but hopefully I will see if I can get it working under Mac and Windows. I also plan to add more documentation in the project&#8217;s <a href="http://github.com/kashif/mathematica_cuda/wikis">wiki</a> on github, and hopefully  get some more useful examples implemented, perhaps FFT.</p>
]]></content:encoded>
			<wfw:commentRss>http://hpc.nomad-labs.com/?feed=rss2&amp;p=8</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Mathematica plug-in for CUDA</title>
		<link>http://hpc.nomad-labs.com/?p=3</link>
		<comments>http://hpc.nomad-labs.com/?p=3#comments</comments>
		<pubDate>Wed, 25 Jun 2008 22:15:15 +0000</pubDate>
		<dc:creator>kashif</dc:creator>
				<category><![CDATA[cuda]]></category>
		<category><![CDATA[mathematica]]></category>
		<category><![CDATA[mathlink]]></category>

		<guid isPermaLink="false">http://hpc.nomad-labs.com/?p=3</guid>
		<description><![CDATA[Since there is a Matlab plug-in for CUDA that provides some examples of off-loading computation to the GPU, I thought it might be neat to have something similar for Mathematica. So as a start, I decided to try out a simple scalar product example using MathLink. The initial template of my function is in the [...]]]></description>
			<content:encoded><![CDATA[<p>Since there is a <a title="Matlab" href="http://www.mathworks.com/">Matlab</a> <a title="Matlab plug-in for CUDA" href="http://developer.nvidia.com/object/matlab_cuda.html">plug-in</a> for <a title="CUDA" href="http://www.nvidia.com/object/cuda_home.html">CUDA</a> that provides some examples of off-loading computation to the GPU, I thought it might be neat to have something similar for <a title="Mathematica" href="http://www.wolfram.com/">Mathematica</a>. So as a start, I decided to try out a simple scalar product example using <a title="MathLink" href="http://www.wolfram.com/solutions/mathlink/mathlink.html">MathLink</a>.</p>
<p>The initial template of my function is in the <strong>scalarProd.tm</strong> file:</p>
<p><script src="http://gist.github.com/180970.js"></script></p>
<p>which describes the <strong>ScalarProd[]</strong> function in Mathematica, and links it to the <strong>scalarProd()</strong> C method, which is where we  receive the two arrays from Mathematica and use CUDA to calculate their scalar product and send the result back. This and the <strong>main()</strong> function for Linux and Mac, which is what I was using, are in the <strong>scalarProd.cu</strong> file. Note that Windows has a slightly different <strong>main()</strong> method.<br />
<script src="http://gist.github.com/180971.js"></script><br />
and in the same <strong>scalarProd.cu</strong> we now include the  <strong>scalarProd_kernel.cu</strong> kernel from CUDA&#8217;s SDK together with our <strong>scalarProd()</strong> C function:</p>
<p><script src="http://gist.github.com/180972.js"></script></p>
<p>Now we are ready to run Mathematica&#8217;s <strong>mprep</strong> pre-processor from MathLink to generate a <strong>scalarProdtm.cu</strong> file, and on this we run CUDA&#8217;s compiler <strong>nvcc</strong> and compile everything with the appropriate CUDA and MathLink libraries to generate our <strong>scalarProd</strong> binary, which we can now call from within Mathematica:</p>
<p><script src="http://gist.github.com/180974.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://hpc.nomad-labs.com/?feed=rss2&amp;p=3</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
