Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want use MKL under AOT publish,But cant #1059

Open
a1821216780 opened this issue Jan 16, 2024 · 2 comments
Open

I want use MKL under AOT publish,But cant #1059

a1821216780 opened this issue Jan 16, 2024 · 2 comments

Comments

@a1821216780
Copy link

No description provided.

@FabianNitsche
Copy link

Due to a missing description of the problem, I am guessing here. That you run into the problem, that reflection is used for setting up the providers. You have to specify what should be kept during trimming by AOT.

A solution can be to add a rd.xml file to your project with the following content:

<?xml version="1.0" encoding="utf-8" ?>
<Directives>
  <Application>
    <Assembly Name="MathNet.Numerics.Providers.MKL" Dynamic="Required All"/>
  </Application>
</Directives>

Then edit your .csproj file and add

<RdXmlFile Include="rd.xml" />

to any ItemGroup

@a1821216780
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants