Loading CMakeLists.txt +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading src/Benchmarks/HeatEquation/tnl-benchmark-simple-heat-equation.h +1 −1 Original line number Diff line number Diff line Loading @@ -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(); Loading src/Benchmarks/ODESolvers/tnl-benchmark-ode-solvers.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 ); Loading src/Examples/flow-sw/navierStokesRhs.h +2 −2 Original line number Diff line number Diff line Loading @@ -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 src/Examples/flow-vl/navierStokesRhs.h +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
CMakeLists.txt +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
src/Benchmarks/HeatEquation/tnl-benchmark-simple-heat-equation.h +1 −1 Original line number Diff line number Diff line Loading @@ -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(); Loading
src/Benchmarks/ODESolvers/tnl-benchmark-ode-solvers.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 ); Loading
src/Examples/flow-sw/navierStokesRhs.h +2 −2 Original line number Diff line number Diff line Loading @@ -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
src/Examples/flow-vl/navierStokesRhs.h +2 −2 Original line number Diff line number Diff line Loading @@ -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