From 21ed7efe09e481f9e3f6dd8083e4cff87b3af179 Mon Sep 17 00:00:00 2001 From: Nils Kohl <nils.kohl@fau.de> Date: Thu, 29 Feb 2024 09:34:09 +0100 Subject: [PATCH] Added '-Wno-implicit-float-conversion' to CMakeLists.txt. --- generate/generate.py | 2 ++ operators/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/generate/generate.py b/generate/generate.py index 80cc8c5d..f8f36f4e 100644 --- a/generate/generate.py +++ b/generate/generate.py @@ -117,6 +117,7 @@ def generate_cmake_from_cpp_files(output_dir_path: str): print(f"", file=f) print(f"if(NOT WALBERLA_DOUBLE_ACCURACY)", file=f) print(f' add_compile_options( "-Wno-float-conversion" )', file=f) + print(f' add_compile_options( "-Wno-implicit-float-conversion" )', file=f) print(f"endif()", file=f) print(f"", file=f) @@ -256,6 +257,7 @@ def generate_operator( "fp16": types.hyteg_type(types.HFGPrecision.FP16), "fp32": types.hyteg_type(types.HFGPrecision.FP32), "fp64": types.hyteg_type(types.HFGPrecision.FP64), + "real_t": types.hyteg_type(types.HFGPrecision.REAL_T), } blending_maps = { "IdentityMap": hfg.blending.IdentityMap(), diff --git a/operators/CMakeLists.txt b/operators/CMakeLists.txt index 6e30cd4d..d7b7d0ad 100644 --- a/operators/CMakeLists.txt +++ b/operators/CMakeLists.txt @@ -2,6 +2,7 @@ add_compile_options( "-Wno-shadow" ) if(NOT WALBERLA_DOUBLE_ACCURACY) add_compile_options( "-Wno-float-conversion" ) + add_compile_options( "-Wno-implicit-float-conversion" ) endif() add_subdirectory(curl_curl) -- GitLab