Hello,
I'm fairly new to the ALPS package. I'm installing the most recent formal 2.0.0 release on our computation cluster (running RHEL 5.3) for one of our users at the university, and ideally I would like to build the package with the Intel MKL libraries. I took a brief look through the mailing list archive yesterday to see if I could find some clues. A recent posting suggested that the following recipe should do the trick:
export MKL_HOME=/local/software/intel/mkl/10.2.1.017 ccmake -DQMC_BITS=64 -DLAPACK_LINKER_FLAGS="-lmkl_sequential -lmkl_core -lmkl_intel_lp64" /local/software/rh53/alps/2.0.0/source/alps-2.0.0-r5363-src-with-boost/alps
Unfortunately this doesn't appear to work. In fact I think that the MKL references are being ignored, and the package is being built using the internal blas/lapack libraries - I could be wrong. I'm building with the GNU compilers by the way. Does anyone please have any useful advice on how to build ALPS with the MKL libraries. It would be very much appreciated.
Best - David.
Hi David,
please try exporting 'MKL' instead of MKL_HOME: ALPS seems to be looking for MKL.
Also: please have a look at the file config/FindLapack.cmake, especially the comments on top. It's written in cmake's own language but it is easy to understand. This is where the LAPACK variables (or MKL etc) get set.
I hope that helps, Emanuel
On Jan 18, 2011, at 6:38 AM, Baker D.J. wrote:
Hello,
I’m fairly new to the ALPS package. I’m installing the most recent formal 2.0.0 release on our computation cluster (running RHEL 5.3) for one of our users at the university, and ideally I would like to build the package with the Intel MKL libraries. I took a brief look through the mailing list archive yesterday to see if I could find some clues. A recent posting suggested that the following recipe should do the trick:
export MKL_HOME=/local/software/intel/mkl/10.2.1.017 ccmake -DQMC_BITS=64 -DLAPACK_LINKER_FLAGS="-lmkl_sequential -lmkl_core -lmkl_intel_lp64" /local/software/rh53/alps/2.0.0/source/alps-2.0.0-r5363-src-with-boost/alps
Unfortunately this doesn’t appear to work. In fact I think that the MKL references are being ignored, and the package is being built using the internal blas/lapack libraries – I could be wrong. I’m building with the GNU compilers by the way. Does anyone please have any useful advice on how to build ALPS with the MKL libraries. It would be very much appreciated.
Best – David.
Hi Emanuel,
Thank you for this advice. Defining the MKL variable is certainly the key, however I'm still not quite there. Now when I execute ccmake/cmake I get an odd message:
-- Using intel/mkl library: /local/software/intel/mkl/10.2.1.017 CMake Error at config/FindLapack.cmake:34 (STRING): string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command. Call Stack (most recent call first): CMakeLists.txt:270 (find_package)
I'm not an expert with cmake, and so I wondered if you or anyone else in the community might understand this "cmake speak", please.
Best - David.
From: comp-phys-alps-users-bounces@lists.phys.ethz.ch [mailto:comp-phys-alps-users-bounces@lists.phys.ethz.ch] On Behalf Of Emanuel Gull Sent: Tuesday, January 18, 2011 2:08 PM To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Building ALPS 2.0.0 with the Intel MKL libraries
Hi David,
please try exporting 'MKL' instead of MKL_HOME: ALPS seems to be looking for MKL.
Also: please have a look at the file config/FindLapack.cmake, especially the comments on top. It's written in cmake's own language but it is easy to understand. This is where the LAPACK variables (or MKL etc) get set.
I hope that helps, Emanuel
On Jan 18, 2011, at 6:38 AM, Baker D.J. wrote:
Hello,
I'm fairly new to the ALPS package. I'm installing the most recent formal 2.0.0 release on our computation cluster (running RHEL 5.3) for one of our users at the university, and ideally I would like to build the package with the Intel MKL libraries. I took a brief look through the mailing list archive yesterday to see if I could find some clues. A recent posting suggested that the following recipe should do the trick:
export MKL_HOME=/local/software/intel/mkl/10.2.1.017 ccmake -DQMC_BITS=64 -DLAPACK_LINKER_FLAGS="-lmkl_sequential -lmkl_core -lmkl_intel_lp64" /local/software/rh53/alps/2.0.0/source/alps-2.0.0-r5363-src-with-boost/alps
Unfortunately this doesn't appear to work. In fact I think that the MKL references are being ignored, and the package is being built using the internal blas/lapack libraries - I could be wrong. I'm building with the GNU compilers by the way. Does anyone please have any useful advice on how to build ALPS with the MKL libraries. It would be very much appreciated.
Best - David.
comp-phys-alps-users@lists.phys.ethz.ch