Quantcast
Channel: Intel® Software - Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 3005

Calling MKL Library from C# - Intel broken links

$
0
0

Dear Intel:

All of the links on the Intel site that provide sample of how to call MKL from C# are broken - I cannot download the files.  Yes I have tried all of them.

I am trying to call the PARDISO routine I have tried this code - I used the dll from the pardiso site - just to see if I could get anything working.

Your help appreciated -

JMN

using System.IO;
using System;
using System.Runtime.InteropServices;

class Program
{
   
    [DllImport("C:\\Users\\John\\Documents\\Visual Studio 2013\\Projects\\Program056 - WSA\\WSC\\Solver\\Solver\\Solver\\Debug\\Solver.dll")]
   
    public static extern void Solver();

    [DllImport("C:\\Users\\John\\Documents\\Visual Studio 2013\\Projects\\Program056 - WSA\\WSC\\Solver\\Solver\\Solver\\Debug\\libpardiso500-WIN-X86-64.dll")]

    public static extern void pardinit(int[] pt, int maxfct, int[] iparm );
    static void Main(string[] args)
    {
        int[] pt = new int[64];
        int maxfct;
        int[] iparm = new int[64];
        double[] p2 = new double[] { 0.5, 1.5, 3.5 };
        Solver();
        maxfct = 11;
        pardinit(pt, maxfct, iparm);
        //Console.WriteLine(t2.ToString());
        //returns 3.84057283
    }
}


Viewing all articles
Browse latest Browse all 3005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>