본문 바로가기

카테고리 없음

NVCC 관련 에러

새로 구성된 GPU 클러스터에서 Tensorflow 코드를 돌리려고 하니 아래와 같은 에러 발생:

2024-11-22 01:08:36.644679: W tensorflow/compiler/xla/stream_executor/gpu/asm_compiler.cc:109] Couldn't get ptxas version : FAILED_PRECONDITION: Couldn't get ptxas/nvlink version string: INTERNAL: Couldn't invoke ptxas --version
2024-11-22 01:08:36.645637: I tensorflow/tsl/platform/default/subprocess.cc:304] Start cannot spawn child process: No such file or directory
2024-11-22 01:08:36.645667: F tensorflow/compiler/xla/service/gpu/nvptx_compiler.cc:492] ptxas returned an error during compilation of ptx to sass: 'INTERNAL: Failed to launch ptxas'  If the error message indicates that a file could not be written, please verify that sufficient filesystem space is provided.

 

 

아래와 같이 패키지를 추가 설치해주니 해결되었다.

conda install -c nvidia cuda-nvcc