From: Markus Mottl <mottl@miss.wu-wien.ac.at>
To: OCAML <caml-list@inria.fr>
Subject: [Caml-list] native threads not parallel?
Date: Fri, 15 Jun 2001 18:49:32 +0200 [thread overview]
Message-ID: <20010615184931.A25835@miss.wu-wien.ac.at> (raw)
Hello,
I am having problems using native threads (under Solaris; don't know
about other architectures): I can't get them to run in parallel on a
dual-processor machine even though I turn off the master lock on the
C-side around an external function that should execute in parallel.
There are four threads running (I actually create two only - ?) as I can
observe with "ps -L". The two created ones reach the external Fortran
routine (in LAPACK) at about the same time, obviously in parallel or at
least interleaved up this point as I can see in the logged checkpoints.
I turn off/on the lock around this routine as in:
enter_blocking_section();
some_really_expensive_function ();
leave_blocking_section();
Unfortunately, the expensive function is executed sequentially only.
What could be the cause of the lack of parallelism? Am I just
misunderstanding how things work? If this could be a bug, I can send
you more information to the bug-tracker, of course.
Regards,
Markus Mottl
--
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next reply other threads:[~2001-06-15 16:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-15 16:49 Markus Mottl [this message]
2001-06-15 17:10 ` Xavier Leroy
2001-06-15 18:42 ` Markus Mottl
2001-06-15 21:33 ` Markus Mottl
2001-06-21 13:43 ` Markus Mottl
2003-02-20 23:10 Shivkumar Chandrasekaran
2003-02-21 0:15 ` Jacques Garrigue
2003-02-21 4:24 ` shivkumar chandrasekaran
2003-02-21 10:43 ` Markus Mottl
2003-02-21 15:11 ` Jacques Garrigue
2003-02-21 17:57 ` Markus Mottl
2003-02-24 17:39 ` Shivkumar Chandrasekaran
2003-02-21 0:32 ` Chris Uzdavinis
2003-02-21 1:56 ` james woodyatt
2003-02-21 4:43 ` shivkumar chandrasekaran
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=20010615184931.A25835@miss.wu-wien.ac.at \
--to=mottl@miss.wu-wien.ac.at \
--cc=caml-list@inria.fr \
/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