summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/remote-sycl/benchmarks/mixed_precision.cpp3
-rw-r--r--modules/remote-sycl/c++/remote.hpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/modules/remote-sycl/benchmarks/mixed_precision.cpp b/modules/remote-sycl/benchmarks/mixed_precision.cpp
index 8c6d4c9..c7d625d 100644
--- a/modules/remote-sycl/benchmarks/mixed_precision.cpp
+++ b/modules/remote-sycl/benchmarks/mixed_precision.cpp
@@ -102,7 +102,8 @@ int main(int argc, char** argv){
current_min_time = std::min(curr_time, current_min_time);
};
- auto& device = rmt_addr->get_device();
+ auto our_device = share<device<rmt::Sycl>>();
+ auto& device = *our_device;
/**
* Warmup
diff --git a/modules/remote-sycl/c++/remote.hpp b/modules/remote-sycl/c++/remote.hpp
index 19f4bb6..a481740 100644
--- a/modules/remote-sycl/c++/remote.hpp
+++ b/modules/remote-sycl/c++/remote.hpp
@@ -58,14 +58,14 @@ public:
* For now we don't need to specify the location since
* we just create a default.
*/
- conveyor<own<remote_address<rmt::Sycl>>> resolve_address(uint64_t dev_id){
+ conveyor<own<remote_address<rmt::Sycl>>> resolve_address(uint64_t dev_id = 0u){
return heap<remote_address<rmt::Sycl>>(dev_id);
}
/**
* Parse address, but don't resolve it.
*/
- error_or<own<remote_address<rmt::Sycl>>> parse_address(uint64_t dev_id){
+ error_or<own<remote_address<rmt::Sycl>>> parse_address(uint64_t dev_id = 0u){
return heap<remote_address<rmt::Sycl>>(dev_id);
}