summaryrefslogtreecommitdiff
path: root/modules/remote-hip/c++/data.hpp
blob: 3e7c3ed913f3e4676680f228197f3de9e4e3c3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include "common.hpp"

namespace saw {

/**
 * Generic wrapper class which stores data on the sycl side.
 * Most of the times this will be a root object.
 */
template<typename Schema>
class data<Schema, encode::Hip<encode::Native>> {
private:
	data<Schema, encode::Native>* data_;
public:
	data():
		data_{nullptr}
	{}

	data<Schema, encode::Native>** get_device_data() {
		return &data_;
	}
};
}