创建仓库

This commit is contained in:
2025-12-11 07:24:36 +08:00
commit 0d81c1792d
128 changed files with 15104 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
---
tags: []
date created: 星期三, 十一月 19日 2025, 6:38:56 晚上
date modified: 星期三, 十一月 19日 2025, 6:39:15 晚上
---
# 1.3.4 核心数学加速库 (Core Math Libraries)
**1. 数学库物理实体与映射 (Physical Library Mapping)**
- **关键性****P0**
- **信息解析**
- **文件存在性**`libcufft.so` (FFT) 和 `libcublas.so` (BLAS) 均存在于 `/usr/local/corex/lib`
- **版本伪装策略**
- `libcublas.so` -\> 链接至 `libcublas.so.2.3.254`(伪装 CUDA 10.2)。
- `libcufft.so` -\> 链接至 `libcufft.so.1.2.89`(伪装 CUDA 10.1)。
- **容量分析**
- `libcufft` 体积高达 **412MB**`libcublas`**133MB**
- **结论**:如此巨大的体积表明这**绝不是**简单的 API 转发层Shim而是包含完整数学算法实现的**重编译版本**Native Implementation
- **探测命令与结果**
```bash
ls -lh /usr/local/corex/lib/libcufft.so*
-rwxr-xr-x … 412M … libcufft.so.1.2.89
```
**2. 二进制身份指纹 (Binary Identity)**
- **关键性****P1**
- **信息解析**
- **构建来源**`strings` 命令输出显示包含 `iluvatar.version` 和 `clang version 18.1.8 (4.3.8 …)`。
- **深度解读**这证实了该库是由天数智芯Iluvatar使用其自研工具链Clang 18 base从源码重新编译的而非 NVIDIA 的二进制文件。这意味着其底层实现已针对智铠 GPU 的 VLIW 架构进行了特定优化。
- **探测命令与结果**
```bash
strings … | grep "iluvatar"
iluvatar.version
SDK Version
```
**3. 开发头文件状态 (Header Availability)**
- **关键性****P0**
- **信息解析**
- **状态**`cufft.h` 和 `cublas_v2.h` 均存在且大小正常。
- **兼容性**:这意味着现有的雷达信号处理代码(通常包含这两个头文件)无需修改 `#include` 路径即可直接编译。
- **探测命令与结果**
```bash
ls -l …/include/cufft.h …/include/cublas_v2.h
-rwxr-xr-x … 13033 … cufft.h
```
**4. 功能性金丝雀测试 (Functional Canary Test)**
- **关键性****P0 (Critical)**
- **信息解析**
- **测试内容**:同时调用 `cufftPlan1d` (创建 FFT 句柄) 和 `cublasCreate` (创建矩阵句柄)。
- **测试结果**
- `cuFFT Plan1d: Success`
- `cuBLAS Create: Success`
- **审计结论****数学库功能完好**。链接器成功找到了库,且初始化函数能正确与驱动交互并分配资源。这是验证 SDK 可用性的里程碑。
- **探测命令与结果**
```bash
./test_math
cuFFT Plan1d: Success
cuBLAS Create: Success
```