| Thanks for the information... I find the Apple situation to be kind of
discouraging.
However, about casual developers, let there be no mistake, if they did
not have GCC 4.6, Csound would still build and run, it just would not
support OpenMP. Code using OpenMP would simply run single-threaded in
these builds.
Hope this is clearer,
Mike
On Sun, Dec 4, 2011 at 6:22 PM, Steven Yi wrote:
> I tried to get a compile for GCC 4.6 going but found it difficult.
> The problem I see though is that if we require a non-standard compiler
> for OSX, then packagers may be fine (Victor and myself) but casual
> developers may be much less inclined to work on csound. I did try
> some pre-compiled 4.6 compiler I saw in one of those threads but it
> failed to work for me. I'm much more interested in lowering the
> barrier for Csound developers (hence why I'm advocating CMake a lot),
> and I don't think this would help in that regards. It's a shame
> though that OpenMP seems problematic on OSX Lion.
>
> On Sat, Dec 3, 2011 at 9:29 PM, Michael Gogins wrote:
>> Blender had the same problem, but resolved it by building with gcc 4.6:
>>
>> http://projects.blender.org/tracker/index.php?func=detail&aid=28407&group_id=9&atid=498
>>
>> The fix involves either installing, or building, gcc 4.6 for OS X as
>> described here:
>>
>> http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Mac/OpenMP
>>
>> I would like to know if the people who build the Csound releases for
>> OS X are willing to do this -- to use GCC 4.6.
>>
>> After thinking this through, I have decided to keep the OpenMP code in
>> my opcodes and wait for the OS X toolchain to catch up. If OpenMP is
>> not available, then the opcodes should compile and run fine for single
>> threaded use without having to do much if any tweaking of the code.
>>
>> For the future, however, this is a much larger issue. In my
>> experience, it is far easier to do multi-threaded code correctly with
>> OpenMP and this would be very handy to have for any of the major
>> revisions of the Csound internals that we talked about in Hannover.
>>
>> The following summarizes OpenMP vs. raw pthreads prettty well:
>>
>> http://stackoverflow.com/questions/935467/parallelization-pthreads-or-openmp
>>
>> There are some other interesting threads about OpenMP versus other
>> approaches/libraries on Stack Overflow.
>>
>> Regards,
>> Mike
>>
>>
>> On Sat, Dec 3, 2011 at 3:34 PM, Steven Yi wrote:
>>> One word of caution, OpenMP has been sort of messed up on OSX Lion, or
>>> at least was. I do not know its current state. I had posted a bit
>>> about this when I was looking at the Lua opcodes and OSX:
>>>
>>> http://csound.1045644.n5.nabble.com/OSX-Lion-OpenMP-and-crashes-td4900923.html
>>>
>>> On Sat, Dec 3, 2011 at 7:05 PM, Michael Gogins wrote:
>>>> Please, let's enable this for all platforms. I use OpenMP for thread
>>>> safety and parallelization in most of my opcodes, and I think it is
>>>> the nearest thing to an open source, widely accepted standard for this
>>>> sort of thing. Plus, I don't want have to recode my opcodes to work
>>>> properly on OS X.
>>>>
>>>> Compilers use the OpenMP pragmas to generate efficient pthreads code
>>>> that is highly tested and error-free for common parallel constructs.
>>>> The OpenMP library contains state for parallel regions, manages
>>>> configuration parameters and environment variables, and provides some
>>>> auxiliary routines.
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>>
>>>>
>>>> On Sat, Dec 3, 2011 at 1:49 PM, Victor Lazzarini
>>>> wrote:
>>>>> Yes, I think there is OpenMP now with the compilers we use. However I am not sure this is being enabled on build.
>>>>>
>>>>> Victor
>>>>> On 3 Dec 2011, at 18:39, Michael Gogins wrote:
>>>>>
>>>>>> (1) Are the OpenMP pragmas doing anything on OS X,that is, is Csound
>>>>>> compiling and linking with OpenMP on OS X?
>>>>>>
>>>>>> (2) What, if anything, remains to be done regarding the use of
>>>>>> spinlocks in Csound?
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> All the data continuously generated in your IT infrastructure
>>>>>> contains a definitive record of customers, application performance,
>>>>>> security threats, fraudulent activity, and more. Splunk takes this
>>>>>> data and makes sense of it. IT sense. And common sense.
>>>>>> http://p.sf.net/sfu/splunk-novd2d
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> All the data continuously generated in your IT infrastructure
>>>>> contains a definitive record of customers, application performance,
>>>>> security threats, fraudulent activity, and more. Splunk takes this
>>>>> data and makes sense of it. IT sense. And common sense.
>>>>> http://p.sf.net/sfu/splunk-novd2d
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>> ------------------------------------------------------------------------------
>>>> All the data continuously generated in your IT infrastructure
>>>> contains a definitive record of customers, application performance,
>>>> security threats, fraudulent activity, and more. Splunk takes this
>>>> data and makes sense of it. IT sense. And common sense.
>>>> http://p.sf.net/sfu/splunk-novd2d
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> All the data continuously generated in your IT infrastructure
>>> contains a definitive record of customers, application performance,
>>> security threats, fraudulent activity, and more. Splunk takes this
>>> data and makes sense of it. IT sense. And common sense.
>>> http://p.sf.net/sfu/splunk-novd2d
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> All the data continuously generated in your IT infrastructure
>> contains a definitive record of customers, application performance,
>> security threats, fraudulent activity, and more. Splunk takes this
>> data and makes sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-novd2d
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |