caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tahir H Butt <tahir@acm.jhu.edu>
To: caml-list@inria.fr, debian-ocaml-maint@lists.debian.org
Subject: [Caml-list] problems with ocamlopt
Date: 17 Aug 2003 14:09:06 -0400	[thread overview]
Message-ID: <1061143746.3142.16.camel@venere.cog.brown.edu> (raw)

Hi all,

I have some code which is doing some basic matrix calculations (for a
perceptron classifier) and I've run into some problems with ocamlopt. It
seems that the same code, which runs fine on my laptop (powerbook, mac
os x > 10.2, ocaml 3.06) with ocamlopt and runs fine on a linux machine
(athlon mp 2000+, 2.4.18-24.7, ocaml 3.06 using gcc 3.2), does not run
on my work machine (pentium 4 2.26, debian 2.4.20, ocaml 3.06 using gcc
3.3.1). On my work machine if I just compile via ocamlc, the code runs
fine. But if I do it to native code, I get (a) incorrect numbers after a
certain number of iterations of my code, (b) a stack overflow after a
few more iterations. I have no special ocamlopt flags set. I first
thought maybe it's the binaries from debian that were at fault, but I
tried recompiling but that did not help the situation.

What could possibly be at fault here? Is it ocamlopt? Is it debian? the
kernel?

Any help would be much appreciated. Below is some information on the
work machine where ocamlopt is coughing up. Thanks!

# /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 2.26GHz
stepping        : 4
cpu MHz         : 2254.022
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips        : 4495.76

# gcc --version
gcc (GCC) 3.3.1 20030626 (Debian prerelease)

# ocamlopt -version
3.06

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


             reply	other threads:[~2003-08-17 18:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-17 18:09 Tahir H Butt [this message]
2003-08-21 12:49 ` Xavier Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1061143746.3142.16.camel@venere.cog.brown.edu \
    --to=tahir@acm.jhu.edu \
    --cc=caml-list@inria.fr \
    --cc=debian-ocaml-maint@lists.debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).