One simple question

One simple question

1, I add include 'mkl_vsl.fi' to my program and it return with error"
fortcom: Error: mkl_vsl.fi, line 24: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C!++
----^
fortcom: Error: mkl_vsl.fi, line 25: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! BASIC RANDOM NUMBER GENERATOR (BRNG) RELATED MACRO DEFINITIONS
------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 26: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C!--
----^
fortcom: Error: mkl_vsl.fi, line 28: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! MAX NUMBER OF BRNGS CAN BE REGISTERED IN VSL
------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 29: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! No more than VSL_MAX_REG_BRNGS basic generators can be registered in VSL
----------------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 30: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! (including predefined basic generators).
--------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 31: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C!
--^
fortcom: Error: mkl_vsl.fi, line 32: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! Change this number to increase/decrease number of BRNGs can be registered.
------------------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 36: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! PREDEFINED BRNG NAMES
-------------------------^
fortcom: Error: mkl_vsl.fi, line 52: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! LEAPFROG METHOD FOR GRAY-CODE BASED QUASI-RANDOM NUMBER BASIC GENERATORS
----------------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 53: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! VSL_BRNG_SOBOL and VSL_BRNG_NIEDERR are Gray-code based quasi-random number
-------------------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 54: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! basic generators. In contrast to pseudorandom number basic generators,
---------------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 55: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! quasi-random ones take the dimension as initialization parameter.
----------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 56: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C!
--^
fortcom: Error: mkl_vsl.fi, line 57: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! Suppose that quasi-random number generator (QRNG) dimension is S. QRNG
--------------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 58: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! sequence is a sequence of S-dimensio
nal vectors:
----------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 59: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C!
--^
fortcom: Error: mkl_vsl.fi, line 60: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! x0=(x0[0],x0[1],...,x0[S-1]),x1=(x1[0],x1[1],...,x1[S-1]),...
--------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 61: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C!
--^
fortcom: Error: mkl_vsl.fi, line 62: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! VSL treats the output of any basic generator as 1-dimensional, however:
---------------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 63: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C!
--^
fortcom: Error: mkl_vsl.fi, line 64: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! x0[0],x0[1],...,x0[S-1],x1[0],x1[1],...,x1[S-1],...
----------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 65: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C!
--^
fortcom: Error: mkl_vsl.fi, line 66: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! Because of nature of VSL_BRNG_SOBOL and VSL_BRNG_NIEDERR QRNGs,
--------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 67: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! the only S-stride Leapfrog method is supported for them. In other words,
----------------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 68: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! user can generate subsequences, which consist of fixed elements of
----------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 69: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! vectors x0,x1,... For example, if 0 element is fixed, the following
-----------------------------------------------------------------------^
fortcom: Error: mkl_vsl.fi, line 70: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! subsequence is generated:
-----------------------------^
fortcom: Error: mkl_vsl.fi, line 71: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C!
--^
fortcom: Error: mkl_vsl.fi, line 72: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( : %
C! x0[1],x1[1],x2[1],...
----------------------------^
fortcom: Severe: Too many errors, exiting
compilation aborted for test.f90 (code 1)

which seems be caused by comment lines that start with "C!".
Somehow, ifort(8.1) can not recognize it. The compiling command I use is
source /opt/intel_fc_80/bin/ifortvars.sh
CFLAGS="-i_dynamic -cm -w95"
PFLAGS="-L/opt/intel/mkl721/lib/32 -lmkl_lapack -lmkl_ia32 -lguide -lpthread -tpp7 -O3"
ifort $CFLAGS $1.f90 ran.f -o $1.ex $PFLAGS
Is that possible to add some option when compiling to solve this problem or I need to remove all C manually?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I can suggest 3 ways of your problem resolving:

1) rename your source file from $1.f90 to $1.f

2) you remove all 'C' symbols from .fi files manualy

3) you wait next MKL release where we remove these symbols

Leave a Comment

Please sign in to add a comment. Not a member? Join today