Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I control what loops are vectorized?

CONTROL loops vectorized
0
Posted

How can I control what loops are vectorized?

0

By default, VAST tries to vectorize all the loops it can. You may already know what loop you want vectorized, and want to control which loops VAST will optimize. This can be done with the Vnovector switch and the novector pragma/directives. NOVECTOR disables conversion of loops to vector form. VECTOR serves only to toggle back from NOVECTOR; it does not force conversion. The -Vnovector switch is equivalent to NOVECTOR with file scope. If you want to explicitly pick your vector loops, you can set Vnovector on the command line and then have a few loops for which you selectively use the vector pragma/directive in front of the loop in the code to turn on vectorization.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123