Skip to content

Commit

Permalink
Changing used namespace for seq execution policy
Browse files Browse the repository at this point in the history
- flyby: disable C++17 compatibility warnings for MSVC when compiling using Vc
  • Loading branch information
hkaiser committed Feb 12, 2018
1 parent 98effdc commit 31382b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmake/HPX_SetupVc.cmake
Expand Up @@ -82,6 +82,9 @@ endif()

hpx_add_config_define(HPX_HAVE_DATAPAR)
hpx_add_config_define(HPX_HAVE_DATAPAR_VC)
if(MSVC AND NOT (${MSVC_VERSION} LESS 1911))
hpx_add_config_cond_define(_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS)
endif()

hpx_info("Found Vc (vectorization):" ${Vc_INCLUDE_DIR} "- version:" ${Vc_VERSION_STRING})

4 changes: 2 additions & 2 deletions hpx/parallel/datapar/transform_loop.hpp
@@ -1,4 +1,4 @@
// Copyright (c) 2007-2016 Hartmut Kaiser
// Copyright (c) 2007-2018 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand Down Expand Up @@ -127,7 +127,7 @@ namespace hpx { namespace parallel { namespace util
>::type
call(InIter first, InIter last, OutIter dest, F && f)
{
return util::transform_loop(parallel::v1::seq,
return util::transform_loop(parallel::execution::seq,
first, last, dest, std::forward<F>(f));
}
};
Expand Down

0 comments on commit 31382b0

Please sign in to comment.