Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohit Jain <rjai@microsoft.com>2021-07-30 06:28:00 +0300
committerMarcin Junczys-Dowmunt <Marcin.JunczysDowmunt@microsoft.com>2021-07-30 06:28:00 +0300
commit4ff2ef189e3d6cca8ab2169f15f1f26739bb7884 (patch)
tree938e9a8af4405a257a7eb1c9cd1bdd0e1891ba0b /CMakeLists.txt
parentb653db0a9b5fc37b87d60572465724af80717805 (diff)
Merged PR 19761: Expose SPM Interface from Marian
This PR adds interfaces in Marian to allow it to handle segmentation duties. Related work items: #121418
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 119bc01f..870fb70b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -81,11 +81,16 @@ if(MSVC)
# These are used in src/CMakeLists.txt on a per-target basis
list(APPEND ALL_WARNINGS /WX; /W4;)
- # Disabled bogus warnings for CPU intrinsics:
+ # Disabled bogus warnings for CPU intrinsics and Protobuf:
+ # C4100: 'identifier' : unreferenced formal parameter
# C4310: cast truncates constant value
# C4324: 'marian::cpu::int16::`anonymous-namespace'::ScatterPut': structure was padded due to alignment specifier
# C4702: unreachable code; note it is also disabled globally in the VS project file
- set(DISABLE_GLOBALLY "/wd\"4310\" /wd\"4324\" /wd\"4702\"")
+ if(USE_SENTENCEPIECE)
+ set(DISABLE_GLOBALLY "/wd\"4310\" /wd\"4324\" /wd\"4702\" /wd\"4100\"")
+ else()
+ set(DISABLE_GLOBALLY "/wd\"4310\" /wd\"4324\" /wd\"4702\"")
+ endif()
# set(INTRINSICS "/arch:AVX")
add_definitions(-DUSE_SSE2=1)