728x90
1) 설치
https://docs.cupy.dev/en/latest/install.html
2) 오류 발생
(1)
cupy is not correctly installed. if you are using wheel distribution (cupy-cudaxx), make sure that the version of cupy you installed matches with the version of cuda on your host. also, confirm that only one cupy package is installed: $ pip freeze if you are building cupy from source, please check your environment, uninstall cupy and reinstall it with: $ pip install cupy --no-cache-dir -vvvv
이 문제에 대해서는 anaconda에 cupy를 따로 설치해야 할 것이라 판단하여
$ conda install -c conda-forge cupy
코드 실행
(2)
CUDADriverError: CUDA_ERROR_UNSUPPORTED_PTX_VERSION: the provided PTX was compiled with an unsupported toolchain.
드라이버 업데이트 수행
nvidia geforce experience를 활용, 그래픽카드 드라이버 업데이트
'---------개인공부-------- > |딥러닝(python)|' 카테고리의 다른 글
[cupy] matplot에 cupy를 출력하기 (convert cupy to numpy) (0) | 2021.05.23 |
---|---|
[python] 딥러닝 - sin 곡선 예측(LSTM) (0) | 2021.05.23 |