ralna / CUTEst

The Constrained and Unconstrained Testing Environment with safe threads (CUTEst) for optimization software
Other
83 stars 18 forks source link

Installation Problems #28

Closed pangtai6 closed 1 year ago

pangtai6 commented 1 year ago

My computer is an intel MacBook, but there was a problem during the final installation and Matlab connection. I would like to ask for help.

image
dpo commented 1 year ago

@pangtai6 What you're showing is warning. Could you please show the entire compilation log? You could, e.g., put it in a gist and paste a link here. Also it would help to know what options you've chosen and what version of ifort/icc you are using. Thanks.

pangtai6 commented 1 year ago

Error.pdf Thank you very much for your timely reply.When I move to the ./cutest directory and enter the command $ARCHDEFS/install_optrove,the process stop.My version of ifort is version 19.1.3.301.My icc version is 19.1.3.301 (gcc version 4.9.0 compatibility).I put the run log in the file. Sorry to bother you, but thank you for your reply.

dpo commented 1 year ago

I believe that to be a bug with the Intel compiler that I noticed in version 2022.3. I wrote to them about it recently but received no reply. Downgrading to 2022.2 solved the problem for me.

dpo commented 1 year ago

Alternatively, you could use gcc/gfortran.

nimgould commented 1 year ago

Not for Matlab on Macs nowadays

pangtai6 commented 1 year ago

庞泰 @.***

Glad to receive your reply.  I have a question. I cannot install the single precision of cutest. Is it because of intel? One more question, is it now impossible to call cutest using Matlab? If cutest can be called through Matlab, why is the following error displayed when I use Matlab? Looking forward to hearing from you

------------------ 原始邮件 ------------------ 发件人: "ralna/CUTEst" @.>; 发送时间: 2022年11月16日(星期三) 晚上10:56 @.>; @.>;"State @.>; 主题: Re: [ralna/CUTEst] Installation Problems (Issue #28)

Not for Matlab on Macs nowadays

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

pangtai6 commented 1 year ago

Is it impossible to use Matlab to call cutest now? In other words, do I need to call cutest in the python environment now?

Not for Matlab on Macs nowadays

dpo commented 1 year ago

I don't believe it is impossible but I haven't tried lately, focusing instead on the Julia interface: https://github.com/JuliaSmoothOptimizers/CUTEst.jl

@nimgould Is right that only certain compilers are supported by Matlab on each platform. I'll try when I get a chance.

pangtai6 commented 1 year ago

I don't believe it is impossible but I haven't tried lately, focusing instead on the Julia interface: https://github.com/JuliaSmoothOptimizers/CUTEst.jl

@nimgould Is right that only certain compilers are supported by Matlab on each platform. I'll try when I get a chance.

I don't believe it is impossible but I haven't tried lately, focusing instead on the Julia interface: https://github.com/JuliaSmoothOptimizers/CUTEst.jl

@nimgould Is right that only certain compilers are supported by Matlab on each platform. I'll try when I get a chance.

thank you so much. But I want to use Matlab to call cutest. If possible, How can I use the cutest to do numerical experiments?

nimgould commented 1 year ago

According to

https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/system-requirements-release-2022a-supported-compilers.pdf

you will need intel oneapi 21 for fortran/c. This is freely available from

https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html

and you will need the base and HPC toolkits. Be warned, these are huge!

I don't have a Mac, so someone else needs to verify this installs. Maybe @jfowkes or @dpo?

pangtai6 commented 1 year ago

According to

https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/system-requirements-release-2022a-supported-compilers.pdf

you will need intel oneapi 21 for fortran/c. This is freely available from

https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html

and you will need the base and HPC toolkits. Be warned, these are huge!

I don't have a Mac, so someone else needs to verify this installs. Maybe @jfowkes or @dpo?

image

I executed the following command on the terminal line alone:cutest2matlab LUBRIFC.The problem indicated by the picture has occurred. Do I need to reinstall the gfortran compiler?

pangtai6 commented 1 year ago

According to

https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/system-requirements-release-2022a-supported-compilers.pdf

you will need intel oneapi 21 for fortran/c. This is freely available from

https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html

and you will need the base and HPC toolkits. Be warned, these are huge!

I don't have a Mac, so someone else needs to verify this installs. Maybe @jfowkes or @dpo?

The gfortran you provided cannot be downloaded. It has been installed on my computer. Do I have to install the version you linked?

pangtai6 commented 1 year ago

May I ask if I have successfully installed PYCUTET, can MATLAB be used now? Thank you very much for your help.

jfowkes commented 1 year ago

@pangtai6 this is where things get complicated, you still need to persuade MATLAB to recognise gcc/gfortran and this isn't officially supported but can be made to work. @dpo do you have the relevant xml that makes MATLAB's mex work with GCC on macOS? I recall this worked for me in the past and presumably may still do with the latest MATLAB.

dpo commented 1 year ago

This is for clang: https://github.com/ralna/CUTEst/blob/master/doc/matlab-osx/clang_maci64.xml. It's a bit dated but might still work. I haven't used Matlab in years.