Skip to content

Commit

Permalink
Merge pull request #2472 from atrantan/master
Browse files Browse the repository at this point in the history
Some fixes around hpx compute
  • Loading branch information
biddisco committed Feb 4, 2017
2 parents a6084a8 + b1e7760 commit 9420de8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 7 additions & 2 deletions examples/compute/cuda/CMakeLists.txt
Expand Up @@ -13,8 +13,13 @@ if(HPX_WITH_CUDA)
hello_compute
partitioned_vector
)
set(cublas_matmul_FLAGS DEPENDENCIES cublas)
# set_source_files_properties(cublas_matmul.cpp PROPERTIES CUDA_SOURCE_PROPERTY_FORMAT OBJ)

include_directories(${CUDA_INCLUDE_DIRS})

set(cublas_matmul_FLAGS
DEPENDENCIES ${CUDA_LIBRARIES} ${CUDA_CUBLAS_LIBRARIES})

set(cublas_matmul_CUDA Off)
set(data_copy_CUDA On)
set(hello_compute_CUDA On)
set(partitioned_vector_CUDA ON)
Expand Down
Expand Up @@ -442,12 +442,9 @@ namespace hpx { namespace server
HPX_REGISTER_VECTOR_DECLARATION_IMPL( \
BOOST_PP_CAT(__partitioned_vector_, BOOST_PP_CAT(type, name)), name) \
/**/
#ifndef __CUDA_ARCH__

#define HPX_REGISTER_PARTITIONED_VECTOR(...) \
HPX_REGISTER_VECTOR_(__VA_ARGS__)
#else
#define HPX_REGISTER_PARTITIONED_VECTOR(...)
#endif
HPX_REGISTER_VECTOR_(__VA_ARGS__) \
/**/
#define HPX_REGISTER_VECTOR_(...) \
HPX_UTIL_EXPAND_(BOOST_PP_CAT( \
Expand Down
4 changes: 2 additions & 2 deletions hpx/parallel/algorithms/for_each.hpp
Expand Up @@ -432,15 +432,15 @@ namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v1)


// FIXME : is_indirect_callable does not work properly when compiling
// Cuda device code
// Cuda host code

template <typename ExPolicy, typename InIter, typename F,
typename Proj = util::projection_identity,
HPX_CONCEPT_REQUIRES_(
execution::is_execution_policy<ExPolicy>::value &&
hpx::traits::is_iterator<InIter>::value &&
parallel::traits::is_projected<Proj, InIter>::value)
#if !defined(__CUDA_ARCH__)
#if (!defined(__NVCC__) && !defined(__CUDACC__)) || defined(__CUDA_ARCH__)
, HPX_CONCEPT_REQUIRES_(
parallel::traits::is_indirect_callable<
ExPolicy, F, traits::projected<Proj, InIter>
Expand Down

0 comments on commit 9420de8

Please sign in to comment.