Csound Csound-dev Csound-tekno Search About

[Cs-dev] ParCS code...

Date2010-08-02 09:29
FromVictor Lazzarini
Subject[Cs-dev] ParCS code...
... does not not build on OSX

In file included from Engine/auxfd.c:24:
H/csoundCore.h:1292: error: syntax error before ‘pthread_barrier_t’
H/csoundCore.h:1292: warning: no semicolon at end of struct or union
H/csoundCore.h:1293: warning: data definition has no type or storage  
class
H/csoundCore.h:1307: error: syntax error before ‘}’ token
Engine/auxfd.c: In function ‘csoundAuxAlloc’:
Engine/auxfd.c:48: error: dereferencing pointer to incomplete type
Engine/auxfd.c:49: error: dereferencing pointer to incomplete type
Engine/auxfd.c:55: error: dereferencing pointer to incomplete type
Engine/auxfd.c:56: error: dereferencing pointer to incomplete type
Engine/auxfd.c: In function ‘fdrecord’:
Engine/auxfd.c:64: error: dereferencing pointer to incomplete type
Engine/auxfd.c:65: error: dereferencing pointer to incomplete type
Engine/auxfd.c:66: error: dereferencing pointer to incomplete type
Engine/auxfd.c:67: error: dereferencing pointer to incomplete type
Engine/auxfd.c: In function ‘fdclose’:
Engine/auxfd.c:77: error: dereferencing pointer to incomplete type
Engine/auxfd.c:88: error: dereferencing pointer to incomplete type
Engine/auxfd.c:89: error: dereferencing pointer to incomplete type
Engine/auxfd.c:90: error: dereferencing pointer to incomplete type
Engine/auxfd.c:96: error: dereferencing pointer to incomplete type
Engine/auxfd.c:97: error: dereferencing pointer to incomplete type
Engine/auxfd.c: In function ‘auxchfree’:
Engine/auxfd.c:105: error: dereferencing pointer to incomplete type
Engine/auxfd.c:114: error: dereferencing pointer to incomplete type
Engine/auxfd.c: In function ‘fdchclose’:
Engine/auxfd.c:124: error: dereferencing pointer to incomplete type
Engine/auxfd.c:134: error: dereferencing pointer to incomplete type
Engine/auxfd.c: In function ‘auxchprint’:
Engine/auxfd.c:144: error: dereferencing pointer to incomplete type
Engine/auxfd.c:147: error: dereferencing pointer to incomplete type
Engine/auxfd.c: In function ‘fdchprint’:
Engine/auxfd.c:158: error: dereferencing pointer to incomplete type
Engine/auxfd.c:161: error: dereferencing pointer to incomplete type
Engine/auxfd.c:162: error: dereferencing pointer to incomplete type
scons: *** [Engine/auxfd.o] Error 1


I think we have gone through this before. OSX does not have support  
for pthread_barrier_t or something?
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-02 09:34
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] ParCS code...
> ... does not not build on OSX


Odd.  I thought that the pthread library existed on OSX and ther is an
emulation of the barrier code for OSX.  Look at Engine/cs_par_base.c
for the emulation code


> In file included from Engine/auxfd.c:24:
> H/csoundCore.h:1292: error: syntax error before ‘pthread_barrier_t’
> H/csoundCore.h:1292: warning: no semicolon at end of struct or union
> H/csoundCore.h:1293: warning: data definition has no type or storage
> class
> H/csoundCore.h:1307: error: syntax error before ‘}’ token



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-02 09:35
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] ParCS code...
PS:  My machine with multicore is not on at present and the code is on
that machine and not the laptop
  Will power it up after breakfast


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-02 09:46
FromVictor Lazzarini
SubjectRe: [Cs-dev] ParCS code...
It does not seem to be there. This other project seems to have  
stumbled on the same problem:
http://www.mail-archive.com/mesa-commit@lists.freedesktop.org/msg15512.html


On 2 Aug 2010, at 09:34, jpff@cs.bath.ac.uk wrote:

> Odd.  I thought that the pthread library existed on OSX and ther is an
> emulation of the barrier code for OSX.  Look at Engine/cs_par_base.c
> for the emulation code


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-02 10:01
FromVictor Lazzarini
SubjectRe: [Cs-dev] ParCS code...
I tried your fix and it has got past that problem (moved the barrier  
struct definition to csoundCore.h). But now:

Top/argdecode.c: In function ‘decode_long’:
Top/argdecode.c:891: error: ‘struct ’ has no member named  
‘newParser’
Top/argdecode.c:913: error: ‘struct ’ has no member named  
‘calculateWeights’
Top/argdecode.c:917: error: ‘struct ’ has no member named  
‘newParser’

?


On 2 Aug 2010, at 09:35, jpff@cs.bath.ac.uk wrote:

> PS:  My machine with multicore is not on at present and the code is on
> that machine and not the laptop
>  Will power it up after breakfast


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-02 10:32
FromVictor Lazzarini
SubjectRe: [Cs-dev] ParCS code...
Ok, now it builds on OSX. I've committed the changes.

Victor
On 2 Aug 2010, at 10:01, Victor Lazzarini wrote:

> I tried your fix and it has got past that problem (moved the barrier
> struct definition to csoundCore.h). But now:
>
> Top/argdecode.c: In function ‘decode_long’:
> Top/argdecode.c:891: error: ‘struct ’ has no member named
> ‘newParser’
> Top/argdecode.c:913: error: ‘struct ’ has no member named
> ‘calculateWeights’
> Top/argdecode.c:917: error: ‘struct ’ has no member named
> ‘newParser’
>
> ?
>
>
> On 2 Aug 2010, at 09:35, jpff@cs.bath.ac.uk wrote:
>
>> PS:  My machine with multicore is not on at present and the code is  
>> on
>> that machine and not the laptop
>> Will power it up after breakfast
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-02 10:45
FromVictor Lazzarini
SubjectRe: [Cs-dev] ParCS code...
Ok, running my sheppard tone test, 100s, in my dual core laptop.

-j 1  => 1.526s
-j 2  => 9.373s
-j 4 =>  34.341s

csound (normal code, old parser) => 0.755s

I guess in my HW, it does not make sense to run more than one thread.  
But the new parser is still generating slower code.

Victor
On 2 Aug 2010, at 10:32, Victor Lazzarini wrote:

> Ok, now it builds on OSX. I've committed the changes.
>
> Victor
> On 2 Aug 2010, at 10:01, Victor Lazzarini wrote:
>
>> I tried your fix and it has got past that problem (moved the barrier
>> struct definition to csoundCore.h). But now:
>>
>> Top/argdecode.c: In function ‘decode_long’:
>> Top/argdecode.c:891: error: ‘struct ’ has no member named
>> ‘newParser’
>> Top/argdecode.c:913: error: ‘struct ’ has no member named
>> ‘calculateWeights’
>> Top/argdecode.c:917: error: ‘struct ’ has no member named
>> ‘newParser’
>>
>> ?
>>
>>
>> On 2 Aug 2010, at 09:35, jpff@cs.bath.ac.uk wrote:
>>
>>> PS:  My machine with multicore is not on at present and the code is
>>> on
>>> that machine and not the laptop
>>> Will power it up after breakfast
>>
>>
>> ------------------------------------------------------------------------------
>> The Palm PDK Hot Apps Program offers developers who use the
>> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
>> of $1 Million in cash or HP Products. Visit us here for more details:
>> http://p.sf.net/sfu/dev2dev-palm
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net