-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
kernel_regress:skx_avx [FAIL] with Clang #3015
Comments
Update:
This makes me wonder if I need to set some flag to specify the flavor of omp? I do also have gomp on my machine |
Normally clang should link its own flavor of omp automatically - I'll need to try to reproduce this (not observed with gcc so far). Your combination of build options does look a bit strange - with the |
I've just had the same problem with clang11+gfortran9 in a customized version of FreeBSD which removes the "base system" clang/libomp, and only uses pkg-installed llvm. This is indeed the result of linking both --- f_check.orig
+++ f_check
@@ -337,6 +337,7 @@
&& ($flags !~ /kernel32/)
&& ($flags !~ /advapi32/)
&& ($flags !~ /shell32/)
+ && ($flags !~ /gomp/)
&& ($flags !~ /omp/ || ($vendor !~ /PGI/ && $flags =~ /omp/))
&& ($flags !~ /[0-9]+/)
&& ($flags !~ /^\-l$/) |
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
I thought the |
Thanks. As far as I can tell, this problem actually goes a bit deeper - when USE_OPENMP is set, the build system translates this into |
I do have libomp installed so i think b) is the cause of my issue.. |
If your clang wants to link with a non-existent libomp, your environment is kinda broken.
See my comment above (#3015 (comment)) for a workaround! |
brokenness (a) seems to be easily achievable with current opensuse (at least) |
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
Dear sir, how to solve this problem? |
This should be fixed in the 0.3.13 release, do you still see the problem with the current version ? |
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
With non-base clang, the "two OpenMPs" situation occurs: OpenMathLib/OpenBLAS#3015
I am trying to build openblas (0.3.7, 0.3.10, 0.3.12) on ubuntu 18.4 with CLang (I tried clang-6.0 and clang-10). I got this test error consistently:
Build Script:
CPU info:
CLang:
The text was updated successfully, but these errors were encountered: