[Cs-dev] Compilation warning
Date | 2013-03-25 18:21 |
From | Andres Cabrera |
Subject | [Cs-dev] Compilation warning |
Hi, I'm getting this warning on two different systems (on nearly all files): /home/andres/src/csound6/Engine/twarp.c:1:0: warning: SSE instruction set disabled, using 387 arithmetics What does it mean? Cheers, Andrés ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-deve |
Date | 2013-03-25 19:03 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Compilation warning |
could it have to do with the chosen architecture in your build? On 25 Mar 2013, at 18:21, Andres Cabrera wrote: > Hi, > > I'm getting this warning on two different systems (on nearly all files): > > /home/andres/src/csound6/Engine/twarp.c:1:0: warning: SSE instruction > set disabled, using 387 arithmetics > > What does it mean? > > Cheers, > Andrés > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > 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 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-03-25 19:27 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Compilation warning |
> Hi, > > I'm getting this warning on two different systems (on nearly all files): > > /home/andres/src/csound6/Engine/twarp.c:1:0: warning: SSE instruction > set disabled, using 387 arithmetics > > What does it mean? > The architecture is set wrong in your Custom.cmake file. I see that on my aging VIA computer. Should run Ok but not as fast as if it had SSE set -mtune= something appropriate on line #19 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} .......) ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-03-27 03:52 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Compilation warning |
Hi, I haven't set anything in Custom.cmake (there's only Custom.cmake.ex). Maybe the defaults are wrong? Cheers, Andrés On Mon, Mar 25, 2013 at 12:03 PM, Victor Lazzarini |
Date | 2013-04-18 23:57 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Compilation warning |
Attachments | None None |
Hi, I've added -mtune=native to the C flags, and I'm still having the problem. Is there anything else that could be causeing this? /usr/bin/gcc -Dcsound64_EXPORTS -DUSE_DOUBLE -D_CSOUND_RELEASE_ -DCS_DEFAULT_PLUGINDIR=\"/usr/local/lib/csound/plugins64-6.0\" -DUSE_LRINT -DLINUX -DPIPES -fopenmp -mtune=native -g -fPIC -I/home/andres/src/csound6/./H -I/home/andres/src/csound6/./include -I/home/andres/src/csound6/./Engine -I/home/andres/src/csound6/. -I/home/andres/src/csound6-build -fvisibility=hidden -Wno-format -g -D__BUILDING_LIBCSOUND -DHAVE_PTHREAD_SPIN_LOCK -DHAVE_PTHREAD_BARRIER_INIT -DUSE_OPENMP -DPARCS -DGNU_GETTEXT -DHAVE_DIRENT_H -DHAVE_FCNTL_H -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H -DHAVE_VALUES_H -fvisibility=hidden -ffast-math -mfpmath=sse -fomit-frame-pointer -o CMakeFiles/csound64.dir/Engine/cfgvar.c.o -c /home/andres/src/csound6/Engine/cfgvar.c /home/andres/src/csound6/Engine/cfgvar.c:1:0: warning: SSE instruction set disabled, using 387 arithmetics
Cheers, Andrés On Tue, Mar 26, 2013 at 8:52 PM, Andres Cabrera <mantaraya36@gmail.com> wrote: Hi, |
Date | 2013-04-19 01:35 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Compilation warning |
Attachments | None None |
use -march=native (not -mtune) and nothing else,that should do it.If you use -march then GCC will be free to generate instructions that work on the specified CPU, but not on (typically) earlier CPUs in the architecture family. If you use -mtune, then the compiler will generate code that works on any of them, but will favor instruction sequences that run fastest on the specific CPU you indicated. You have too many flags and the later ones will override the earlier ones. -march=native will do everything it can to speed up the code just for your processor. Hope this helps, Mike On Thu, Apr 18, 2013 at 6:57 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-04-19 02:08 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Compilation warning |
Attachments | None None |
Thanks, this fixes it. Shouldn't that be the default, rather than having to specify it manually? Cheers, Andrés On Thu, Apr 18, 2013 at 5:35 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2013-04-19 09:47 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Compilation warning |
You have -mfpmath=sse in the compiler options which says to use SSE instructions. The warning is ssaying that yoyr processor does bot haveSSE instructions, so it is using 387 floating point instead. What is the problem? > Hi, > > > I've added -mtune=native to the C flags, and I'm still having the problem. > Is there anything else that could be causeing this? > > > /usr/bin/gcc -Dcsound64_EXPORTS -DUSE_DOUBLE -D_CSOUND_RELEASE_ > -DCS_DEFAULT_PLUGINDIR=\"/usr/local/lib/csound/plugins64-6.0\" -DUSE_LRINT > -DLINUX -DPIPES -fopenmp -mtune=native -g -fPIC > -I/home/andres/src/csound6/./H -I/home/andres/src/csound6/./include > -I/home/andres/src/csound6/./Engine -I/home/andres/src/csound6/. > -I/home/andres/src/csound6-build -fvisibility=hidden -Wno-format -g > -D__BUILDING_LIBCSOUND -DHAVE_PTHREAD_SPIN_LOCK > -DHAVE_PTHREAD_BARRIER_INIT > -DUSE_OPENMP -DPARCS -DGNU_GETTEXT -DHAVE_DIRENT_H -DHAVE_FCNTL_H > -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H > -DHAVE_TERMIOS_H -DHAVE_VALUES_H -fvisibility=hidden -ffast-math > -mfpmath=sse -fomit-frame-pointer -o > CMakeFiles/csound64.dir/Engine/cfgvar.c.o -c > /home/andres/src/csound6/Engine/cfgvar.c > > /home/andres/src/csound6/Engine/cfgvar.c:1:0: warning: SSE instruction set > disabled, using 387 arithmetics > > > Cheers, > > Andrés > > > On Tue, Mar 26, 2013 at 8:52 PM, Andres Cabrera > |
Date | 2013-04-20 00:00 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Compilation warning |
Attachments | None None |
Hi John, The problem is that I get tons of warning messages with the default build parameters. I could only shut them up with Michael's suggestion.Cheers, Andrés On Fri, Apr 19, 2013 at 1:47 AM, <jpff@cs.bath.ac.uk> wrote:
|
Date | 2013-04-20 00:58 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Compilation warning |
Attachments | None None |
The default should not be -march=native because that might generate code that might not even run on other processors. The default should be -mtune=something, because -mtune includes fallback routines (like the 387 emulator) if instructions are not implemented on the processor. Here "something" should be something reasonably recent that most people are likely to have. Maybe "nocona" or "core2". What would be the best "something" for Csound is a good topic for a survey. We could ask Csound users for their CPU models and count them. Regards, Mike
On Thu, Apr 18, 2013 at 9:08 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-04-20 19:03 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] Compilation warning |
Gcc has a -mtune=generic option, that tunes it for the most commonly available processors (in i386 and amd64). http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options ‘generic’ Produce code optimized for the most common IA32/AMD64/EM64T processors. If you know the CPU on which your code will run, then you should use the corresponding -mtune or -march option instead of -mtune=generic. But, if you do not know exactly what CPU users of your application will have, then you should use this option. As new processors are deployed in the marketplace, the behavior of this option will change. Therefore, if you upgrade to a newer version of GCC, code generation controlled by this option will change to reflect the processors that are most common at the time that version of GCC is released. There is no -march=generic option because -march indicates the instruction set the compiler can use, and there is no generic instruction set applicable to all processors. In contrast, -mtune indicates the processor (or, in this case, collection of processors) for which the code is optimized. On Fri, Apr 19, 2013 at 8:58 PM, Michael Gogins |
Date | 2013-04-20 19:27 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Compilation warning |
Attachments | None None |
Thanks, I didn't know that one, that's what should be used (if it compares well with nocona or core2). Regards, Mike On Sat, Apr 20, 2013 at 2:03 PM, Felipe Sateler <fsateler@gmail.com> wrote: Gcc has a -mtune=generic option, that tunes it for the most commonly Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |