Csound Csound-dev Csound-tekno Search About

[Cs-dev] BUILD_MULTI_CORE

Date2014-11-20 09:00
Fromlppier
Subject[Cs-dev] BUILD_MULTI_CORE
Hi.. the build.sh for csound 6 ios is below. 

Just wondering if BUILD_MULTI_CORE can be enabled here for Csound 6. 
Is this an experimental feature?  as I don't see it in the build.sh file...
curious.

Thanks. 

#!/bin/sh
rm -rf cs6iOS
mkdir cs6iOS
cd cs6iOS
cmake ../.. -G Xcode -DUSE_GETTEXT=0 -DUSE_DOUBLE=0 -DBUILD_STATIC_LIBRARY=1
-DBUILD_CSOUND_AC=0 -DBUILD_RELEASE=1 -DCMAKE_BUILD_TYPE=Release
-DUSE_CURL=0  -DIOS=1
xcodebuild -sdk iphoneos -xcconfig ../device.xcconfig -target
CsoundLib-static -configuration Release
cp Release/libCsoundLib.a ./libcsound-device.a
xcodebuild -sdk iphonesimulator -xcconfig ../simulator.xcconfig -target
CsoundLib-static -configuration Release 
lipo -create libcsound-device.a Release/libCsoundLib.a -output
../libcsound.a



--
View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-11-20 11:47
Fromjpff
SubjectRe: [Cs-dev] BUILD_MULTI_CORE
I thought it was compiled by default now.  Activated by -j option.  Indeed 
theproblem seems to be the other way, for systems without threads.
==John ff

On Thu, 20 Nov 2014, lppier wrote:

> Hi.. the build.sh for csound 6 ios is below.
>
> Just wondering if BUILD_MULTI_CORE can be enabled here for Csound 6.
> Is this an experimental feature?  as I don't see it in the build.sh file...
> curious.
>
> Thanks.
>
> #!/bin/sh
> rm -rf cs6iOS
> mkdir cs6iOS
> cd cs6iOS
> cmake ../.. -G Xcode -DUSE_GETTEXT=0 -DUSE_DOUBLE=0 -DBUILD_STATIC_LIBRARY=1
> -DBUILD_CSOUND_AC=0 -DBUILD_RELEASE=1 -DCMAKE_BUILD_TYPE=Release
> -DUSE_CURL=0  -DIOS=1
> xcodebuild -sdk iphoneos -xcconfig ../device.xcconfig -target
> CsoundLib-static -configuration Release
> cp Release/libCsoundLib.a ./libcsound-device.a
> xcodebuild -sdk iphonesimulator -xcconfig ../simulator.xcconfig -target
> CsoundLib-static -configuration Release
> lipo -create libcsound-device.a Release/libCsoundLib.a -output
> ../libcsound.a
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-11-20 23:08
Fromlppier
SubjectRe: [Cs-dev] BUILD_MULTI_CORE
AttachmentsNone  None  
Sorry John .. May I ask where exactly to put this flag for ios? 



On 20 Nov 2014, at 7:47 pm, jpff-2 [via Csound] <[hidden email]> wrote:

I thought it was compiled by default now.  Activated by -j option.  Indeed
theproblem seems to be the other way, for systems without threads.
==John ff

On Thu, 20 Nov 2014, lppier wrote:

> Hi.. the build.sh for csound 6 ios is below.
>
> Just wondering if BUILD_MULTI_CORE can be enabled here for Csound 6.
> Is this an experimental feature?  as I don't see it in the build.sh file...
> curious.
>
> Thanks.
>
> #!/bin/sh
> rm -rf cs6iOS
> mkdir cs6iOS
> cd cs6iOS
> cmake ../.. -G Xcode -DUSE_GETTEXT=0 -DUSE_DOUBLE=0 -DBUILD_STATIC_LIBRARY=1
> -DBUILD_CSOUND_AC=0 -DBUILD_RELEASE=1 -DCMAKE_BUILD_TYPE=Release
> -DUSE_CURL=0  -DIOS=1
> xcodebuild -sdk iphoneos -xcconfig ../device.xcconfig -target
> CsoundLib-static -configuration Release
> cp Release/libCsoundLib.a ./libcsound-device.a
> xcodebuild -sdk iphonesimulator -xcconfig ../simulator.xcconfig -target
> CsoundLib-static -configuration Release
> lipo -create libcsound-device.a Release/libCsoundLib.a -output
> ../libcsound.a
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641p5738642.html
To unsubscribe from BUILD_MULTI_CORE, click here.
NAML


View this message in context: Re: BUILD_MULTI_CORE
Sent from the Csound - Dev mailing list archive at Nabble.com.

Date2014-11-20 23:27
Fromlppier
SubjectRe: [Cs-dev] BUILD_MULTI_CORE
AttachmentsNone  None  
Curiously, is multi core in csound 5?



On 20 Nov 2014, at 7:47 pm, jpff-2 [via Csound] <[hidden email]> wrote:

I thought it was compiled by default now.  Activated by -j option.  Indeed
theproblem seems to be the other way, for systems without threads.
==John ff

On Thu, 20 Nov 2014, lppier wrote:

> Hi.. the build.sh for csound 6 ios is below.
>
> Just wondering if BUILD_MULTI_CORE can be enabled here for Csound 6.
> Is this an experimental feature?  as I don't see it in the build.sh file...
> curious.
>
> Thanks.
>
> #!/bin/sh
> rm -rf cs6iOS
> mkdir cs6iOS
> cd cs6iOS
> cmake ../.. -G Xcode -DUSE_GETTEXT=0 -DUSE_DOUBLE=0 -DBUILD_STATIC_LIBRARY=1
> -DBUILD_CSOUND_AC=0 -DBUILD_RELEASE=1 -DCMAKE_BUILD_TYPE=Release
> -DUSE_CURL=0  -DIOS=1
> xcodebuild -sdk iphoneos -xcconfig ../device.xcconfig -target
> CsoundLib-static -configuration Release
> cp Release/libCsoundLib.a ./libcsound-device.a
> xcodebuild -sdk iphonesimulator -xcconfig ../simulator.xcconfig -target
> CsoundLib-static -configuration Release
> lipo -create libcsound-device.a Release/libCsoundLib.a -output
> ../libcsound.a
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641p5738642.html
To unsubscribe from BUILD_MULTI_CORE, click here.
NAML


View this message in context: Re: BUILD_MULTI_CORE
Sent from the Csound - Dev mailing list archive at Nabble.com.

Date2014-11-21 08:57
FromVictor Lazzarini
SubjectRe: [Cs-dev] BUILD_MULTI_CORE
An earlier version is.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 20 Nov 2014, at 23:27, lppier  wrote:
> 
> Curiously, is multi core in csound 5?
> 
> 
> 
> On 20 Nov 2014, at 7:47 pm, jpff-2 [via Csound] <[hidden email]> wrote:
> 
>> I thought it was compiled by default now.  Activated by -j option.  Indeed 
>> theproblem seems to be the other way, for systems without threads. 
>> ==John ff 
>> 
>> On Thu, 20 Nov 2014, lppier wrote: 
>> 
>> > Hi.. the build.sh for csound 6 ios is below. 
>> > 
>> > Just wondering if BUILD_MULTI_CORE can be enabled here for Csound 6. 
>> > Is this an experimental feature?  as I don't see it in the build.sh file... 
>> > curious. 
>> > 
>> > Thanks. 
>> > 
>> > #!/bin/sh 
>> > rm -rf cs6iOS 
>> > mkdir cs6iOS 
>> > cd cs6iOS 
>> > cmake ../.. -G Xcode -DUSE_GETTEXT=0 -DUSE_DOUBLE=0 -DBUILD_STATIC_LIBRARY=1 
>> > -DBUILD_CSOUND_AC=0 -DBUILD_RELEASE=1 -DCMAKE_BUILD_TYPE=Release 
>> > -DUSE_CURL=0  -DIOS=1 
>> > xcodebuild -sdk iphoneos -xcconfig ../device.xcconfig -target 
>> > CsoundLib-static -configuration Release 
>> > cp Release/libCsoundLib.a ./libcsound-device.a 
>> > xcodebuild -sdk iphonesimulator -xcconfig ../simulator.xcconfig -target 
>> > CsoundLib-static -configuration Release 
>> > lipo -create libcsound-device.a Release/libCsoundLib.a -output 
>> > ../libcsound.a 
>> > 
>> > 
>> > 
>> > -- 
>> > View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641.html
>> > Sent from the Csound - Dev mailing list archive at Nabble.com. 
>> > 
>> > ------------------------------------------------------------------------------ 
>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server 
>> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards 
>> > with Interactivity, Sharing, Native Excel Exports, App Integration & more 
>> > Get technology previously reserved for billion-dollar corporations, FREE 
>> > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>> > _______________________________________________ 
>> > Csound-devel mailing list 
>> > [hidden email] 
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> ------------------------------------------------------------------------------ 
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server 
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards 
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more 
>> Get technology previously reserved for billion-dollar corporations, FREE 
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>> _______________________________________________ 
>> Csound-devel mailing list 
>> [hidden email] 
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> If you reply to this email, your message will be added to the discussion below:
>> http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641p5738642.html
>> To unsubscribe from BUILD_MULTI_CORE, click here.
>> NAML
> 
> View this message in context: Re: BUILD_MULTI_CORE
> Sent from the Csound - Dev mailing list archive at Nabble.com.
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-11-22 14:09
Fromlppier
SubjectRe: [Cs-dev] BUILD_MULTI_CORE
AttachmentsNone  None  
Ok I put -j2 in the csd and it does show 2 threads instead of 1. 
The performance actually gets worse, though. Am I using it correctly? 

I did a rough test using the CSound examples for iOS 's miditest csd. 
With 1 thread, playing quickly on the virtual keyboard doesn't cause any stuttering. 
With -j2 it causes stuttering and the cpu usage is much more. 
With -j4 the stuttering happens when I press a few keys.

Is there any way of optimising this? 

Thanks! 

On Thu, Nov 20, 2014 at 7:47 PM, jpff-2 [via Csound] <[hidden email]> wrote:
I thought it was compiled by default now.  Activated by -j option.  Indeed
theproblem seems to be the other way, for systems without threads.
==John ff

On Thu, 20 Nov 2014, lppier wrote:

> Hi.. the build.sh for csound 6 ios is below.
>
> Just wondering if BUILD_MULTI_CORE can be enabled here for Csound 6.
> Is this an experimental feature?  as I don't see it in the build.sh file...
> curious.
>
> Thanks.
>
> #!/bin/sh
> rm -rf cs6iOS
> mkdir cs6iOS
> cd cs6iOS
> cmake ../.. -G Xcode -DUSE_GETTEXT=0 -DUSE_DOUBLE=0 -DBUILD_STATIC_LIBRARY=1
> -DBUILD_CSOUND_AC=0 -DBUILD_RELEASE=1 -DCMAKE_BUILD_TYPE=Release
> -DUSE_CURL=0  -DIOS=1
> xcodebuild -sdk iphoneos -xcconfig ../device.xcconfig -target
> CsoundLib-static -configuration Release
> cp Release/libCsoundLib.a ./libcsound-device.a
> xcodebuild -sdk iphonesimulator -xcconfig ../simulator.xcconfig -target
> CsoundLib-static -configuration Release
> lipo -create libcsound-device.a Release/libCsoundLib.a -output
> ../libcsound.a
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641p5738642.html
To unsubscribe from BUILD_MULTI_CORE, click here.
NAML



View this message in context: Re: BUILD_MULTI_CORE
Sent from the Csound - Dev mailing list archive at Nabble.com.

Date2014-11-22 16:40
FromMichael Gogins
SubjectRe: [Cs-dev] BUILD_MULTI_CORE
AttachmentsNone  None  

Multicore has overheads and only provides speedups for certain types of performance. If you have long notes for multiple instances of each instrument you should get significant speedups. Otherwise probably not. Try various settings.

I think also that the basic ideas in C sound for multicore are very good, but the actual implementation could perhaps be made more efficient.

Regards,
Mike

On Nov 22, 2014 9:10 AM, "lppier" <madstrum@gmail.com> wrote:
Ok I put -j2 in the csd and it does show 2 threads instead of 1. 
The performance actually gets worse, though. Am I using it correctly? 

I did a rough test using the CSound examples for iOS 's miditest csd. 
With 1 thread, playing quickly on the virtual keyboard doesn't cause any stuttering. 
With -j2 it causes stuttering and the cpu usage is much more. 
With -j4 the stuttering happens when I press a few keys.

Is there any way of optimising this? 

Thanks! 

On Thu, Nov 20, 2014 at 7:47 PM, jpff-2 [via Csound] <[hidden email]> wrote:
I thought it was compiled by default now.  Activated by -j option.  Indeed
theproblem seems to be the other way, for systems without threads.
==John ff

On Thu, 20 Nov 2014, lppier wrote:

> Hi.. the build.sh for csound 6 ios is below.
>
> Just wondering if BUILD_MULTI_CORE can be enabled here for Csound 6.
> Is this an experimental feature?  as I don't see it in the build.sh file...
> curious.
>
> Thanks.
>
> #!/bin/sh
> rm -rf cs6iOS
> mkdir cs6iOS
> cd cs6iOS
> cmake ../.. -G Xcode -DUSE_GETTEXT=0 -DUSE_DOUBLE=0 -DBUILD_STATIC_LIBRARY=1
> -DBUILD_CSOUND_AC=0 -DBUILD_RELEASE=1 -DCMAKE_BUILD_TYPE=Release
> -DUSE_CURL=0  -DIOS=1
> xcodebuild -sdk iphoneos -xcconfig ../device.xcconfig -target
> CsoundLib-static -configuration Release
> cp Release/libCsoundLib.a ./libcsound-device.a
> xcodebuild -sdk iphonesimulator -xcconfig ../simulator.xcconfig -target
> CsoundLib-static -configuration Release
> lipo -create libcsound-device.a Release/libCsoundLib.a -output
> ../libcsound.a
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641p5738642.html
To unsubscribe from BUILD_MULTI_CORE, click here.
NAML



View this message in context: Re: BUILD_MULTI_CORE
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2014-11-22 20:01
FromJustin Smith
SubjectRe: [Cs-dev] BUILD_MULTI_CORE
AttachmentsNone  None  
the best analogy I have heard for all this is a kitchen.

Adding more people to the kitchen only helps if they don't waste their time waiting for a limited set of tools or appliances (access to mutable shared resources like a table which needs to be coordinated), if they aren't wasting time waiting for a prep step that they could have done themselves in the time they were waiting (data dependencies between threads), and if the amount of time it takes to divide up the tasks and decide who is doing what and coordinating the process is less than the amount of time saved (process thread context switches).

On Sat, Nov 22, 2014 at 8:40 AM, Michael Gogins <michael.gogins@gmail.com> wrote:

Multicore has overheads and only provides speedups for certain types of performance. If you have long notes for multiple instances of each instrument you should get significant speedups. Otherwise probably not. Try various settings.

I think also that the basic ideas in C sound for multicore are very good, but the actual implementation could perhaps be made more efficient.

Regards,
Mike

On Nov 22, 2014 9:10 AM, "lppier" <madstrum@gmail.com> wrote:
Ok I put -j2 in the csd and it does show 2 threads instead of 1. 
The performance actually gets worse, though. Am I using it correctly? 

I did a rough test using the CSound examples for iOS 's miditest csd. 
With 1 thread, playing quickly on the virtual keyboard doesn't cause any stuttering. 
With -j2 it causes stuttering and the cpu usage is much more. 
With -j4 the stuttering happens when I press a few keys.

Is there any way of optimising this? 

Thanks! 

On Thu, Nov 20, 2014 at 7:47 PM, jpff-2 [via Csound] <[hidden email]> wrote:
I thought it was compiled by default now.  Activated by -j option.  Indeed
theproblem seems to be the other way, for systems without threads.
==John ff

On Thu, 20 Nov 2014, lppier wrote:

> Hi.. the build.sh for csound 6 ios is below.
>
> Just wondering if BUILD_MULTI_CORE can be enabled here for Csound 6.
> Is this an experimental feature?  as I don't see it in the build.sh file...
> curious.
>
> Thanks.
>
> #!/bin/sh
> rm -rf cs6iOS
> mkdir cs6iOS
> cd cs6iOS
> cmake ../.. -G Xcode -DUSE_GETTEXT=0 -DUSE_DOUBLE=0 -DBUILD_STATIC_LIBRARY=1
> -DBUILD_CSOUND_AC=0 -DBUILD_RELEASE=1 -DCMAKE_BUILD_TYPE=Release
> -DUSE_CURL=0  -DIOS=1
> xcodebuild -sdk iphoneos -xcconfig ../device.xcconfig -target
> CsoundLib-static -configuration Release
> cp Release/libCsoundLib.a ./libcsound-device.a
> xcodebuild -sdk iphonesimulator -xcconfig ../simulator.xcconfig -target
> CsoundLib-static -configuration Release
> lipo -create libcsound-device.a Release/libCsoundLib.a -output
> ../libcsound.a
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641p5738642.html
To unsubscribe from BUILD_MULTI_CORE, click here.
NAML



View this message in context: Re: BUILD_MULTI_CORE
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2014-11-23 12:51
Fromlppier
SubjectRe: [Cs-dev] BUILD_MULTI_CORE
Thanks all for the info. 
Wondering if it would be wise to run more than one instance of csound at a
time in order to save on cpu performance? Say, the first instance runs
instruments 1 & 2 on one thread, passes the audio to the second instance
which runs instrument 3 & 4 on another thread. 



--
View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641p5738699.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-11-23 17:48
FromMichael Gogins
SubjectRe: [Cs-dev] BUILD_MULTI_CORE
AttachmentsNone  None  

Not more efficient.

On Nov 23, 2014 7:51 AM, "lppier" <madstrum@gmail.com> wrote:
Thanks all for the info.
Wondering if it would be wise to run more than one instance of csound at a
time in order to save on cpu performance? Say, the first instance runs
instruments 1 & 2 on one thread, passes the audio to the second instance
which runs instrument 3 & 4 on another thread.



--
View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641p5738699.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2014-11-25 00:20
Fromlppier
SubjectRe: [Cs-dev] BUILD_MULTI_CORE
AttachmentsNone  None  
Hi Michael, would performance be worse? Just curious..



On 24 Nov 2014, at 1:49 am, Michael Gogins-2 [via Csound] <[hidden email]> wrote:

Not more efficient.

On Nov 23, 2014 7:51 AM, "lppier" <[hidden email]> wrote:
Thanks all for the info.
Wondering if it would be wise to run more than one instance of csound at a
time in order to save on cpu performance? Say, the first instance runs
instruments 1 & 2 on one thread, passes the audio to the second instance
which runs instrument 3 & 4 on another thread.



--
View this message in context: http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641p5738699.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/BUILD-MULTI-CORE-tp5738641p5738701.html
To unsubscribe from BUILD_MULTI_CORE, click here.
NAML


View this message in context: Re: BUILD_MULTI_CORE
Sent from the Csound - Dev mailing list archive at Nabble.com.