Skip to content

Commit

Permalink
disable CMAKE_COMPILE_WARNING_AS_ERROR for nvidia plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
xufang-lisa committed Feb 27, 2024
1 parent ac98424 commit 1830e43
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/nvidia_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
#

cmake_minimum_required(VERSION 3.13)
if(WIN32)
set(CMAKE_COMPILE_WARNING_AS_ERROR OFF)
endif()
message(STATUS "nvidia plugin enter")
message(STATUS "CMAKE_COMPILE_WARNING_AS_ERROR=" ${CMAKE_COMPILE_WARNING_AS_ERROR})
project(OpenVINONVIDIAGpuPlugin CXX CUDA)

# Initialize CMAKE_CUDA_ARCHITECTURES when CMAKE_CUDA_COMPILER_ID is NVIDIA.
Expand All @@ -28,6 +33,7 @@ endif()

find_package(OpenVINODeveloperPackage REQUIRED
PATHS "${InferenceEngineDeveloperPackage_DIR}")
message(STATUS "finish find OpenVINODeveloperPackage")

include(cmake/features.cmake)

Expand Down Expand Up @@ -84,7 +90,9 @@ if(CMAKE_VERSION VERSION_LESS 3.17.0)
set_target_properties(cublas PROPERTIES IMPORTED_LOCATION "${CUBLAS_PATH}")
add_library(CUDA::cublas ALIAS cublas)
else()
message(STATUS "find CUDAToolkit before")
find_package(CUDAToolkit REQUIRED)
message(STATUS "find CUDAToolkit after")
endif()

find_library(CUDNN_PATH
Expand Down

0 comments on commit 1830e43

Please sign in to comment.