- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
After the example fortran code vdrnggaussian.f successfully compiled (in visual studio 2010+Intel Parallel Studio XE 2013), the resulting executable file returns the following error message:
MKL ERROR: Parameter 1 was incorrect on entry to vdRngGaussian.
Error: bad arguments (code -3).
What should I do to get the right results? Many thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think that you should not have used mkl_intel_ilp64_dll.lib unless you have other settings that make the integer arguments to MKL routines to be 8-byte integers. Use mkl_intel_lp64_dll.lib instead.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please state the specific version numbers of the compiler, e.g., Version 14.0.3.202 Build 20140422, the MKL version used, and the options used to build the application.
I built the version of the example included in Composer 2013 SP1, and it ran fine with no errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear mecej4,
Many thanks for your reply.
The version I am using for the compiler is Intel(R) Visual Fortran Compiler XE 13.1 for Windows (13.1.0.149), and the MKL is Intel(R) Math Kernel Library 11.0 Update 2 for Windows (11.0.2.149).
The project properties are set as follows:
Fortran—>general—>Additional Include Directories:
C:\Program Files (x86)\Intel\Composer XE 2013\mkl\include
Linker—>general—>Additional Library Directories:
C:\Program Files (x86)\Intel\Composer XE 2013\mkl\lib\intel64
Linker—>Input—> Additional Dependencies: mkl_intel_ilp64_dll.lib mkl_core_dll.lib mkl_sequential_dll.lib
Looking forward to any further help. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think that you should not have used mkl_intel_ilp64_dll.lib unless you have other settings that make the integer arguments to MKL routines to be 8-byte integers. Use mkl_intel_lp64_dll.lib instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
see more details in mkl user's guide -- Using the ILP64 Interface vs. LP64 Interface
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi both,
Many thanks for your help. It works now. Cheers.


- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page