pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to build a package with OpenMP support



On Fri, Jul 22, 2022 at 11:16:20AM +0530, Mayuresh wrote:
> The error message is:
> 
>     -- Could NOT find OpenMP_CXX (missing: OpenMP_pthread_LIBRARY OpenMP_pthread_LIBRARY)
>     -- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) CMake Error at
>     third_party/ideep/mkl-dnn/third_party/oneDNN/cmake/OpenMP.cmake:118
>     (message):
>     OpenMP library could not be found.  Proceeding might lead to highly sub-optimal performance.
>     Call Stack (most recent call first):
>     third_party/ideep/mkl-dnn/third_party/oneDNN/CMakeLists.txt:117 (include)

Above error is gone with this addition:

    CFLAGS+=    -fopenmp

Is that the right way?

-- 
Mayuresh


Home | Main Index | Thread Index | Old Index