title: Force Auto-Parallelization VS 2012
body: <p>Assume that /QPar is set, and for the following code:</p>
  
  <pre><code>#pragma loop(hint_parallel(8))
  for(int i = 0; i &lt; u; i++)
  {
     SomeExpensiveCall();
  }
  </code></pre>
  
  <p>My u is small (~50), and SomeExpensiveCall takes ~1 second. The code doesn't appear to be getting parallelized (I commented out the hint and there was no change). Is there any way I can force the compiler to parallelize this?</p>
  
  <p>Something I just thought of - would this have anything to do with the fact that the project containing the above code is in a static library that is linked into a CLI/C++ DLL that does not (and cannot) have /QPar?</p>
  
  <p>Thanks</p>