summaryrefslogtreecommitdiff
path: root/modules/remote-hip/c++/data.hpp
blob: 5e8e6f90be84916fd4bf15131464f5b24cc3dd75 (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(const data<Schema, encode::Native>& data__):
		data_{data__}
	{}

	ref<data<Schema, encode::Native>> get_data() {
		return {data_};
	}
};
}