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

About OMP_NUM_THREADS? #138

Open
zhuyidong-YP opened this issue Mar 24, 2023 · 6 comments
Open

About OMP_NUM_THREADS? #138

zhuyidong-YP opened this issue Mar 24, 2023 · 6 comments

Comments

@zhuyidong-YP
Copy link

zhuyidong-YP commented Mar 24, 2023

When i set 'unset OMP_NUM_THREADS',
running pddrive example with big.rua, FACTOR time is 13s, Mflops value is 0.67.

But set 'export OMP_NUM_THREADS=1', in the same way,
FACTOR time is 0.005s, Mflops value is 1780.63.

What could be the reason?
It's not necessarily a problem.I don't know, nobody else has had the same problem.

@zhuyidong-YP
Copy link
Author

屏幕截图 2023-03-24 104251

@xiaoyeli
Copy link
Owner

Before you set any environment variable related to OpenMP, can you do this:
$ echo $OMP_NUM_THREADS ?
I suspect it's a large number.

@zhuyidong-YP
Copy link
Author

zhuyidong-YP commented Mar 24, 2023

Before you set any environment variable related to OpenMP, can you do this: $ echo $OMP_NUM_THREADS ? I suspect it's a large number.

This is cpu info:
屏幕截图 2023-03-24 104251

When i run 'export OMP_NUM_THREADS=62 && ./pddrive big.rua', the FACTOR time is 10.5s, and Mflops is 0.8.
Run 'export OMP_NUM_THREADS=60 && ./pddrive big.rua', the FACTOR time is 0.137s, and Mflops is 61.01.

@zhuyidong-YP
Copy link
Author

Before you set any environment variable related to OpenMP, can you do this: $ echo $OMP_NUM_THREADS ? I suspect it's a large number.

Compare data with pardiso:
屏幕截图 2023-03-27 140337

@zhuyidong-YP
Copy link
Author

zhuyidong-YP commented Mar 31, 2023

Before you set any environment variable related to OpenMP, can you do this: $ echo $OMP_NUM_THREADS ? I suspect it's a large number.

Currently, we use superlu_dist-8.1.0.tar.gz package. Could it have been fixed in last version, i will try v8.1.2 tags?

@xiaoyeli
Copy link
Owner

Are you able to resolve the issue? It is very abnormal that when you increase OMP threads from 1 to 2, the runtime is more than doubled.

@xiaoyeli xiaoyeli reopened this Apr 28, 2023
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