We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 479a74e + 100861c commit 109f969Copy full SHA for 109f969
DataFormats/Portable/interface/PortableHostCollection.h
@@ -47,6 +47,9 @@ class PortableHostCollection {
47
assert(reinterpret_cast<uintptr_t>(buffer_->data()) % Layout::alignment == 0);
48
}
49
50
+ // constructor for code that does not use alpaka explicitly, using the global "host" object returned by cms::alpakatools::host()
51
+ PortableHostCollection(int32_t elements) : PortableHostCollection(elements, cms::alpakatools::host()) {}
52
+
53
// non-copyable
54
PortableHostCollection(PortableHostCollection const&) = delete;
55
PortableHostCollection& operator=(PortableHostCollection const&) = delete;
0 commit comments