天河超算,Linux,ARM,安装Octave,调试Debug

1)下载安装包,解压

使用最新版

Index of /gnu/octave/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

octave-8.2.0.tar.xz25.7 MiB

2023-04-15 09:16

现在最新版已经到8.2.0了,确实挺快的。

2)

./configure --prefix=/thfs1/home/xxx/a11.matsoft/octave-8.2.0 --with-blas=/thfs1/software/lapack/3.8.0-gcc9.3.0/lib --with-lapack=/thfs1/software/lapack/3.8.0-gcc9.3.0/lib

设置好blas, lapack的位置就好。

3)

make -j20

最后 输出 :

Octave successfully built.  Now choose from the following:

   ./run-octave    - to run in place to test before installing
   make check      - to run the tests
   make install    - to install (PREFIX=/thfs1/home/***/a11.matsoft/octave-8.2.0)

   HG ID for this build is "fdadf31961bb"
4)

./run-octave

octave:1> x=1:1:20
x =

 Columns 1 through 18:

    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15   16   17   18

 Columns 19 and 20:

   19   20

看起来没有问题。

octave:3> sin(10)
ans = -0.5440
 

6)

make install就好了?

7)

Octave is now configured for aarch64-unknown-linux-gnu

  Source directory:              .
  Installation prefix:           /thfs1/home/XXX/a11.matsoft/a2.octave-8.2.0dbg/dbg
  C compiler:                    gcc  -pthread -fopenmp  -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g
  C++ compiler:                  g++  -pthread -fopenmp  -Wall -W -Wshadow -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g
  Fortran compiler:              gfortran -g -std=legacy
  CPPFLAGS:
  Fortran libraries:              -L/thfs1/home  -L. -L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. -lgfortran -lm
  Lex libraries:
  LIBS:                          -lpthread -lm
 

用的是LIBM库,

还是最基本的库,可能就是那些

8)

Debugging Octave - Octave

参与官方文档

mkdir dbg-octave
cd dbg-octave
/path/to/octave/source/configure FFLAGS=-g CFLAGS=-g CXXFLAGS=-g --enable-address-sanitizer-flags --prefix=/opt/dbg-octave
make # or make -jN where N is the number of CPU cores

This build is useful for debugging Octave itself.

9) octave依赖的库

 ldd octave
        linux-vdso.so.1 (0x0000400029177000)
        /usr/local/lib/libth.so (0x00004000291a2000)
        libX11.so.6 => /lib/aarch64-linux-gnu/libX11.so.6 (0x00004000291db000)
        libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000400029320000)
        libstdc++.so.6 => /lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000400029350000)
        libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000400029535000)
        libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000400029559000)
        /lib/ld-linux-aarch64.so.1 (0x0000400029155000)
        libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x00004000296cc000)
        libxcb.so.1 => /lib/aarch64-linux-gnu/libxcb.so.1 (0x00004000296e0000)
        libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000400029717000)
        libXau.so.6 => /lib/aarch64-linux-gnu/libXau.so.6 (0x00004000297c4000)
        libXdmcp.so.6 => /lib/aarch64-linux-gnu/libXdmcp.so.6 (0x00004000297d8000)
        libbsd.so.0 => /lib/aarch64-linux-gnu/libbsd.so.0 (0x00004000297ee000)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值