Skip to content

Commit

Permalink
Cuda patches from Thomas
Browse files Browse the repository at this point in the history
  • Loading branch information
biddisco committed Oct 4, 2017
1 parent aebf6b7 commit 50d061f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpx/compute/cuda/detail/launch.hpp
Expand Up @@ -94,8 +94,8 @@ namespace hpx { namespace compute { namespace cuda { namespace detail
HPX_UNUSED(launcher);
Closure c{std::move(f), std::move(args)};

static_assert(sizeof(Closure) < 256,
"We currently require the closure to be less than 256 bytes");
static_assert(sizeof(Closure) < 4096,
"We currently require the closure to be less than 4096 bytes");

#if defined(HPX_COMPUTE_HOST_CODE)
detail::scoped_active_target active(tgt);
Expand Down
6 changes: 6 additions & 0 deletions src/compute/cuda/cuda_target.cpp
Expand Up @@ -316,6 +316,12 @@ namespace hpx { namespace compute { namespace cuda
create(std::move(p));
}

target& get_default_target()
{
static target t;
return t;
}

#if !defined(HPX_COMPUTE_DEVICE_CODE)
///////////////////////////////////////////////////////////////////////////
void target::serialize(serialization::input_archive& ar,
Expand Down

0 comments on commit 50d061f

Please sign in to comment.