seanjensengrey / fortrancl

opencl to fortran bindings
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Ifort requires the ;-assume byterecl' flag. #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
After compiling with Intel Fortran (latest version)
, the example code "sum" run as following :

-----------------------------------------------------
CL device: 
 Caicos                                                                         

 "/tmp/OCLc88xhl.cl", line 1: error: expected a declaration
  /oi  1 r
  ^

At e
 nd of source: warning: parsing restarts here after previous syntax error

1 err
 or detected in the compilation of "/tmp/OCLc88xhl.cl".

Internal error: clc com
 piler invocation failed.

Error: program build failed.
------------------------------------------------------

My OS is scientific linux 63

Thanks

Original issue reported on code.google.com by limou...@gmail.com on 6 Sep 2012 at 10:19

GoogleCodeExporter commented 8 years ago
Thanks for the report. I think this is an issue of the ifort compiler, it is 
solved by using the flag:

-assume byterecl

Can you check whether this fixes the problem.

Original comment by xavier.andrade.valencia on 6 Sep 2012 at 3:44

GoogleCodeExporter commented 8 years ago
Thank you very much.
I should've learned more about the compiler operation.

Original comment by limou...@gmail.com on 6 Sep 2012 at 11:41

GoogleCodeExporter commented 8 years ago

Original comment by xavier.andrade.valencia on 30 Aug 2013 at 10:39