Csound Csound-dev Csound-tekno Search About

[Cs-dev] Multi-threading

Date2008-06-21 01:42
FromMichael Gogins
Subject[Cs-dev] Multi-threading
I've got this sort of working, or at least not crashing, on Windows with the following changes, which are booked in:

-- Use of native pthread_barrier_* functions, where they exist on the build system.

-- Much improved diagnostic messages (visible with -v command-line option).

Performance completes and the code, which I now understand, seems somewhat correct. But there are still problems:

-- Multi-threaded performance still takes somewhat longer than single-threaded performance. It may be that
   this is due to the overhead of barrier calls and threads not being outweighed by the actual savings on
   instrument computations in my test csds. Or it may be that there are subtle bugs in the multi-threading 
   code such that things are not actually proceeding concurrently, or are doubling, or something (see below).

-- Multi-threaded soundfiles show odd increases in amplitude in places, suggesting that too many instances 
   are computing audio at the same time in some places, but not in other places.

-- The partitioning is not correct. If I have 5 active instances, I get 2 partitions with 2 instances each.
   It should be 2 instances in one partition, and 3 instances in another partition.

-- As I noted before, we will need to protect writes to shared buffers, especially spout in OOps/aops.c.

Regards,
Mike






-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-06-21 09:42
FromFelipe Sateler
SubjectRe: [Cs-dev] Multi-threading
AttachmentsNone  None  None