Send Comp-phys-alps-users mailing list submissions to
comp-phys-alps-users@lists.phys.ethz.ch
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.phys.ethz.ch/listinfo/comp-phys-alps-users
or, via email, send a message with subject or body 'help' to
comp-phys-alps-users-request@lists.phys.ethz.ch
You can reach the person managing the list at
comp-phys-alps-users-owner@lists.phys.ethz.ch
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Comp-phys-alps-users digest..."
Today's Topics:
1. Re: Building ALPS on Ubuntu 12.04 - error when
building TEBD
(Matthias Troyer)
----------------------------------------------------------------------
Message: 1
Date: Sun, 21 Jul 2013 15:34:32 -0600
From: Matthias Troyer <troyer@phys.ethz.ch>
To: comp-phys-alps-users@lists.phys.ethz.ch
Subject: Re: [ALPS-users] Building ALPS on Ubuntu 12.04 - error when
building TEBD
Message-ID: <EEF93DDC-244A-47D3-89D5-5AA60BCBC0AD@phys.ethz.ch>
Content-Type: text/plain; charset="us-ascii"
Hi Joesph,
You will need to add -fopenmp to your Fortran compilation flags
Best regards
Matthias
On Jul 18, 2013, at 9:51 AM, Joseph Prentice <Joseph.Prentice@physics.ox.ac.uk> wrote:
Hi all,
Apologies for changing tack, given my previous message about installing on Mac OS X 10.7.5, but I have instead tried installing ALPS on Ubuntu 12.04, following the instructions on the wiki, with admin privileges now. After getting the
dependent libraries as described, to compile ALPS I initially used the command:
$ sudo cmake -DALPS_BUILD_FORTRAN=ON -DCMAKE_INSTALL_PREFIX=/home/prentice/Documents/ALPSInstall/ /home/prentice/Documents/ALPS/alps-2.1.1-r6176-src/alps
and this seemed to work well. I then used sudo make and let ALPS build. However, at about 64% in, I got the following message:
Scanning dependencies of target tebd
[ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/GlobalData.f90.o
[ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/LinearOps.f90.o
[ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/HamiOps.f90.o
[ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/StateOps.f90.o
[ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/LocalOps.f90.o
[ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/ObOps.f90.o
[ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o
[ 64%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/PropOps.f90.o
[ 64%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/tebd.f90.o
Linking Fortran executable tebd
CMakeFiles/tebd.dir/tebd.f90.o: In function `MAIN__':
tebd.f90:(.text+0x8b0): undefined reference to `omp_get_num_procs_'
tebd.f90:(.text+0x9ab): undefined reference to `omp_set_num_threads_'
collect2: ld returned 1 exit status
make[2]: *** [applications/dmrg/tebd/tebd] Error 1
make[1]: *** [applications/dmrg/tebd/CMakeFiles/tebd.dir/all] Error 2
make: *** [all] Error 2
Are there any ideas about what can be done with this? There doesn't appear to be a problem with OpenMP, as we have tested it with another simple program, and I have Googled the error too, with no results. I am stumped, and any help would
be greatly appreciated. I will attach the CMakeCache.txt file if that is of use.
Thank you very much,
Joseph Prentice
<TEBD Fail Ubuntu CMakeCache.txt.gz>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/attachments/20130721/5f8d5730/attachment-0001.html>
End of Comp-phys-alps-users Digest, Vol 88, Issue 6
***************************************************