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

Intel MKL BLACS fatal error

bucaioni__thomas
New Contributor I
1,349 Views

Hello,

My program ends prematurely with the following message:

Intel MKL BLACS fatal error: cannot allocate memory, aborted. srun: error: n2176: task 0: Exited with exit code 255

The function call that seem to fail is:

blacs_gridinit(icontext,'r',nprows,npcols)

The first call goes well but the second doesn't (Newton's algorithm), even though function

blacs_exit(1)

is used to exit BLACS. Any idea where it comes from?

0 Kudos
1 Solution
Khang_N_Intel
Employee
1,349 Views

Hi Thomas,

In order to troubleshoot this issue, please answer the following questions:

1) Which Operating system (OS) are you running? What is the OS version?

2) Which compiler are you using? What is the version number?

3) What is the system configuration?

4) Can you provide me with code sample so that I can reproduce the error? Without the reproducer, it would be difficult to solve this issue.

5) Relating to question #5, please provide the instructions on how to compile/link the code as well as running instructions.

Best regards,

Khang

View solution in original post

0 Kudos
3 Replies
Khang_N_Intel
Employee
1,350 Views

Hi Thomas,

In order to troubleshoot this issue, please answer the following questions:

1) Which Operating system (OS) are you running? What is the OS version?

2) Which compiler are you using? What is the version number?

3) What is the system configuration?

4) Can you provide me with code sample so that I can reproduce the error? Without the reproducer, it would be difficult to solve this issue.

5) Relating to question #5, please provide the instructions on how to compile/link the code as well as running instructions.

Best regards,

Khang

0 Kudos
bucaioni__thomas
New Contributor I
1,349 Views

Hi Khang,

The problem is solved: blacs_gridinit() needs to be called only once at the beginning of the program, not at each matrix inversion.

0 Kudos
Khang_N_Intel
Employee
1,349 Views

Hi Thomas,

I am glad that you are able to figure out the problem.

For your information, you can also submit your issue to the Intel online service center or you email me directly.

Best regards,

Khang

0 Kudos
Reply