Skip to content

Conflicts of blas/lapack setting when using openfast with simulink in Ubuntu18.04 #924

@isablanca

Description

@isablanca

Dear all,

I have encountered some error when running openfast with simulink. My system os is Ubuntu18.04, matlab version is R2021b (It can't work in R2020b either). I have tried two ways to install the openfast.

Method1:

I follow the document, compile openfast use

cmake .. -DBLAS_LIBRARIES=/usr/lib/x86_64-linux-gnu/openblas/libblas.so -DLAPACK_LIBRARIES=/usr/lib/x86_64-linux-gnu/openblas/liblapack.so -DBUILD_SHARED_LIBS=ON -DBUILD_OPENFAST_SIMULINK_API=ON
make -j
make install

Then, create_FAST_SFunc.m runs successfully.

But, when I run Run_OpenLoop.m, the matlab crashed, with following message shown in the terminal

Intel MKL ERROR: Parameter 4 was incorrect on entry to DGETRF.

It looks like the problem mentioned in https://github.com/OpenFAST/openfast/issues/730#issuecomment-826921225,
but the solution didn't work for me as shown in the method 2.

Method 2

I try to use the method shown in the post shown in #730

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path to openfast/install/lib>
export BLAS_VERSION=libopenblas.so
export LAPACK_VERSION=liblapacke.so
matlab

The both two openfast examples can run without error, but the above modification make some builtin function provided by Matlab not working, like c2d command with out of memory error, looks like an error posted in https://se.mathworks.com/matlabcentral/answers/522196-matlab-lapack-blas-configuration.

I am not sure but for me it looks like when compile the openfast, I didn't give a correct setting about blas and lapack packages, but I don't know how to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions