oneapi-src / oneAPI-samples

Samples for Intel® oneAPI Toolkits
https://oneapi-src.github.io/oneAPI-samples/
MIT License
922 stars 683 forks source link

[oneMKL] Fix batched linear solver sample page fault #2281

Closed sknepper closed 5 months ago

sknepper commented 5 months ago

Existing Sample Changes

Description

Fixes a page fault that is visible when looking at dmesg output. The ipiv array must still be allocated on the host even when using the OpenMP "map" with alloc attribute. Thanks and credit goes to Sergey Kiselev (@skiselev) for rootcausing the issue and providing a fix!

External Dependencies

List any external dependencies created as a result of this change. None

Type of change

How Has This Been Tested?

Tested locally that the page fault is visible with the sample code as written and that the page fault disappears with the change in this PR.