Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 692 Bytes

README_en.md

File metadata and controls

28 lines (24 loc) · 692 Bytes

The plt hook technology used refers to plthook

mock pytorch cuda runtime interface

  • update submodule
    git submodule update --init --recursive

  • build wheel package
    python setup.py sdist bdist_wheel

  • direct install
    pip install dist/*.whl

collect cuda operator call stack

  1. find nvcc installed path
which nvcc
  1. replace nvcc with my nvcc
mv /usr/local/bin/nvcc /usr/local/bin/nvcc_b
chmod 777 tools/nvcc
cp tools/nvcc /usr/local/bin/nvcc
  1. build and install pytorch
  2. build and install cuda_mock
  3. import cuda_mock after import torch
  4. run your torch train script
  5. we will dump the stack into console