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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 66F41BC37 for ; Thu, 17 Dec 2009 11:59:58 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoCADueKUvRVdzjkGdsb2JhbACCX49AiHU/AQEBAQkJDAcTA6lsgTKFYIhjAQIDBYQoBA X-IronPort-AV: E=Sophos;i="4.47,411,1257116400"; d="scan'208";a="52298526" Received: from mail-fx0-f227.google.com ([209.85.220.227]) by mail4-smtp-sop.national.inria.fr with ESMTP; 17 Dec 2009 11:59:58 +0100 Received: by fxm27 with SMTP id 27so1795888fxm.3 for ; Thu, 17 Dec 2009 02:59:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=zsbaSijjGX5Co2SbVT67044cde4iW9uJ6EdP1f++fCk=; b=cB+1VXjZuXN4yuGSWspO+dFVtgly8XUaVIwbKesrpQLcNRaQm8gW/8TM/alX20NilQ jQECOBV4gicPPTN/n+qLftiRiRlEBcghd0yCKPGhWFspb73xFTlp6Z3xuyrt4VgpBzsa wJ8AcgSRO2bR1gHyK4rUl2SNVWlhT6IluZ1yk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=raogJ0mGUYYHOgD8xoqzRE8H3tsknrU74DdV4jOtU30AlWYsXWmDJ5oL5Ls3HhBphZ CyVYgw9J9tM+7EB4E8+wUW8EHHPiQPjfG9jPkmQvmsOKFSThS6VCOZDwMS/vZHVvcCXQ T0vGJSeezoYjbRQRHjdZ/T+SdqvcGU+6L9B4A= MIME-Version: 1.0 Received: by 10.239.181.11 with SMTP id k11mr213009hbg.203.1261047597470; Thu, 17 Dec 2009 02:59:57 -0800 (PST) In-Reply-To: <320e992a0912162245u5ce780f2ke838bff2ff378321@mail.gmail.com> References: <320e992a0912150737t483a5946x9cad351fc344691f@mail.gmail.com> <4B27B981.80700@starynkevitch.net> <200912160039.51086.jon@ffconsultancy.com> <20091216134138.411322D08BF@kicki.hq.vtech> <320e992a0912160547q7969ed30i129e5798456fbf84@mail.gmail.com> <4d1b2df20912161634w682bb804meb6c4090fa28284b@mail.gmail.com> <320e992a0912162245u5ce780f2ke838bff2ff378321@mail.gmail.com> Date: Thu, 17 Dec 2009 11:59:57 +0100 Message-ID: <4d1b2df20912170259jbd4208bs7cf6f21ccc789064@mail.gmail.com> Subject: Re: [Caml-list] How to write a CUDA kernel in ocaml? From: Philippe Wang To: Eray Ozkural Cc: caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; ocaml:01 eray:01 ozkural:01 ocaml:01 bytecode:01 bytecode:01 runtime:01 2009:98 javascript:98 wrote:01 caml-list:01 sed:01 implemented:02 kernel:02 programming:03 On Thu, Dec 17, 2009 at 7:45 AM, Eray Ozkural wrote: > What I want to do is to run the ocaml bytecode interpreter on each core, and > then feed the relevant bytecode to those. It can be done, I suppose? Or am I > missing something crucial? :) The runtime library would have to be ported to > OpenCL/CUDA, as well, isn't that possible? I don't see why it wouldn't be possible. After all, there are Java, JavaScript and OCaml implementations of that VM, so it could probably be implemented with any "normal" programming language (exclude those that are not Turing complete and exclude those such as brainfuck or sed) ! But I don't quite see how it could help gaining performance, at least not yet. Anyway, I'm looking forward to seeing a new esoteric implementation of that nice VM ! :-) > PS: Sorry for having mailed this to you personally, I intended to post > it to the > mailing list. no problem ;-) -- Philippe Wang mail@philippewang.info