Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

statistic problem

yingwu
Beginner
1,332 Views
Hi, could I ask is there MKL-based statistcal library to calculate kurtosis, variance, etc??????? I download a Intel library, named 'Intel Summary Statistics Library 1.0'. However, it does not work!!!!!!! The error is






1>------ Build started: Project: Console1, Configuration: Debug Win32 ------
1>Compiling with Intel Fortran 11.0.066 [IA-32]...
1>vslTest1.F90
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(862): error #5082: Syntax error, found IDENTIFIER 'REAL' when expecting one of: ( * , ; [ / = =>
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(862): error #5082: Syntax error, found '::' when expecting one of: ( * ) , + . - %% : . ** / // .LT. < .LE. <= .EQ. == .NE. /= ...
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(883): error #5082: Syntax error, found IDENTIFIER 'REAL' when expecting one of: ( * , ; [ / = =>
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(883): error #5082: Syntax error, found '::' when expecting one of: ( * ) , + . - %% : . ** / // .LT. < .LE. <= .EQ. == .NE. /= ...
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(896): error #5082: Syntax error, found IDENTIFIER 'MKL_VSL_SS_TYPE' when expecting one of: (
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(909): error #5082: Syntax error, found IDENTIFIER 'MKL_VSL_SS_TYPE' when expecting one of: (
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(897): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(898): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(899): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(900): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(901): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(902): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(897): error #6457: This derived type name has not been declared. [VSL_SS_TASK]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(898): error #6451: A dummy argument name is required in this context. [STORAGE]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(899): error #6451: A dummy argument name is required in this context. [N_PARAMS]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(900): error #6420: This array name is invalid in this context. [METHOD_PARAMS]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(901): error #6420: This array name is invalid in this context. [ROBUST_MEAN]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(902): error #6420: This array name is invalid in this context. [ROBUST_COV]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(899): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [N_PARAMS]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(901): error #6221: The assumed-size array must be a dummy argument. [ROBUST_MEAN]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(902): error #6221: The assumed-size array must be a dummy argument. [ROBUST_COV]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(910): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(911): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(912): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(913): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(914): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(915): error #6643: This statement is incorrectly positioned.
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(910): error #6457: This derived type name has not been declared. [VSL_SS_TASK]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(911): error #6451: A dummy argument name is required in this context. [STORAGE]
1>D:\Program Files\Intel\ssl\1.0.1\include\vsl_ss.fi(912): error #6451: A dummy argument name is required in this context. [N_PARAMS]
1>(3246): catastrophic error: Too many errors, exiting
1>compilation aborted for E:\test\Console1\Console1\vslTest1.F90 (code 1)
1>
1>Build log written to "file://E:\test\Console1\Console1\Debug\BuildLog.htm"
1>Console1 - 31 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
0 Kudos
8 Replies
ArturGuzik
Valued Contributor I
1,332 Views
Quoting - yingwu
Hi, could I ask is there MKL-based statistcal library to calculate kurtosis, variance, etc??????? I download a Intel library, named 'Intel Summary Statistics Library 1.0'. However, it does not work!!!!!!! The error is
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


It looks as the problem with include file vsl_ss.fi. How and where do you put the include/USE command in your vslTest1.F90 program (show a portion of the code, if possible, please)?

A.
0 Kudos
Gennady_F_Intel
Moderator
1,332 Views
Ying,
Did you see Steave's reply to your post (http://software.intel.com/en-us/forums/showthread.php?t=68158) ?
--Gennady

0 Kudos
Andrey_N_Intel
Employee
1,332 Views
Hello, answering all your posts re using Intel Summary Statistics Library and the linkage issue. At the moment Intel Summary Statistics Library is our alfa quality experimental software package intended for high speed stat analysis of datasets. It allows computing algebraic and central moments, skewness, kurtosis, variation coefficient, variance-covariance/correlation matrix; the library provides robust methods, helps to detect outliers and properly process missing values in the datasets. The library supports C/Fortran API.

Full description of the functionality is available in the Manual of the library, sslman.pdf which is in doc directory of the installation package. Additional information about usage model of the algorithms is available in the Application Notes whose pdf file is available for downloading at

http://software.intel.com/en-us/articles/intel-summary-statistics-library-accept-end-user-license-agreement-and-download.

In order to build a Fortran program which uses Summary Statistics algorithms you would need to correctly configure your enviroment:
1. To set up path to your Fortran compiler (include, lib, etc)
2. To set up path to Intel Math Kernel Library whose functionality is necessary to use Intel Summary Statistics Library
3. To set up path to Intel Summary Statistics Library

You also might want to configure the environment using tools of your Visual Studio(*).

To compiler/link your Fortran program you could use the line

ifort prog.f ss_interface.lib ss_kernel.lib mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib

More details about building/linking with Intel Summary Statistics Library is available in userguide.txt. The User Guide is available in the directory doc of the installation package.

Please, let us know how it works for you.

Best,
Andrey
0 Kudos
yingwu
Beginner
1,332 Views

Hi, first of all, thanks very much for all of you. I really have found this forum is very useful and helpful.

I also created another thread with the same question here. Sorry for this, Because I am not sure where to put my question????

I am sure I have set the path of Intel-fortran, MKL and the Intel statistcal library accurately. The MKL works well. The code in vslTest1.F90 is copied from one of provided samples, named 'vslsbasic.f', but I clean it to as below

include 'mkl_vsl.fi'
include 'vsl_ss.fi'

program MKL_VSL_TEST

USE MKL_VSL_TYPE
USE MKL_VSL_SS
USE MKL_VSL
USE MKL_VSL_SS_TYPE

TYPE(VSL_SS_TASK) task

end


I attach the sample file with this thread. Thanks again for your help.


Ying
0 Kudos
Andrey_N_Intel
Employee
1,332 Views
Hello Ying,
I was able to built the short test case(withUSE terms only) and the full test case you provided with Fortran compiler 11.1 using a simple bat script. Can you please show how youconfigure the environment, compile/link your application?
Andrey
0 Kudos
yingwu
Beginner
1,332 Views
Hello Ying,
I was able to built the short test case(withUSE terms only) and the full test case you provided with Fortran compiler 11.1 using a simple bat script. Can you please show how youconfigure the environment, compile/link your application?
Andrey

Hi Andrey,

I attach my evironment. I set the path of library by click Tools->Options->Intel Fortran->Compiler. Then I set the executable, libraries and includes respectively. Then I choose Project->properties->linker->input. I set 'mkl_c.lib libguide.lib ss_interface.lib ss_kernel.lib mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib'. I tried to delete 'mkl_c.lib libguide.lib', but the problem is still there.

I am using VS2008, IVF 10.0.066 with MKL 10.1. The MKL works without problems.
0 Kudos
Andrey_N_Intel
Employee
1,332 Views
Hello Ying,

Thereare extensive '&' symbols in the vsl_ss.fi file which would be removed in the future releases of the library. As a quick work-around you could use fixed format for the source file (for example, to set the fixed format in options of your project (Project->Properties->Fortran->Language->Source File format->Use fixed format(/fixed)).

Also,please remove mkl_c.lib libguide.libfrom your linkage line as the libsare unnecessary.

Please, let me know how the work-aroundworks on your side.

Best,
Andrey
0 Kudos
yingwu
Beginner
1,332 Views
Hello Ying,

Thereare extensive '&' symbols in the vsl_ss.fi file which would be removed in the future releases of the library. As a quick work-around you could use fixed format for the source file (for example, to set the fixed format in options of your project (Project->Properties->Fortran->Language->Source File format->Use fixed format(/fixed)).

Also,please remove mkl_c.lib libguide.libfrom your linkage line as the libsare unnecessary.

Please, let me know how the work-aroundworks on your side.

Best,
Andrey


Hi, Andrey. Yes, your way works. I never think somebody can do this, so thanks very much for this.

Best wishes,

Ying
0 Kudos
Reply