<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
hmm,&nbsp;&nbsp; could you just plop the vm on top of Barrelfish and let it do all the fancy multi-processor stuff for you?<br><br>http://www.linux-magazine.com/Online/News/Barrelfish-Multikernel-Operating-System-out-of-Zurich<br><br>http://www.barrelfish.org/<br><br><br><br>Chris Hogan
<br><br><br><br>&gt; Date: Wed, 28 Oct 2009 18:23:20 -0200<br>&gt; From: casimiro.barreto@gmail.com<br>&gt; To: squeak-dev@lists.squeakfoundation.org<br>&gt; Subject: Re: [squeak-dev] GPGPU<br>&gt; <br>&gt; Em 28-10-2009 15:24, Josh Gargus escreveu:<br>&gt; &gt; I agree with Casmiro's response... GPUs aren't suitable for running<br>&gt; &gt; Smalltalk code.  Larrabee might be interesting, since it will have 16<br>&gt; &gt; or more x86 processors, but it's difficult to see how to utilize the<br>&gt; &gt; powerful vector processor attached to each x86.<br>&gt; Here I see two opportunities. The first would be to follow the advice of<br>&gt; mr. Ingalls and start to develop a generic VM and related classes to<br>&gt; deal with parallel processing (something I think is extremely delayed<br>&gt; since multicore processors are around for such a long time) and IMHO,<br>&gt; not dealing with SMP processing prevents dealing with NUMA processing<br>&gt; where the advantages of smalltalk should be astounding.<br>&gt; <br>&gt; The second is to provide squeak with solid intrinsic vector processing<br>&gt; capabilities which would reopen the field of high performance<br>&gt; applications in science and engineering and also for more mundane<br>&gt; applications like game industry.<br>&gt; &gt;<br>&gt; &gt; Your question was more specifically about running something like Slang<br>&gt; &gt; on it.  It's important to remember that Slang isn't Smalltalk, it's C<br>&gt; &gt; with Smalltalk syntax (i.e. all Slang language constructs are<br>&gt; &gt; implemented by a simple 1-1 mapping onto the corresponding C language<br>&gt; &gt; feature).  So yes, it would be possible to run something like Slang on<br>&gt; &gt; a GPU.  Presumably, you would want to take the integration one step<br>&gt; &gt; farther than with Slang, and automatically compile the generated<br>&gt; &gt; OpenCL or CUDA code instead of dumping it to an external file.<br>&gt; &gt;<br>&gt; &gt; Instead of thinking of running Smalltalk on the GPU, I would think<br>&gt; &gt; about writing a DSL (domain-specific language) for a particular class<br>&gt; &gt; of problems that can be solved well on the GPU.  Then I would think<br>&gt; &gt; about how to integrate this DSL nicely into Smalltalk.<br>&gt; <br>&gt; That's sort of my idea :)<br>&gt; <br>&gt; I'm not considering CUDA at the moment because it would be more specific<br>&gt; to NVIDIA architecture. Currently the GPU market is shared mostly<br>&gt; between NVIDA and AMD/ATI and AMD says they won't support CUDA on their<br>&gt; GPUs (just follow<br>&gt; http://www.amdzone.com/index.php/news/video-cards/11775-no-cuda-on-radeon as<br>&gt; an example). It's a pitty since last year it was reported that RADEON<br>&gt; compatibility in CUDA was almost complete. Besides there are licensing<br>&gt; issues and I just don't want to have "wrappers".<br>&gt; <br>&gt; It's obvious that I know many of the problems dealt by CUDA and OpenCL:<br>&gt; the variable number and size of pipelines, problems with numeric<br>&gt; representation and FP precision, etc... etc... etc... And I know it<br>&gt; would be much easier just to write some wrappers or, easier yet, to<br>&gt; develop things in C/C++ &amp; glue them with FFI. But then, what would be<br>&gt; the gain to squeak &amp; the smalltalk community?<br>&gt; &gt;<br>&gt; &gt; Sean McDermid has done something like this with C#, LINQ, HLSL, and<br>&gt; &gt; Direct3D (http://bling.codeplex.com/).  He's not doing GPGPU per se,<br>&gt; &gt; but the point is how seamless is his integration with C#.<br>&gt; &gt;<br>&gt; &gt; Cheers,<br>&gt; &gt; Josh<br>&gt; &gt;<br>&gt; Best regards,<br>&gt; <br>&gt; CdAB<br>&gt; <br>                                               <br /><hr />New Windows 7: Find the right PC for you. <a href='http://www.microsoft.com/windows/pc-scout/default.aspx?CBID=wl&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_pcscout:102009' target='_new'>Learn more.</a></body>
</html>