From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id DC0ABBBAF for ; Tue, 15 Dec 2009 17:07:29 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An8FAD9DJ0s+BBFmeWdsb2JhbACBS5cjglEBAQsLCAcUBIgytEyEKwQ X-IronPort-AV: E=Sophos;i="4.47,400,1257116400"; d="scan'208";a="42062576" Received: from smtp-102-tuesday.noc.nerim.net (HELO mallaury.nerim.net) ([62.4.17.102]) by mail1-smtp-roc.national.inria.fr with ESMTP; 15 Dec 2009 17:07:29 +0100 Received: from hector.lesours (ours.starynkevitch.net [213.41.244.95]) by mallaury.nerim.net (Postfix) with ESMTP id 46B39A10A4; Tue, 15 Dec 2009 17:07:28 +0100 (CET) Received: from glinka.lesours ([192.168.0.1]) by hector.lesours with esmtp (Exim 4.69) (envelope-from ) id 1NKZvv-0005jO-NP; Tue, 15 Dec 2009 17:07:31 +0100 Message-ID: <4B27B442.9030300@starynkevitch.net> Date: Tue, 15 Dec 2009 17:07:30 +0100 From: Basile STARYNKEVITCH User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: Eray Ozkural Cc: caml-list@inria.fr, Emmanuel Chailloux Subject: Re: [Caml-list] How to write a CUDA kernel in ocaml? References: <320e992a0912150737t483a5946x9cad351fc344691f@mail.gmail.com> In-Reply-To: <320e992a0912150737t483a5946x9cad351fc344691f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; basile:01 basile:01 ocaml:01 eray:01 ozkural:01 bindings:01 ocaml:01 compiler:01 makefile:01 chailloux:01 faiencerie:01 92340:01 reine:01 wrote:01 compilers:01 Eray Ozkural wrote: > Hello there, > > I've looked at the CUDA bindings for ocaml, but it seems the kernels > were in C, am I right? How can I write the kernel in ocaml? I have an > ocaml program that is badly in need of parallelization and it fits the > NVIDIA architecture. If ocaml changes are required please explain to > me a little, I have sufficient knowledge of compilers, I've worked on > a commercial C-to-FPGA compiler project for 2 years. Of course it > would be best if I can just handle it with a makefile :) You cannot do that today easily. The French OpenGPU project -funded by French public money http://www.competitivite.gouv.fr/spip.php?article581 (in which I will be a partner)- will start in january 2010 to deal with such issues (probably with OpenCL, not CUDA). There won't be usable results soon (and I have no idea if at end of the project, there will be a simple solution to your problem). You could try to help the OpenGPU partners involved. Ask Emmanuel Chailloux (in CC). If you need today to call a CUDA kernel from Ocaml, you have to use C! Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***