Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 07ec94a2 authored by hhakim's avatar hhakim
Browse files

Update matio linking on Windows with HDF5 dll auto-loading from pyfaust wrapper.

parent 0fa63b6c
Branches
Tags
No related merge requests found
......@@ -195,9 +195,9 @@ if(USE_GPU_MOD)
# TODO: used versions of CUDA and include dir should be CMake variables
if(WIN32)
# do not support CUDA 9.2 on Windows (require too old version VS <= 2017)
CUDA_VERSIONS=11.4
set(CUDA_VERSIONS 11.4)
else()
CUDA_VERSIONS=9.2;11.4
set(CUDA_VERSIONS 9.2;11.4)
endif()
foreach(CUDA_CONF IN LISTS CUDA_VERSIONS)
set(GPU_MOD_BUILD_DIR ${GPU_MOD_INCLUDE_DIR}/../build-cu${CUDA_CONF})
......
from sys import platform as _pf
if _pf == 'win32':
import ctypes
import sys
from os.path import join, exists
for p in sys.path:
lib_path = join(p, 'pyfaust/lib/hdf5.dll')
if exists(lib_path):
ctypes.CDLL(lib_path)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment