Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7297 讨论

OpenMP won't run without shared memory (/dev/shm)

michaelkonecny
新分销商 I
5,543 次查看

Some time between 2020 and 2022, OpenMP in Intel MKL has started using /dev/shm on Linux.

This makes it impossible to use MKL in environments that do not have SHM, such as AWS Lambda: https://aws.amazon.com/blogs/compute/parallel-processing-in-python-with-aws-lambda/

OMP seems to have started using SHM in October 2020, when this commit to LLVM  made the change to use it instead of environment variables to store its initialization flags.

It also seems to have already been fixed in LLVM in January 2023, see this review.

However, the latest version of Intel MKL (2023.2.0) still requires SHM in order to run (crashes with a fatal error otherwise).

I'm guessing a newer version of OpenMP will make it from LLVM into intel eventually.

My question to Intel is: can you give an estimate on when this could be?
Could you perhaps describe the cycle in which new versions of LLVM are propagated into MKL?

Thank you!

标签 (1)
0 项奖励
9 回复数
Ron_Green
主持人
5,520 次查看

Moving this thread to the MKL forum

0 项奖励
AryanK_Intel
员工
5,471 次查看

Hi Michaelkonecny,

 

Thanks for posting in Intel Communities.

 

Could you please share your OS, hardware details along with complete sample reproducer code along with the steps you are following so that we can reproduce the issue from our end and investigate more?

 

Best regards,

Sri Raj Aryan.K

 

0 项奖励
michaelkonecny
新分销商 I
5,464 次查看

Hello,

I don't need you to reproduce the issue.

I need someone who understands how changes in OpenMP get propagated into MKL to read my question and answer it.

0 项奖励
AryanK_Intel
员工
5,453 次查看

Hi Michaelkonecny,

 

We are working on your issue. We will get back to you soon.

 

Best regards,

Sri Raj Aryan.K

 

0 项奖励
AryanK_Intel
员工
5,327 次查看

Hi Michaelkonecny,

 

>>Can you give an estimate on when this could be?  Could you perhaps describe the cycle in which new versions of LLVM are propagated into MKL?

Thanks for sharing your feedback. However,  unfortunately we can't consider your suggestions for MKL as of now as Intel MKL doesn't support it. 

 

Thanks and Regards,

Sri Raj Aryan.K

 

0 项奖励
michaelkonecny
新分销商 I
5,317 次查看

Hello,

there was no "suggestion" in what I wrote, I was merely describing a problem and asking a question about it.

I'm not sure what you mean by "Intel MKL doesn't support it", that doesn't make any sense.

I'm sorry to say this, but so far, your responses have been of absolutely no use and seem to lack the most basic understanding of what I'm asking.

Can you get me in touch with somebody who at least understands my questions?

Thank you,

Michael Konecny

0 项奖励
Maria_K_Intel
员工
5,261 次查看

Hello,

 

The fix for Intel OpenMP will be available in 2024.0 release.

0 项奖励
michaelkonecny
新分销商 I
5,221 次查看

Terrific, thank you!

0 项奖励
VarshaS_Intel
主持人
5,148 次查看

Hi,


It’s great to know that the issue has been resolved, in case you run into any other issues please feel free to create a new thread.


Have a Good Day!


Thanks & Regards,

Varsha


0 项奖励
回复