CMake failed to configure

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
jiapei100
Posts: 4
Joined: Thu Oct 27, 2016 5:57 pm
Location: Surrey, BC, Canada
Contact:

CMake failed to configure

Post by jiapei100 » Sat Dec 14, 2019 11:03 am

As follow:

Code: Select all

CMake Error at CMakeLists.txt:299 (if):
   if given arguments:

     "STREQUAL" ""

   Unknown arguments specified

kerry87
Posts: 8
Joined: Wed May 20, 2020 11:34 am

Re: CMake failed to configure

Post by kerry87 » Fri May 22, 2020 6:48 am

Did you solve the issue? can you share your makefile and how are you calling it? thanks :)

mgates3
Posts: 916
Joined: Fri Jan 06, 2012 2:13 pm

Re: CMake failed to configure

Post by mgates3 » Wed May 27, 2020 9:17 pm

The easiest fix is to define $MKLROOT in your environment, so MAGMA knows where to find MKL. E.g.,

Code: Select all

    source /opt/intel/bin/compilervars.csh intel64   # sets MKLROOT
    echo $MKLROOT
    /opt/intel/compilers_and_libraries_2020.1.216/mac/mkl

    # in magma directory
    mkdir build
    cd build
    rm *    # clean out stale cache
    cmake ..
We will update the CMake script to deal with their weird, bug-prone syntax.

Mark

kerry87
Posts: 8
Joined: Wed May 20, 2020 11:34 am

Re: CMake failed to configure

Post by kerry87 » Fri May 29, 2020 8:35 am

Why not putting the following commands as part of the makefile rules?

Code: Select all

    cd build
    rm *    # clean out stale cache
    cmake ..

Post Reply