Hi, Lei Ting,

Yes. I built the DUNE also from source.

The following is the script I used to build Dune. From the comments, it looks 
like dune was built without BLAS and LAPACK. It was long time ago and I did not 
remember all the details now.

```
#!/bin/bash
set -e

# this dune is built without BLAS and LAPACK
# it can be easier to install dune because it will only have one folder for all 
the modules
parallel_build_tasks=8

old_location=`pwd`
for repo in dune-common dune-geometry dune-grid dune-istl
do
    echo "buidling $repo"
    repo_dir=${repo}-2.6.0
    cd $repo-2.6.0
    if [ -d build ]; then
        rm -rf build
    fi
    mkdir build
    cd build
    cmake -DCMAKE_BUILD_TYPE=Release ..
    make -j ${parallel_build_tasks}
    cd ${old_location}
done
cd ${old_location}
```

Best,
Kai
________________________________
From: Opm <[email protected]> on behalf of LEI TING 
<[email protected]>
Sent: Friday, July 23, 2021 5:31 PM
To: [email protected] <[email protected]>
Subject: Re: [Opm] Opm Digest, Vol 66, Issue 3

Hi Kai Bao,
Thanks for your reply. Your method is not working for me.
  I tried to use -DCMAKE_PREFIX_PATH to pass the openblas directory to the 
cmake, but the problem remains.
The make file generated by cmake still wants to link with 
/usr/lib64/libopenblas.so.
I guess that the dune modules may cause the problem.
Since you build your own openblas, did you also build dune from source?




  Regards,




--

     Lei Ting







At 2021-07-22 20:00:01, [email protected] wrote:
>Send Opm mailing list submissions to
>       [email protected]
>
>To subscribe or unsubscribe via the World Wide Web, visit
>       
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopm-project.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fopm&amp;data=04%7C01%7Ckai.bao%40sintef.no%7Cc746bae4349c458dcee908d94deee965%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C1%7C637626510776045046%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ai%2FUrUYhrQcijF7ePHpcCQtUgvrqN8EjnGlydEb%2Felc%3D&amp;reserved=0
>or, via email, send a message with subject or body 'help' to
>       [email protected]
>
>You can reach the person managing the list at
>       [email protected]
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Opm digest..."
>
>
>Today's Topics:
>
>   1. Re: Library dependency in building OPM (Kai Bao)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Thu, 22 Jul 2021 08:47:51 +0000
>From: Kai Bao <[email protected]>
>To: LEI TING <[email protected]>, "[email protected]"
>       <[email protected]>
>Subject: Re: [Opm] Library dependency in building OPM
>Message-ID:
>       
> <ol1p279mb0243e6baf11ad448335de663f7...@ol1p279mb0243.norp279.prod.outlook.com>
>
>Content-Type: text/plain; charset="utf-8"
>
>Hi, Lei,
>
>I have tried to compile OPM on a remote server using locally complied openblas.
>
>When I complied the OpenBlas, I make install it to a directory.
>
>Then I use `-DCMAKE_PREFIX_PATH=` to add the directory to the installed 
>OpenBlas when cmake OPM.
>
>Part of the scripts to compile OpenBLAS looks like as follows,
>
>
>old_location=`pwd`
>install_fix="$old_location/openblas"
>
>unzip -q OpenBLAS-0.3.10.zip
>cd OpenBLAS-0.3.10
># make libs shared
>make USE_OPENMP=0 -j ${parallel_build_tasks} VERBOSe=1 2>&1 | tee log
>make install PREFIX=../openblas
>cd ${old_location}
>
>
>Part of the scripts to add it to the OPM cmake looks like follows,
>
>cmake  -DCMAKE_PREFIX_PATH="${zoltan_dir};${openblas_dir}; ......
>
>I hope you can find helpful information from the above and sorry for not 
>cleaning up the message very well.
>
>
>Sincerely,
>Kai
>
>
>________________________________
>From: Opm <[email protected]> on behalf of LEI TING 
><[email protected]>
>Sent: Wednesday, July 21, 2021 5:53 PM
>To: [email protected] <[email protected]>
>Subject: [Opm] Library dependency in building OPM
>
>Hi,
>I'm building OPM 2021.04 in CentOS 7.4 on a remote server. When building the 
>module opm-simulator, in the file CMakeFiles/ebos.dir/build.make, it says: 
>bin/ebos: /usr/lib64/libopenblas.so. And in the file link.txt, it has the line 
>-lopenblas. And many other files have the same pattern.
>Because the server doesn't have libopenblas.so in the folder /usr/lib64, I 
>have to put this file in my home directory. But the make will only link with 
>/usr/lib64/libopenblas.so.
>I'm new to the cmake system, could anyone tell me how to change the cmake file 
>so that it will link the libopenblas.so from my home directory?
>Thanks a lot.
>
>
>I'm using CMake 3.17.5, gcc 8.3.1.
>
>
>
>
>
>
>
>
>
>
>
>
>
>--
>
>     Lei Ting
>
>_______________________________________________
>Opm mailing list
>[email protected]
>https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopm-project.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fopm&amp;data=04%7C01%7Ckai.bao%40sintef.no%7Cc746bae4349c458dcee908d94deee965%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C1%7C637626510776045046%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ai%2FUrUYhrQcijF7ePHpcCQtUgvrqN8EjnGlydEb%2Felc%3D&amp;reserved=0
>
>------------------------------
>
>Subject: Digest Footer
>
>_______________________________________________
>Opm mailing list
>[email protected]
>https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopm-project.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fopm&amp;data=04%7C01%7Ckai.bao%40sintef.no%7Cc746bae4349c458dcee908d94deee965%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C1%7C637626510776045046%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ai%2FUrUYhrQcijF7ePHpcCQtUgvrqN8EjnGlydEb%2Felc%3D&amp;reserved=0
>
>
>------------------------------
>
>End of Opm Digest, Vol 66, Issue 3
>**********************************
_______________________________________________
Opm mailing list
[email protected]
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopm-project.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fopm&amp;data=04%7C01%7Ckai.bao%40sintef.no%7Cc746bae4349c458dcee908d94deee965%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C1%7C637626510776045046%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ai%2FUrUYhrQcijF7ePHpcCQtUgvrqN8EjnGlydEb%2Felc%3D&amp;reserved=0
_______________________________________________
Opm mailing list
[email protected]
https://opm-project.org/cgi-bin/mailman/listinfo/opm

Reply via email to