Fixes for running master branch on windows

This commit has fixes in the form of __declspec(dllexport) and __declspec(dllimport) to run the tkdnn master branch on windows along with removing cmake_export_all_symbols and solely using __declspec(dllexport)
This commit is contained in:
Harshvardhan Chandirasekar
2022-04-17 11:01:57 -07:00
parent 7e4b5dbfa6
commit cd58072ae9
39 changed files with 141 additions and 126 deletions
+6 -1
View File
@@ -61,7 +61,6 @@ if(WIN32)
set(CMAKE_CXX_FLAGS "/Od /FS /EHsc /MDd")
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} --maxrregcount=32 -G -g)
endif()
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif(WIN32)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/tkDNN)
@@ -82,7 +81,13 @@ endif()
#-------------------------------------------------------------------------------
# CUDA
#-------------------------------------------------------------------------------
if(UNIX)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS}" --compiler-options '-fPIC')
endif(UNIX)
if(WIN32)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS}" --compiler-options)
endif(WIN32)
find_package(CUDNN REQUIRED)