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

OpenMP error when building with NVC++ #115

Open
iholod1 opened this issue Feb 6, 2024 · 3 comments
Open

OpenMP error when building with NVC++ #115

iholod1 opened this issue Feb 6, 2024 · 3 comments

Comments

@iholod1
Copy link

iholod1 commented Feb 6, 2024

When trying to build with nvc++ I got several errors of the following type:
NVC++-S-0155-A possibly throwing copy constructor for a task firstprivate variable is not supported (STRUMPACK/src/BLR/BLRMatrixMPI.cpp: 2640)
I am using nvc++ 23.11-0.

@pghysels
Copy link
Owner

pghysels commented Feb 6, 2024

I pushed some fixes, see here: 3462e8c

However, I still see some errors, see below.
Can you try to compile without OpenMP, or with GCC?

NVC++-S-0000-Internal compiler error. flowgraph: node is zero      27  (/global/homes/p/pghysels/perlmutter/STRUMPACK/src/BLR/BLRMatrixMPI.cpp: 2647)
NVC++-F-0000-Internal compiler error. Invalid key for hash       0  (/global/homes/p/pghysels/perlmutter/STRUMPACK/src/BLR/BLRMatrixMPI.cpp: 2647)
NVC++/x86-64 Linux 23.9-0: compilation aborted
NVC++-S-0000-Internal compiler error. reinline:bad ILM link  111827  (/global/homes/p/pghysels/perlmutter/STRUMPACK/src/BLR/BLRMatrixMPI.cpp: 2764)
NVC++/x86-64 Linux 23.9-0: compilation completed with severe errors
NVC++-S-0000-Internal compiler error. flowgraph: node is zero      27  (/global/homes/p/pghysels/perlmutter/STRUMPACK/src/BLR/BLRMatrixMPI.cpp: 2751)
NVC++-F-0000-Internal compiler error. Invalid key for hash       0  (/global/homes/p/pghysels/perlmutter/STRUMPACK/src/BLR/BLRMatrixMPI.cpp: 2751)
NVC++/x86-64 Linux 23.9-0: compilation aborted

@iholod1
Copy link
Author

iholod1 commented Feb 6, 2024

I've also got internal compiler error:
[ 84%] Building CXX object CMakeFiles/strumpack.dir/src/iterative/GMResMPI.cpp.o NVC++-S-0000-Internal compiler error. reinline:bad ILM link 101580 (/u/ihol/lib/STRUMPACK/src/BLR/BLRMatrixMPI.cpp: 2763)

Without OpenMP or with OpenMP+GCC compilation works fine.

@iholod1
Copy link
Author

iholod1 commented Feb 7, 2024

The problem seems to arise from the following lines in src/BLR/BLRMatrixMPI.cpp (commenting on them allows compilation to complete)

2762:
#pragma omp task default(shared) firstprivate(m,lm,i)

2638:
#pragma omp task default(shared) firstprivate(m,lm)

2664:
#pragma omp task default(shared) firstprivate(m,lm)

2742:
#pragma omp task default(shared) firstprivate(m,lm,i,j)

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