-
-
Save sithhell/3cc155f89a506f88029d2a32a3ee940b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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