Skip to content

Commit

Permalink
Adapting opencl::event to changed hpx::lcos::promise implementation
Browse files Browse the repository at this point in the history
- this depends on STEllAR-GROUP/hpx#2227
  • Loading branch information
hkaiser committed Jun 23, 2016
1 parent d42f9a4 commit 4cf6535
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 386 deletions.
7 changes: 4 additions & 3 deletions opencl/lcos/event.cpp
Expand Up @@ -11,20 +11,21 @@ void
hpx::opencl::lcos::detail::unregister_event( hpx::naming::id_type device_id,
hpx::naming::gid_type event_gid )
{
HPX_ASSERT(device_id && event_gid);

typedef hpx::opencl::server::device::release_event_action func;
hpx::apply<func>( device_id, event_gid );

}

//template<>
void hpx::opencl::lcos::detail::event<void, hpx::util::unused_type>::arm(){
void hpx::opencl::lcos::detail::event_data<void, hpx::util::unused_type>::arm()
{
HPX_ASSERT(device_id && event_id);

// Tell the device server that we'd like to be informed when the cl_event
// is completed
typedef hpx::opencl::server::device::activate_deferred_event_action func;
hpx::apply<func>(device_id, event_id);

}


0 comments on commit 4cf6535

Please sign in to comment.