[Csnd] csound build on OSX 10.9
Date | 2014-04-22 00:09 |
From | Matti Koskinen |
Subject | [Csnd] csound build on OSX 10.9 |
I have all this fancy stuff on my Mac Mini, running Mavericks, but build fails. I have libpng, but building lib virtual, I get -lpng fails. I’ve installed it with homerew, and in /usr/local/lib there are various lib-files. Also I have fluid, but the opcodes are not built. I tried this Mac, because cuds 6.0 installs now. But on my Macbook Pro running 10.6.8, I can’t get the cuda-opcodes to work, I get parsing errors on diskin(..), on cuda different than on OpenCL Need to try this on Mac Mini, after I get bare-bones csound to build. Some earlier version was built ok. -m "Grep less", sed tee uniq tail cat |
Date | 2014-04-22 08:59 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csound build on OSX 10.9 |
The parsing errors are probably because you need to change the name of the file diskin is using, if that’s the only problem, then the cuda opcodes are OK. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 22 Apr 2014, at 00:09, Matti Koskinen |
Date | 2014-04-22 09:49 |
From | Matti Koskinen |
Subject | Re: [Csnd] csound build on OSX 10.9 |
On Apr 22, 2014, at 10:59 AM, Victor Lazzarini wrote: > The parsing errors are probably because you need to change the name of the file diskin is using, if that’s the > only problem, then the cuda opcodes are OK. > ======================== > Dr Victor Lazzarini > Senior Lecturer > NUI Maynooth, Ireland > victor dot lazzarini at nuim dot ie Of course I changed the file what I have, but this looks like parsing error: Csound version 6.02.0 (double samples) Apr 21 2014 libsndfile-1.0.25 UnifiedCSD: cladsyn.csd STARTING FILE Creating options Creating orchestra Creating score Loading command-line libraries: ./libclop1.dylib error: syntax error, unexpected T_OPCODEB (token "diskin2") from file cladsyn.csd (1) line 16: >>>asig1 diskin2 <<< I've tried with asig1 = diskin2 ... but another kind of error a = @ In the manual diskin is without parenthesis, but parser doesn't accept, when omitted. tnx -m Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-22 10:06 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csound build on OSX 10.9 |
Try pulling again from moodle, I’ve changed cladsyn.csd to use vco2 as a sound generator. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 22 Apr 2014, at 09:49, Matti Koskinen |
Date | 2014-04-22 11:20 |
From | Matti Koskinen |
Subject | Re: [Csnd] csound build on OSX 10.9 |
On Apr 22, 2014, at 12:06 PM, Victor Lazzarini wrote: > Try pulling again from moodle, I’ve changed cladsyn.csd to use vco2 as a sound generator. > ======================== > Dr Victor Lazzarini > Senior Lecturer > NUI Maynooth, Ireland > victor dot lazzarini at nuim dot ie > > pulled, but this with cuda 4.2, osx 10.6.8 Loading command-line libraries: error: syntax error, unexpected T_IDENT (token "fsig") from file cudadsyn_pvs_example.csd (1) line 17: >>>fsig <<< Parsing failed due to invalid input! Stopping on parser failure and this error with opencl: SECTION 1: new alloc for instr 1: available GPU[device 0] GeForce 8600M GT available CPU[device 1] Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz Failed to build program executable! Program build failure INIT ERROR in instr 1: kernel referenced an external function atomic_cmpxchg, that could not be found. #a0 cladsynth fsig 1 1 ibins idev B 0.000 - note deleted. i1 had 1 init errors Score finished in csoundPerform(). inactive allocs returned to freespace end of score. overall amps: 0.00000 overall samples out of range: 0 1 errors in performance tnx -m ps. the -lpng on my Mac Mini, OSX 10.9, is still there, can't test with that. I'll boot my ubuntu 12.04, and try on it Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-04-22 11:37 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csound build on OSX 10.9 |
The first error is because it looks like the opcodes were not built for CUDA (check your build, and see if libcudaops*.dylib are there). The second because the version of OpenCL you are using does not seem to have atomic_cmpxchg(), which maybe because it’s an earlier version than it is required (but that is strange since it is part of the opencl standard). It might be to do with the specific device/driver for your device. But try setting idev in your CSD file to select the other opencl device and see if that works (I am not sure which one you chose 0 or 1). ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 22 Apr 2014, at 11:20, Matti Koskinen |
Date | 2014-04-22 11:46 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csound build on OSX 10.9 |
Can you check what OpenCL version you are using in your 10.6.8? I think the atomic_cmpxchg() needs version 1.1. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 22 Apr 2014, at 11:20, Matti Koskinen |
Date | 2014-04-22 13:16 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csound build on OSX 10.9 |
I checked in my 10.6 machine and opencl is indeed too limited (1.0 I think). However I was able to build all but two of the cuda opcodes (the other two needed at least compute capabilities > 2.0). I’ve updated cmake to allow for this. Just set BUILD_CUDA_OPCODES=1 and CMAKE_OSX_DEPLOYMENT_TARGET=10.6 and they should build. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 22 Apr 2014, at 11:46, Victor Lazzarini |