summaryrefslogtreecommitdiff
path: root/modules/remote-sycl/tests/remote.foo
blob: 698c333d4e57750a174b684c795fde3f2102d698 (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
25
#include <forstio/test/suite.hpp>

#include "../c++/remote.hpp"

namespace {
namespace sch {
using namespace saw::schema;
}

SAW_TEST("Remote Basics"){
	using namespace saw;

	remote<rmt::Sycl> sycl_rmt;

	auto eo_sycl_addr = sycl_rmt.parse_address();
	SAW_EXPECT(eo_sycl_addr.is_value(),"Couldn't parse address");
	auto& sycl_addr = eo_sycl_addr.get_value();


	auto eo_dat_srv = sycl_rmt.data_listen<sch::Struct<>,saw::encode::Native>(*sycl_addr);
	SAW_EOV_EXPECT(eo_dat_srv);

	auto& dat_srv = eo_dat_srv.get_value();
}
}