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://opm-project.org/cgi-bin/mailman/listinfo/opm
>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&data=04%7C01%7Ckai.bao%40sintef.no%7Ce6d0e16213d24e688e2d08d94c5fb0bd%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C1%7C637624796132581855%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=XA7fhC4P3IqDHoz%2FgdU1%2BwEGM6WcMg4SZwD23N4Cbyg%3D&reserved=0
>
>------------------------------
>
>Subject: Digest Footer
>
>_______________________________________________
>Opm mailing list
>[email protected]
>https://opm-project.org/cgi-bin/mailman/listinfo/opm
>
>
>------------------------------
>
>End of Opm Digest, Vol 66, Issue 3
>**********************************
_______________________________________________
Opm mailing list
[email protected]
https://opm-project.org/cgi-bin/mailman/listinfo/opm