fix README: GPU env + accurate deps + CUDA 13 patch notes
在 Cora 引文网络(2708 节点 / 5429 边 / 1433 维特征 / 7 类)上训练标准 2 层 GCN 模型,对测试集节点预测类别。评测指标为分类准确率,≥ 0.70 即通过。
# 1. 创建 conda 环境 conda create -n jittorgeometric python=3.10 conda activate jittorgeometric # 2. 安装 Jittor pip install git+https://github.com/Jittor/jittor.git # 3. 安装官方依赖 pip install astunparse==1.6.3 numpy==1.24.0 pandas==2.2.3 Pillow==11.1.0 \ six==1.16.0 pyparsing==3.2 scipy==1.15.1 setuptools==69.5.1 \ sympy==1.13.3 tqdm==4.66.4 einops networkx==3.4.2 scikit-learn==1.7.1 # 4. 安装 JittorGeometric git clone https://github.com/AlgRUC/JittorGeometric.git cd JittorGeometric && pip install . # 5. 准备数据(从赛题发布包获取) mkdir -p data && cp /path/to/release/data/cora.pkl data/ # 6. 训练并预测 python gcn.py
GPU 环境补充说明(本机实际使用的环境):
本机 GPU 为 NVIDIA RTX 5060 (Blackwell, sm_120),CUDA 13.3,搭配 conda-forge 的 g++ 13 工具链编译。Jittor 1.3.11 在 CUDA 12.6/13 上有以下兼容性问题需处理:
<cstdint>
cc_path
conda install -c conda-forge gxx_linux-64=13
cudaDeviceProp.clockRate
extern/cuda/inc/helper_cuda.h
compiler.py
nvcc_flags
max_arch=90
以上 patch 均已内置在本仓库的 gcn.py 顶部环境配置中(自动检测并适配)。
gcn.py
GCNConv
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
计图挑战赛 赛道一热身赛:基于 GCN 的 Cora 节点分类
任务简介
在 Cora 引文网络(2708 节点 / 5429 边 / 1433 维特征 / 7 类)上训练标准 2 层 GCN 模型,对测试集节点预测类别。评测指标为分类准确率,≥ 0.70 即通过。
运行时环境
复现方式
GPU 环境补充说明(本机实际使用的环境):
本机 GPU 为 NVIDIA RTX 5060 (Blackwell, sm_120),CUDA 13.3,搭配 conda-forge 的 g++ 13 工具链编译。Jittor 1.3.11 在 CUDA 12.6/13 上有以下兼容性问题需处理:
<cstdint>, 需通过cc_path环境变量指定 conda 的 g++ 13:conda install -c conda-forge gxx_linux-64=13cudaDeviceProp.clockRate等字段, 需 patch Jittor 的extern/cuda/inc/helper_cuda.h和 cutt 缓存源码。compiler.py中nvcc_flags在 nvcc≥13 时不降级到 C++14。max_arch=90,需 patch 使其支持 sm_120。以上 patch 均已内置在本仓库的
gcn.py顶部环境配置中(自动检测并适配)。结果
GCNConv),hidden=256,dropout=0.5,Adam lr=0.01感谢