https://github.com/DavidDiazGuerra/gpuRIR

 

GitHub - DavidDiazGuerra/gpuRIR: Python library for Room Impulse Response (RIR) simulation with GPU acceleration

Python library for Room Impulse Response (RIR) simulation with GPU acceleration - DavidDiazGuerra/gpuRIR

github.com

이걸 설치하려고 하는데....

윈도우 10에서 아래의 에러가 발생했다...

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CUDA_COMPILER not set, after EnableLanguage

찾아보니 pytorch를 conda로 설치했을 때, 이럴 수 있다고 해서 pip로 설치해주어 해당 에러는 해결했다.

그런데 이번에는 CUDA toolset을 찾을 수가 없단다...

CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:563 (message):
  No CUDA toolset found.

https://github.com/NVlabs/instant-ngp/issues/18

 

Build problem: No CUDA toolset found · Issue #18 · NVlabs/instant-ngp

I have the following error when trying to build on windows: My environment: window 10 cmake 3.22 Visual Studio 2019 CUDA 11.3 Does anyone know what's going on?

github.com

똑같은 문제를 해결한 사람을 발견했다. cuda 11.8을 삭제후 재설치해 아래 조언대로 해보려고 한다.

엥?? 사용자 지정 옵션에 이미 자동으로 체크가 되어있다...!!!

그 밑에 visual studio 2022와 2019 모두 설치되어있을 때, 2022를 삭제하니 해결이 되었다는 말이 있다.

2022를 삭제하고 2019를 다시 설치했다.

참고로 visual studio 2019 설치 파일을 받을 수가 없어 아래 링크를 따라갔다.

https://striban.tistory.com/69

 

[Visual Studio 2019] 오프라인 설치 전체 다운로드 방법

오랜만에 윈도우용 앱을 만드려고 Visual Studio 사이트에 들어갔더니 Visual Studio 가 2022 버전으로 바뀌었다. Visual Studio 2022 Visual Studio 2022의 새로운 기능 | 무료 다운로드 - Visual Studio Visual Studio 2022는

striban.tistory.com

조언대로 MSVC도 체크해주었다.

이제 cmake도 재설치 해주겠다.

흠... 2022를 삭제하고 cmake를 재설치해주었는데, 2022를 못찾겠다고 한다

2019 대신 깔아줬는데~!

C:\Users\jis00\Research\gpuRIR\setup.py:32: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
CMake Error at CMakeLists.txt:5 (project):
  Generator

    Visual Studio 17 2022

  could not find specified instance of Visual Studio:

    C:/Program Files/Microsoft Visual Studio/2022/Community

놀랍게도 깃허브 repository 삭제후 다시 받으니 해결이 됐다....

이후 CUDA도 재설치해주니 드디어 에러없이 설치가 완료되었다고 떴다!!

 

'환경구축' 카테고리의 다른 글

VS code C++ 환경구축  (1) 2024.06.04

+ Recent posts