public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/55457] New: Having some predefined macros to get more information about gcc vector extensions capabilities would be nice
@ 2012-11-24 16:13 siarhei.siamashka at gmail dot com
  2012-12-09  1:39 ` [Bug c/55457] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: siarhei.siamashka at gmail dot com @ 2012-11-24 16:13 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55457

             Bug #: 55457
           Summary: Having some predefined macros to get more information
                    about gcc vector extensions capabilities would be nice
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: siarhei.siamashka@gmail.com


One practical problem is how to identify whether vector extensions are
beneficial or a fallback to the standard C code is better to be taken. In the
case of OpenCL, there are param values such as
CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT, CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT,
etc.

   
http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clGetDeviceInfo.html

If gcc could have some sort of predefined macro telling that "preferred vector
width is 1", it could be used in the code to avoid getting performance penalty
by just using normal C code when compiling for non-SIMD capable platforms.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-09 23:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-24 16:13 [Bug c/55457] New: Having some predefined macros to get more information about gcc vector extensions capabilities would be nice siarhei.siamashka at gmail dot com
2012-12-09  1:39 ` [Bug c/55457] " pinskia at gcc dot gnu.org
2012-12-09  2:33 ` siarhei.siamashka at gmail dot com
2012-12-09 23:03 ` hp at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).