Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

[CRITICAL] IFort wrongly treating variable name as directive part

$
0
0

If you compile the following code with ifort -openmp the compiler will detect the variable wrongly as a "map(to" directive and complain about an unknown variable.


Similar in the omp update statement it wrongly complains about an unexpected "TO"

program fortTest
  integer top_value
  
  top_value = 0
  
  !$omp target data map(top_value)

  top_value = 1
  
  !$omp target update from(top_value)
  
  !$omp end target data
end

 


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>