Use dummy CUDA DLL

pull/1374/head
Piero Toffanin 2021-11-24 11:26:03 -05:00
rodzic 1dd0b4b457
commit 792500bd1b
2 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -36,10 +36,12 @@ if(UNIX)
endif() endif()
if(WIN32) if(WIN32)
SET(NVDRIVER "$ENV{SystemRoot}\\System32\\nvcuda.dll") # On Windows systems without NVIDIA GPUs, OpenMVS will not launch
if (EXISTS ${NVDRIVER}) # unless a CUDA DLL is available; we download a dummy DLL
file(COPY ${NVDRIVER} DESTINATION "${SB_INSTALL_DIR}/bin") # generated with https://github.com/ykhwong/dummy-dll-generator that is
endif() # loaded UNLESS the real CUDA DLL is available, since it will
# be loaded before our dummy DLL.
file(DOWNLOAD "https://github.com/OpenDroneMap/windows-deps/releases/download/2.5.0/nvcuda_dummy.dll" "${SB_INSTALL_DIR}/bin/nvcuda.dll")
endif() endif()
ExternalProject_Add(${_proj_name} ExternalProject_Add(${_proj_name}

Wyświetl plik

@ -1,4 +1,5 @@
import os import os
import sys
from opendm import log from opendm import log
from repoze.lru import lru_cache from repoze.lru import lru_cache