2 Replies Latest reply on Jul 13, 2011 1:05 PM by chipf

    ACML -lacml no found

    pedromonteiro
      /usr/bin/ld: cannot find -lacml

      Dear all,

      I am trying to install a CASTEP using ACML4.4.0, but apparentlly it does not find -lacml:

       

      mpif90 -o castep -static-libgfortran -O3 -funroll-loops -funroll-all-loops castep.o  -L/opt/acml4.4.0/gfortran64_mp/lib -Wl,-rpath=/opt/acml4.4.0/gfortran64_mp/lib -L/opt/acml4.4.0/gfortran64_mp/lib -Wl,-rpath=/opt/acml4.4.0/gfortran64_mp/lib -L. -lfunctional -lfundamental -lutility  -lacml  

      /usr/bin/ld: cannot find -lacml

      collect2: ld returned 1 exit status

       Does anyone knows how to overcome this ACML error?
      Thank you ver much.


        • ACML -lacml no found
          brockp

          Can you send the output of:

           

          ls /opt/acml4.4.0/gfortran64_mp/lib

           

           

          • ACML -lacml no found
            chipf

            For the MP library, instead of -lacml, you must use -lacml_mp.

            However you have not specified openmp in your build command so this case you should not use the openmp ACML.  Use instead  -L/opt/acml4.4.0/gfortran64/lib -lacml.

            One other observation - you are building an mpi application.  When you are using threading at the application level, either with OpenMP or MPI, we generally recommend using the single threaded ACML.  When threading is used in the application, and by the library, thread oversubscription can occur.

            It is possible to use the OpenMP ACML with MPI for the application, for instance for HPL builds.  But usually this results in lower performance.