4 from subprocess
import Popen, PIPE
6 from .cuda
import USE_CUDA
8 WINDOWS_HOME =
'C:/Program Files/NVIDIA Corporation/NvToolsExt' 14 osname = platform.system()
15 if osname !=
'Windows':
18 NVTOOLEXT_HOME = os.getenv(
'NVTOOLSEXT_PATH', WINDOWS_HOME).replace(
'\\',
'/')
19 if not os.path.exists(NVTOOLEXT_HOME):
20 NVTOOLEXT_HOME = ctypes.util.find_library(
'nvToolsExt64_1')
21 if NVTOOLEXT_HOME
is not None:
22 NVTOOLEXT_HOME = os.path.dirname(NVTOOLEXT_HOME)