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 190E9BBAF for ; Tue, 15 Dec 2009 16:37:42 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As4BACY8J0vRVdrkkGdsb2JhbACQJIF1ghWGUT8BAQEBCQkMBxMDrHSBMYVniGMBAgMFhCYE X-IronPort-AV: E=Sophos;i="4.47,400,1257116400"; d="scan'208";a="42059966" Received: from mail-bw0-f228.google.com ([209.85.218.228]) by mail1-smtp-roc.national.inria.fr with ESMTP; 15 Dec 2009 16:37:41 +0100 Received: by bwz28 with SMTP id 28so3457833bwz.17 for ; Tue, 15 Dec 2009 07:37:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=2tyl6IEy8sHfi1R12m3mvHWcGRDz5pIyk4YXLRiXnYw=; b=w2FiS2mLOtvz6jhb41D5cIj5uHta1mBNf8oTf1TS2wRZgKg+1Ccbdr10549NnrkLbe XQHzHG+cQwyZuMnqMeDlHMN4QtBGNLW8Xe4qAwk+7DBX3wAr0nx5UyGv5UmD4Q+p4suU 1LRaqtXwwhbNw7P27sHDJKFLFNbF2+Y8/H6qE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=cKWVQOu4xLv7b6G5ApXaQpJZeu+CI2nW7Sf0Z3QYZaDAcau/zykbAXfskZkdcjAcmC M02mFeNN6OqI3aGrvMWWxaqpK1OIkBvlTrugDWPA9cV7mIxe1fgZ1k9Ih9AHPmcV8tL/ n31+EqzwLESpZEofjiDc48UJmpwb0US/Cs/KQ= MIME-Version: 1.0 Received: by 10.204.8.26 with SMTP id f26mr2966011bkf.66.1260891461298; Tue, 15 Dec 2009 07:37:41 -0800 (PST) Date: Tue, 15 Dec 2009 17:37:41 +0200 Message-ID: <320e992a0912150737t483a5946x9cad351fc344691f@mail.gmail.com> Subject: How to write a CUDA kernel in ocaml? From: Eray Ozkural To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; ocaml:01 eray:01 ozkural:01 bindings:01 ocaml:01 compiler:01 makefile:01 eray:01 ozkural:01 bilkent:01 compilers:01 groups:02 kernel:02 kernel:02 seems:03 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 :) Best Regards, -- Eray Ozkural, PhD candidate. Comp. Sci. Dept., Bilkent University, Ankara http://groups.yahoo.com/group/ai-philosophy http://myspace.com/arizanesil http://myspace.com/malfunct