Skip to content

Instantly share code, notes, and snippets.

@sithhell
Created October 4, 2017 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sithhell/3cc155f89a506f88029d2a32a3ee940b to your computer and use it in GitHub Desktop.
Save sithhell/3cc155f89a506f88029d2a32a3ee940b to your computer and use it in GitHub Desktop.
diff --git a/src/compute/cuda/cuda_target.cpp b/src/compute/cuda/cuda_target.cpp
index babb467..9c945b4 100644
--- a/src/compute/cuda/cuda_target.cpp
+++ b/src/compute/cuda/cuda_target.cpp
@@ -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,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment