cublas 的section介绍
cuBLAS 是 NVIDIA 提供的高性能线性代数库,它实现了 BLAS(Basic Linear Algebra Subprograms)的功能,用于在 CUDA 支持的 GPU 上加速矩阵和向量运算。cuBLAS 是专门为在 GPU 上执行大规模线性代数操作设计的,广泛应用于深度学习、科学计算和机器学习等领域。
使用 readelf
工具查看 libcublas.so.11.3.1.68
的 section:
readelf -S /usr/local/cuda/targets/x86_64-linux/lib/libcublas.so.11.3.1.68
There are 30 section headers, starting at offset 0x6de5af8:
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .note.gnu.build-i NOTE 00000000000001c8 000001c8
0000000000000024 0000000000000000 A 0 0 4
[ 2] .gnu.hash GNU_HASH 00000000000001f0 000001f0
0000000000000dcc 0000000000000000 A 3 0 8
[ 3] .dynsym DYNSYM 0000000000000fc0 00000fc0
0000000000004560 0000000000000018 A 4 3 8
[ 4] .dynstr STRTAB 0000000000005520 00005520
0000000000002b12 0000000000000000 A 0 0 1
[ 5] .gnu.version VERSYM 0000000000008032 00008032
00000000000005c8 0000000000000002 A 3 0 2
[ 6] .gnu.version_d VERDEF 0000000000008600 00008600
0000000000000030 0000000000000000 A 4 2 8
[ 7] .gnu.version_r VERNEED 0000000000008630 00008630
0000000000000160 0000000000000000 A 4 8 8
[ 8] .rela.dyn RELA 0000000000008790 00008790
000000000009cca8 0000000000000018 A 3 0 8
[ 9] .rela.plt RELA 00000000000a5438 000a5438
0000000000001680 0000000000000018 AI 3 11 8
[10] .init PROGBITS 00000000000a6ab8 000a6ab8
000000000000000e 0000000000000000 AX 0 0 4
[11] .plt PROGBITS 00000000000a6ad0 000a6ad0
0000000000000f10 0000000000000010 AX 0 0 16
[</