-
Notifications
You must be signed in to change notification settings - Fork 65
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
cannot build with lapack support #62
Comments
Your system requires the lapack libraries in order to pass that test. These are available in the libatlas-base-dev package on Debian based systems.
should do the trick if you'd like to compile with lapack accelerated solvers. |
Hi, checking for clapack_zgetrf in -llapack... no It builds with without-lapack ok, but I am trying to model huge files (at least for me - 6000+ wires) and I would like to know how to speed things up. |
Hello all, we have the same issue on CentOS 7:
It looks like the function might be available in libsatlas or libtatlas, does that make sense?
|
Linking to this issue, sounds related: |
FYI, this link describes how to patch configure.ac to support OpenBLAS and ATLAS and (probably) fix this issue: https://stackoverflow.com/a/69095758/14055985 I was able to copy the configure.ac content and include PSFEX's .m4 macro files and build it with HAVE_ATLAS and HAVE_OPENBLAS defines, so I know it works for CentOS 7 and probably other distributions too. I've not tried patching necpp but perhaps it will help. (In my case it built into xnec2c which is an NEC2 implementation independent of necpp, however that project will use dlopen() and dynamically bind based on what is available.) |
In case it is helpful, here is the .c file that xnec2c uses to support LAPACK, OpenBLAS and Intel MKL as shared objects to auto-detect and dynamically link as available: |
This is still a bug with Ubuntu 20.04. Having to hack the config.ac. Has anyone convert this project to using cmake? |
I'm trying to configure with lapack support but I get an error. without lapack support I can build and install.
debugging into the problem I found this:
gcc -o conftest -g -O2 -L/usr/lib/lapack/ conftest.c -llapack
/usr/lib/gcc/i586-suse-linux/9/../../../../i586-suse-linux/bin/ld: /tmp/ccNWVBxh.o: in function
main': /home/vortex/necpp-master/conftest.c:35: undefined reference to
clapack_zgetrf'collect2: error: ld returned 1 exit status
readelf -Ws /usr/lib/lapack/liblapack.so.3.8.0 |grep zgetrf
1376: 0016eb00 1163 FUNC GLOBAL DEFAULT 13 zgetrf_
1642: 00026e00 1403 FUNC GLOBAL DEFAULT 13 zgetrf2_
for what I understand the configure create a conftest.c file and try to link against lapack calling clapack_zgetrf but this function is simply called zgetrf_ in the library.
I built lapack myself with rpmbuild on opensuse.
thanks for looking into this issue
Luigi
The text was updated successfully, but these errors were encountered: