- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Everybody,
I started vector programming just recently using ICL and I am really enjoying Intel facilities in this regard.
I just come across a stetement as highlighted below, however I have a hard time making sense of it. In particular I don't understand what is meant by "vector condition".
I would appreciate if sb please elaborate as I am new to vector programming.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
scalar means non-vector (single) variable
L-value means left of =
vector condition... means a vector of conditions (not necessarily all having the same values)
result = yes, no, no, yes // make up your mind, what does this mean???
Jim Dempsey
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
scalar means non-vector (single) variable
L-value means left of =
vector condition... means a vector of conditions (not necessarily all having the same values)
result = yes, no, no, yes // make up your mind, what does this mean???
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, If I understand your point correctly, it simply means that given a vector of boolean condition vector (eg. vectorized version of an if condition (deciding which R-value to be assigned to a scaler L-value) ), we logically can't decide which value to assign to a single scaler L-value and thus should be avoided.
Is that correct ????
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, however, keep in mind that there are instructions that can return a scalar result from a function performed on a vector. For example
float _mm512_reduce_gmax_ps (__m512 a)
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes I totally understand that ... I have done some vector programming before and I graps your points. It is just sometimes I don't know the compiler-related terms very well and it makes me ask stupid questions just to confirm my understanding.
I keep Intel Intrinsics Guide under my plow and check the execution cycles for different interinsics every now and then.
I just converted a pretty large Matlab code to C++ and it is a hassle to vertorize manually so I am trying to learn nots and bolts of Intel's Auto Vectorization before I make any stupid mistakes ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mike,
Could you please confirm if your issue is resolved and whether we can close this thread.
Regards,
Vidya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes it is answered!
Feel free to close the thread.
thanks so much !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mike,
Thanks for the confirmation!
As this issue has been resolved, we will no longer respond to this thread.
If you require any additional assistance from Intel, please start a new thread.
Any further interaction in this thread will be considered community only.
Have a Good day.
Thanks & Regards
Vidya

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page