summaryrefslogtreecommitdiff
path: root/modules/remote-hip/c++/data.hpp
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-09-11 13:43:18 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-09-11 13:43:18 +0200
commitdf7574bf64b014e152d100a224d29ecdda32a7b2 (patch)
tree8f500104d34504108690a82b600610b1ef1c7cfd /modules/remote-hip/c++/data.hpp
parent9c8f45cba18d284bcc8a5be10c43fe981e1a2cbc (diff)
Remote Hip example work
Diffstat (limited to 'modules/remote-hip/c++/data.hpp')
-rw-r--r--modules/remote-hip/c++/data.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/remote-hip/c++/data.hpp b/modules/remote-hip/c++/data.hpp
index 5e8e6f9..3e7c3ed 100644
--- a/modules/remote-hip/c++/data.hpp
+++ b/modules/remote-hip/c++/data.hpp
@@ -11,14 +11,14 @@ namespace saw {
template<typename Schema>
class data<Schema, encode::Hip<encode::Native>> {
private:
- data<Schema, encode::Native> data_;
+ data<Schema, encode::Native>* data_;
public:
- data(const data<Schema, encode::Native>& data__):
- data_{data__}
+ data():
+ data_{nullptr}
{}
- ref<data<Schema, encode::Native>> get_data() {
- return {data_};
+ data<Schema, encode::Native>** get_device_data() {
+ return &data_;
}
};
}