0 votes
asked by (210 points)

I have cloned the git repository just yesterday, followed the instructions (adapting options.mk to linux) and could, without trouble, compile all files involved in the makefile within the home folder itensor.

Yet, the sample and tutorial makefiles throw errors. Although options.mk is loaded, there seems to be no mentioning of $(BLAS_ LAPACK_ LIBFLASG).

Adding this to the corresponding line, i.e.

$(APP): $(OBJECTS) $(ITENSOR_LIBS)
$(CCCOM) $(CCFLAGS) $(OBJECTS) -o $(APP) $(LIBFLAGS) $(BLAS_ LAPACK_ LIBFLASG)

did the job for me. I did not want to post this as a bug report, since I am still unsure whether I did something wrong.

(Please note that I added spaces after _ to avoid syntax interpretation)

commented by (14.1k points)
Hello,

That is a bit strange that you need to add that, since in the `options.mk.sample` I see:

    ITENSOR_LIBFLAGS+= $(BLAS_LAPACK_LIBFLAGS)

and later:

    LIBFLAGS=-L$(ITENSOR_LIBDIR) $(ITENSOR_LIBFLAGS)

so `LIBFLAGS` should include `BLAS_LAPACK_LIBFLAGS`. What are the errors you are getting?

-Matt
commented by (14.1k points)
I see that you are calling it `BLAS_ LAPACK_ LIBFLASG`, is it possible you accidentally renamed it in your `options.mk`? It should be `BLAS_ LAPACK_ LIBFLAGS`.

1 Answer

0 votes
answered by (210 points)
 
Best answer

Haha, god damn it. This took me one hour. You are correct, somehow FLAGS became FLASG, but I have do idea how this happened. I fixed it and now your original makefiles work. Thanks!

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

...