From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=DNS_FROM_RFC_POST,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 030C2BBAF for ; Wed, 9 Sep 2009 14:38:00 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiYBAA4+p0rRVd27kWdsb2JhbACSCIh7PwEBAQEJCwoHEwOvV4EnkFkBAwIEBYQPBQ X-IronPort-AV: E=Sophos;i="4.44,358,1249250400"; d="scan'208";a="32458810" Received: from mail-qy0-f187.google.com ([209.85.221.187]) by mail2-smtp-roc.national.inria.fr with ESMTP; 09 Sep 2009 14:37:59 +0200 Received: by qyk17 with SMTP id 17so2259632qyk.2 for ; Wed, 09 Sep 2009 05:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:mail-followup-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=CytqpHlO6Vw/uqf7PvYIw+X0dF5xt95+GslVbp0xl3c=; b=NExf9MG6lB01psbC/jYgskiPJ9sNg4oOoRtt98fskARXIYH9zaXRlGSXFScJr3FKLS uQGF5r1+BHBCo/ZGCvHaKzxY7NNVxOLuQ2jLiHLiOt9Isb8yKPMBKkU31YQ2o5MvtfJ2 U07NPrkrb3/Biuu+hi3B+mlKi9q6Pc952UO2o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=OZcNGXV8jY2AmwcK7YQdeLhKwZOExvmvfL/A0jn4GOnmod3mulMGJunFImOJpUnmdv xwpEaVbXISE1mE/6WlzkEgV1UKyphUzqHcqdOgAINxD37BvHBatPdZykLlHTLiSD+1J1 ty/BXnALSRo9aMpJMEyWomWig9yy2Xe//MrFU= Received: by 10.224.92.194 with SMTP id s2mr49528qam.383.1252499878397; Wed, 09 Sep 2009 05:37:58 -0700 (PDT) Received: from rogue (dsl-124-150-123-228.vic.westnet.com.au [124.150.123.228]) by mx.google.com with ESMTPS id 8sm12243qwj.38.2009.09.09.05.37.54 (version=SSLv3 cipher=RC4-MD5); Wed, 09 Sep 2009 05:37:57 -0700 (PDT) Received: by rogue (sSMTP sendmail emulation); Wed, 9 Sep 2009 22:37:51 +1000 From: "Sashan Govender" Date: Wed, 9 Sep 2009 22:37:51 +1000 To: Guillaume Hennequin Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] OCaml and GPUs Message-ID: <20090909123751.GB9953@rogue> Mail-Followup-To: Guillaume Hennequin , caml-list@yquem.inria.fr References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) X-Spam: no; 0.00; ocaml:01 guillaume:01 interfacing:01 ocaml:01 bindings:01 bindings:01 runtime:01 wrappers:01 2009:98 wrote:01 wrote:01 compile:01 caml-list:01 strings:01 kernel:02 On Wed, Sep 09, 2009 12:42:35 PM, Guillaume Hennequin wrote: > Hello, > > I was wondering if there has been any effort so far in interfacing OCaml > with GPU programming solutions like AMD Stream, or OpenCL. > I'm only aware of Daml (CUDA bindings). > > I wrote some pieces of AMD Brook bindings a while ago to do very basic > read/write operations on GPU, plus some kernel calls. Not aware of any other bindings. I think I got daml to a stage similar to your Brook bindings where you could allocate a floating point array in the gpu and then maybe do something with that array. I can't really remember. It's been a while since I looked at it. > I don't have much time to invest in this unfortunately. > With OpenCL's ability to compile kernels at runtime, bindings for Ocaml > could even offer the nice possibility to write the kernels in .ml files as > strings, which would save a lot of wrappers around kernel-only C files. > I would have expected CUDA to have a similar ability but haven't checked.