Commit 8253355f authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Avoiding compiler warnings

parent 3b8e06fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -201,7 +201,7 @@ if( ${WITH_CUDA} )
        # disable false compiler warnings
        #   reference for the -Xcudafe --diag_suppress and --display_error_number flags: https://stackoverflow.com/a/54142937
        #   incomplete list of tokens: http://www.ssl.berkeley.edu/~jimm/grizzly_docs/SSL/opt/intel/cc/9.0/lib/locale/en_US/mcpcom.msg
        set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} ; -Wno-deprecated-gpu-targets --expt-relaxed-constexpr --expt-extended-lambda -Xcudafe "\"--diag_suppress=code_is_unreachable --diag_suppress=implicit_return_from_non_void_function --diag_suppress=unsigned_compare_with_zero --diag_suppress=2906 --diag_suppress=2913 --display_error_number\"")
        set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} ; -Wno-deprecated-gpu-targets --expt-relaxed-constexpr --expt-extended-lambda -Xcudafe "\"--diag_suppress=code_is_unreachable --diag_suppress=implicit_return_from_non_void_function --diag_suppress=unsigned_compare_with_zero --diag_suppress=2906 --diag_suppress=2913 --diag_suppress=2886 --diag_suppress=2929 --display_error_number\"")
        # Select GPU architecture
        ## cmake bug: cuda_select_nvcc_arch_flags does not work with CMAKE_EXECUTABLE_SUFFIX
        ## see https://gitlab.kitware.com/cmake/cmake/issues/19636
+1 −1
Original line number Diff line number Diff line
@@ -395,7 +395,7 @@ bool solveHeatEquationCuda( const Config::ParameterContainer& parameters,
         std::cerr << "Copying max_du failed. " << cudaErr << std::endl;
         return false;
      }
      for( Index i = 0; i < cudaUpdateBlocks.x; i++ )
      for( unsigned int i = 0; i < cudaUpdateBlocks.x; i++ )
         const Real a = fabs( max_du[ i ] );
      updateTimer.stop();
            
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ struct ODESolversBenchmark
                   const Config::ParameterContainer& parameters,
                   size_t dofs )
   {
      const auto group = CommunicatorType::AllGroup;
      //const auto group = CommunicatorType::AllGroup;

      std::cout << "Iterative solvers:" << std::endl;
      benchmarkODESolvers< Real, Index >( benchmark, parameters, dofs );
+2 −2
Original line number Diff line number Diff line
@@ -24,8 +24,8 @@ template< typename Mesh, typename Real >class navierStokesRhs
      Real operator()( const MeshEntity& entity,
                       const Real& time = 0.0 ) const
      {
         typedef typename MeshEntity::MeshType::PointType PointType;
         PointType v = entity.getCenter();
         //typedef typename MeshEntity::MeshType::PointType PointType;
         //PointType v = entity.getCenter();
         return 0.0;
      }
};
+2 −2
Original line number Diff line number Diff line
@@ -24,8 +24,8 @@ template< typename Mesh, typename Real >class navierStokesRhs
      Real operator()( const MeshEntity& entity,
                       const Real& time = 0.0 ) const
      {
         typedef typename MeshEntity::MeshType::PointType PointType;
         PointType v = entity.getCenter();
         //typedef typename MeshEntity::MeshType::PointType PointType;
         //PointType v = entity.getCenter();
         return 0.0;
      }
};
Loading