PyTorch Build Checkpoint
Current Project State
- Project: ISE v9.x ISEmedia Image, Video and Audio Index and Search
- Module: PyTorch
- Staff: Systems Engineer is Andrew.hu and Duty Technician is Gemini.ai
- Target: Building PyTorch from source.
- Environment: Custom Python 3.8.18 (
/usr/local/bin/python3.8) on a Linux environment.
- Compiler: GCC/G++ 7.3.1 (
/opt/rh/devtoolset-7/root/usr/bin/c++), CMake 3.25.2.
- Virtualisation: VMware® Workstation 17 Pro Version: 17.6.4 build-24832109
- Image: Snapshot taken synchronously to "Andrews-NUC:E:\VMware\VMs_PyTorch_compilation_endstage_checkpoint".
- Host OS Version: Windows 10 Pro, 64-bit (Build 19045.7663) 10.0.19045.
- Hardware-Virtual: 4 CPUs, 6.1 GB RAM, 40 GB SCSI on "E:/VMware/VMs/Clone.vmdk" (currently at 27.7 GB used).
- Hardware-Real: CPU: Intel(R) Core(TM) i7-3520M 2-Cores 4-Threads CPU @ 2.90GHz. 512 GB SSD and 8 GB DDR3 RAM.
Milestone Status & Fixes Applied
- NumPy Requirement: Handled and tied to Python 3.8 (
python3.8 -m pip install numpy).
- Submodules: Fully initialized and updated (
git submodule update --init --recursive) to fix missing breakpad and qnnpack directories.
- Python Version Trap: Identified that CMake defaulted to legacy system Python 2.6 for code generation scripts. Resolved by explicitly setting
-DPYTHON_EXECUTABLE=/usr/local/bin/python3.8.
Next Actions / Execution Command
Once your virtual disk backup and checkpoint are secured, run the clean CMake generation command:
cd /root/pytorch/build
rm -rf CMakeCache.txt CMakeFiles/ *
cmake .. \
-DPYTHON_EXECUTABLE=/usr/local/bin/python3.8 \
-DBUILD_BREAKPAD=0 \
-DBUILD_CAFFE2=0 \
-DUSE_NUMPY=ON