0 votes
asked by (270 points)

Hi,

after updating my macOS system, I get a lot of warnings when I compile my iTensor DMRG (it is the DMRG that I found in the sample folder with its Makefile).

g++ -m64 -std=c++11 -fPIC -c -I. -I/Users/giuseppe/Desktop/iTensor/ITensor -O2 -DNDEBUG -Wall -o dmrgMapIsing.o dmrgMapIsing.cc
g++ -m64 -std=c++11 -fPIC -I. -I/Users/giuseppe/Desktop/iTensor/ITensor -O2 -DNDEBUG -Wall dmrgMapIsing.o -o dmrgMapIsing -L/Users/giuseppe/Desktop/iTensor/ITensor/lib -litensor -framework Accelerate
ld: warning: text-based stub file /System/Library/Frameworks//Accelerate.framework/Accelerate.tbd and library file /System/Library/Frameworks//Accelerate.framework/Accelerate are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage.tbd and library file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//vecLib.framework/Versions/A/vecLib.tbd and library file /System/Library/Frameworks//vecLib.framework/Versions/A/vecLib are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.tbd and library file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.tbd and library file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.tbd and library file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.tbd and library file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.tbd and library file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.tbd and library file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.tbd and library file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.tbd and library file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.tbd and library file /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib are out of sync. Falling back to library file for linking.

The code seems to run however, but I want to be sure that these warnings do not affect the correct execution.

Thank you very much,
Giuseppe

1 Answer

0 votes
answered by (70.1k points)

Dear Giuseppe,
I can't say whether this issue will affect the working of ITensor, but fortunately there is a fix for it, so I'd recommend doing the fix then recompiling ITensor (and hopefully then you won't see the warnings). Here is a link explaining the fix:

http://sd.jtimothyking.com/2018/07/26/stub-file-and-library-file-out-of-sync/

Finally, if you can get Intel MKL I'd strongly recommend that over Apple Accelerate / VecLib. MKL now has a free license. The reason I recommend it is that I've found some cases over the years where Accelerate gives less accurate results than MKL on certain tough cases (matrix decompositions involving small numbers etc.) and as a bonus, MKL is also much faster.

Best regards,
Miles

commented by (270 points)
Thank you very much for the answer. Unfortunately, I have already tried the solution proposed in the link, but nothing changes (I have macOS Mojave 10.14.1).

Eventually, I will try with MKL.

Giuseppe
commented by (70.1k points)
Hi Giuseppe,
Just as a follow up, we were finally able to obtain a computer running MacOs 10.14 Mojave. What we found was that ITensor compiled without any issues, except perhaps one or two small warnings, when using the compiler flags suggested for MacOS in the options.mk.sample file.

So perhaps if you are still seeing issues it could be related to the fact that you upgraded from 10.13 or perhaps to other complier flags than ours? Our computer was a fresh install of 10.14 I believe.

Best regards,
Miles
Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.

Categories

...