For Beginners

THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp에러 해결과정 본문

2021 이전 자료들/AI

THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp에러 해결과정

.log 2020. 5. 8. 21:30
728x90

loss 함수를 만들고 디자인하는 과정에서 제목과 같은 에러가 생겼다.

 

그래서 뭐지? 하고 찾아보니까

torch를 업데이트 하라는 의견이 많았다.

그래서 이렇게 했다.

나중에 연구할 때 참고하도록하자!

 

아 근데 RuntimeError: CuDNN error: CUDNN_STATUS_SUCCESS 이런 에러가 떠서 찾아보니까 cuda를 9.2로 업데이트를 하고 pytorch도 9.2버전으로 업데이트를 하라고 한다.

 

어렵고 험난하구나...

일단 해보자.

 

아 당떨어진다ㅎㅎ 일단 오늘은 다운로드 먼저 해보자.

새로운 환경셋팅을 다시 해야겠다...

 

 

그냥 9.0인데 9.2로 돌리면 이렇게 나온다.

 

conda install pytorch torchvision cudatoolkit=9.2 -c pytorch-nightly -c defaults -c conda-forge -c numba/label/dev

 

참고한 곳은 여기다.

https://stackoverflow.com/questions/61068181/anaconda-update-pytorch-to-the-latest-version-1-5

 

Anaconda, update Pytorch to the latest version 1.5

How could I update PyTorch from 1.4 -> 1.5 using Anaconda either through terminal or navigator? Updating Anaconda with conda update --all updated some of the packages, not all, PyTorch included.

stackoverflow.com

스트레스 받아서 뭔가를 먹고와야겠다.

잊어버리지 않게 적어두는 건데,

 

돌아와서 여기https://www.pugetsystems.com/labs/hpc/How-To-Install-CUDA-10-together-with-9-2-on-Ubuntu-18-04-with-support-for-NVIDIA-20XX-Turing-GPUs-1236/

 

How To Install CUDA 10 (together with 9.2) on Ubuntu 18.04 with support for NVIDIA 20XX Turing GPUs

NVIDIA recently released version 10.0 of CUDA. This is an upgrade from the 9.x series and has support for the new Turing GPU architecture. This CUDA version has full support for Ubuntu 18.4 as well as 16.04 and 14.04. The CUDA 10.0 release is bundled with

www.pugetsystems.com

이거랑

 

https://www.pugetsystems.com/labs/hpc/How-to-install-CUDA-9-2-on-Ubuntu-18-04-1184/

 

How to install CUDA 9.2 on Ubuntu 18.04

If you are wanting to use Ubuntu 18.04 and also want a CUDA install this post should help you get that working.

www.pugetsystems.com

이거 읽어봐서 9.2랑 9.0 동시에 설치하도록 한다.

이거 동시에 설치하는 거 정리해서 블로그에 올려둬야 하니까 이번에 대규모로 기왕하는거 드라이브 정리도 싹하고

코드 정리도 싹해서 결과로 정리해두자.

 

주말의 나 화이팅..

Comments