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

How to import the function of mkl_set_interface_layer() in c#

darkcminor
Beginner
454 Views
How can this function be imported in c#?
Do you have a simple example in C#?.
0 Kudos
1 Reply
Vladimir_Koldakov__I
New Contributor III
454 Views
Hi, please find attached simple example:

mkl_set_interface_layer.zip



More examples you can find here.



To run:

nmake ia32 MKLREDIST=\redist\

Microsoft Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

Add path of the MKL redistributable to the path environment variable
set path=%MKLREDIST%\ia32\mkl;%MKLREDIST%\ia32\compiler;%path%
Build and run examples
nmake /a service.exe

Microsoft Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

Compile service.cs
csc /platform:x86 .\service.cs
Microsoft Visual C# 2008 Compiler version 3.5.30729.4926
for Microsoft .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.

Run service example
service.exe
MKL test_service example

TEST PASSED
TEST PASSED


Thanks,
Vladimir

0 Kudos
Reply