Re: VECTOR data types and intrinsic functions
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Wed, 05 Dec 2007 05:06:55 -0800
Joost wrote:
(snip)
And this really is an issue. Vector hardware has been around
for years, and compilers have been able to generate code for it
from standard f77 onwards.
yes, but compilers tend to fail to recognize some of the
opportunities, or can not make the right decision unless more
information than explicit in the source is provided. Notice also that
this proposal is for very small vectors (i.e. the size of the SSE
registers for example) which is not what has been traditionally called
vectorizable code. The reason I would favor such a tool is that I've
been working hard on vectorizing a computational kernel in our code,
and this proposal would have solved the problems I had very elegantly.
Very similar data types are available in C.
But if it can be done using standard code, or slight modifications
to that code, that would seem better than doing something completely
different.
yes, but vectors for vector instructions must have 'special'
properties such as alignment and size that you might want to assert
using a special type.
Maybe a new KIND that would indicate the alignment and
vector length multiple that was needed. That would allow only a small
modification to most programs. I would also be a relatively small
modification to the compilers, other than the actual generation of
the vector instructions. (That is, most already have provisions for
handling alignment.)
Again, a preprocessor could convert the VECTOR style to a more
standard style for back compatibility.
(snip)
-- glen
.
- Follow-Ups:
- Re: VECTOR data types and intrinsic functions
- From: robin
- Re: VECTOR data types and intrinsic functions
- References:
- VECTOR data types and intrinsic functions
- From: standwind@xxxxxxxxx
- Re: VECTOR data types and intrinsic functions
- From: Joost
- Re: VECTOR data types and intrinsic functions
- From: Dan Nagle
- Re: VECTOR data types and intrinsic functions
- From: Joost
- VECTOR data types and intrinsic functions
- Prev by Date: Re: VECTOR data types and intrinsic functions
- Next by Date: Re: Password security
- Previous by thread: Re: VECTOR data types and intrinsic functions
- Next by thread: Re: VECTOR data types and intrinsic functions
- Index(es):
Relevant Pages
|