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

1173 omp_lock_t is undefined on Intel serial build #1175

Closed
wants to merge 0 commits into from

Conversation

cz4rs
Copy link
Contributor

@cz4rs cz4rs commented Dec 2, 2020

fixes #1173

Copy link
Member

@PhilMiller PhilMiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is suitable. This isn't a problem of an incomplete type, it's a type that's not declared at all. We need to use #if _OPENMP appropriately.

@cz4rs
Copy link
Contributor Author

cz4rs commented Dec 2, 2020

@lifflander I assume that this is introduced by footprinting PR - in that case this one-liner should help

note: the description says:

If I build intel-serial (no openmp), I get the compiler error,

there is:

#if vt_check_enabled(openmp)

covering all of omp_mutex.h content, so a build without openmp should skip this completely (?)

@cz4rs
Copy link
Contributor Author

cz4rs commented Dec 2, 2020

I don't think this is suitable. This isn't a problem of an incomplete type, it's a type that's not declared at all. We need to use #if _OPENMP appropriately.

@PhilMiller I was still writing when you posted this - true, I'm trying to see what's wrong with #if vt_check_enabled(openmp)

@cz4rs
Copy link
Contributor Author

cz4rs commented Dec 2, 2020

ok, just to keep the discussion here: we have clang-8, macosx build which correctly detects the absence of OpenMP:

-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) 
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) 
OpenMP not found: using std::thread for workers

it looks like this should be fixed on the CMake side rather then in C++ code

@lifflander can you ask the reporter for the CMake output / complete build log?

@lifflander
Copy link
Collaborator

ok, just to keep the discussion here: we have clang-8, macosx build which correctly detects the absence of OpenMP:

-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) 
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) 
OpenMP not found: using std::thread for workers

it looks like this should be fixed on the CMake side rather then in C++ code

@lifflander can you ask the reporter for the CMake output / complete build log?

I'm trying to get a full report. The dev is offline right now.. so I'm not sure when it will come

@cz4rs cz4rs force-pushed the 1173-undefined-omp-lock-t branch from 45ee7ed to 2b23980 Compare December 14, 2020 15:10
@cz4rs cz4rs closed this Dec 14, 2020
@cz4rs cz4rs force-pushed the 1173-undefined-omp-lock-t branch from 2b23980 to 1f8e4f5 Compare December 14, 2020 15:12
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

Successfully merging this pull request may close these issues.

omp_lock_t is undefined on Intel serial build
3 participants