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.9 required=5.0 tests=AWL,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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id D86CCBBAF for ; Thu, 24 Sep 2009 01:15:15 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnAGAEtJukrRVdK2kGdsb2JhbACCIGGMVoFxiHg/AQEBAQkJDAcTA6o4gTGPdQEDAgSEFwWBWA X-IronPort-AV: E=Sophos;i="4.44,440,1249250400"; d="scan'208";a="36699471" Received: from mail-yx0-f182.google.com ([209.85.210.182]) by mail1-smtp-roc.national.inria.fr with ESMTP; 24 Sep 2009 01:15:15 +0200 Received: by yxe12 with SMTP id 12so1384518yxe.1 for ; Wed, 23 Sep 2009 16:15:14 -0700 (PDT) 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=VOrFwtgNn/SlF5EMUmc7TamxYBv+pfUUp2Y4ZlSzKYM=; b=BIcnmlPyMJsShDDpvu3EAvnjcQZG1cI0JY7CyHYA195DUgl67z2cOYj+7KaSQqT2p6 +HDlVthqZedOnrSXRynaix+8nT1CuzdO/nlYf/srLtZ8YcnNNoLSA+b30tBvZh19Gd3P e9fVyIEMFkuoGPmk5o/utSZ/rm2E92OK2mM5Q= 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=EOE/EzO8eV4hz5XWxJ/nOgQ6VBOUy/BXVnpdoB8v1B6PRDln4yOsoA4y8gfV7hKRz0 5aTXQ/VvpEasMMdTjTowtxORLf9RE0AfL2M0VKa0in3uQ+UW3gkT7l0K5cdeT+Agk0TQ QphsLXkKuyvrJp6sS2Drr0pNcrMT8L+Bffrmo= MIME-Version: 1.0 Received: by 10.101.9.10 with SMTP id m10mr3206212ani.130.1253747714476; Wed, 23 Sep 2009 16:15:14 -0700 (PDT) In-Reply-To: <200909240121.02123.jon@ffconsultancy.com> References: <87fxaex78q.fsf@frosties.localdomain> <200909240121.02123.jon@ffconsultancy.com> Date: Thu, 24 Sep 2009 01:15:14 +0200 Message-ID: <4d1b2df20909231615t49deff43w2c27daad1c3effda@mail.gmail.com> Subject: Re: [Caml-list] OC4MC : OCaml for Multicore architectures From: Philippe Wang To: Jon Harrop Cc: caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; ocaml:01 ocamlopt:01 ocamlopt:01 lib:01 patched:01 ocaml:01 native-code:01 compiler:01 ocaml-:01 lib:01 -thread:01 cmxa:01 cmxa:01 utime:01 beginner's:01 make program.nc uses original ocamlopt make program.th uses the newly built ocamlopt with the necessary options (lib links) then you can compare program.nc and program.th On Thu, Sep 24, 2009 at 2:21 AM, Jon Harrop wrote: > On Wednesday 23 September 2009 11:53:09 Goswin von Brederlow wrote: >> Has anyone tested this yet? Any success stories? > > Well, I've used the build.sh script to build a patched OCaml 3.10.2 that > identifies itself as: > > $ ocamlopt -v > The Objective Caml native-code compiler, version > 3.10.2+patch-ocaml4multicore-20090823 > Standard library > directory: /home/jdh30/src/ocaml/parallel/oc4mc-20090823/ocaml-3.10.2/../out/lib/ocaml > > and I've built their tests: > > $ cd tests > $ make matmul.nc > ocamlopt -o "matmul.nc" -thread unix.cmxa threads.cmxa > graphics.cmxa "matmul.ml" > File "matmul.ml", line 25, characters 8-13: > Warning Y: unused variable count. > File "matmul.ml", line 26, characters 8-16: > Warning Y: unused variable last_col. > > and run them: > > $ time ./matmul.nc 1000 8 > Temp de calcul: utime 38.930433, stime 0.012000, rtime 38.943138 > Fatal error: exception Invalid_argument("index out of bounds") > > real 0m38.974s > user 0m38.942s > sys 0m0.028s > > Note the exception that (I think) should have been caught and handled > silently. > > But I cannot get anything to run in parallel. None of the tests use more than > one core and my own busy-wait-loops-on-two-threads test also runs only on one > core. Any idea what I'm doing wrong? Is there a flag to enable it or > something? > > One possible cause: I'm running in a 64-bit chroot. > > -- > Dr Jon Harrop, Flying Frog Consultancy Ltd. > http://www.ffconsultancy.com/?e > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- Philippe Wang mail@philippewang.info