Open garyfeng opened 3 years ago
If you run the original notebook on CoLab, you likely will encounter the following bug
RuntimeError: cuda runtime error (11) : invalid argument at /pytorch/aten/src/THC/generic/THCTensorMathPairwise.cu:225
There are likely two sources of errors, both resulting from the fact that Google CoLab is giving me a Tesla T4 GPU instance with CUDA 10.1.
requirements.txt
cuda 10.x
Tesla T4
Specifically, find the setup.py files under each model/networkd/* folder, and add the following:
setup.py
model/networkd/*
#'-gencode', 'arch=compute_70,code=compute_70', '-gencode', 'arch=compute_75,code=sm_75', '-gencode', 'arch=compute_75,code=compute_75'
This will add the support for Tesla T4 while also supporting previous versions.
!wget https://download.pytorch.org/whl/cu100/torch-1.0.0-cp36-cp36m-linux_x86_64.whl !pip uninstall torch !pip install torch-1.0.0-cp36-cp36m-linux_x86_64.whl
If you run the original notebook on CoLab, you likely will encounter the following bug
There are likely two sources of errors, both resulting from the fact that Google CoLab is giving me a Tesla T4 GPU instance with CUDA 10.1.
requirements.txt
, seems to be for a different cuda version (9?). Need to follow the instruction at https://pytorch.org/get-started/previous-versions/#linux-and-windows-15 to reinstall the current version forcuda 10.x
Tesla T4
. Need to follow the instruction at https://medium.com/@patrickorcl/compile-with-nvcc-3566fbdfdbf.Specifically, find the
setup.py
files under eachmodel/networkd/*
folder, and add the following:This will add the support for
Tesla T4
while also supporting previous versions.