summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-21 18:04:16 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-21 18:04:16 +0200
commit0a80ef11db96a9259d9ec01d7d4d7e9023f3184c (patch)
tree3f281a8594a1589e8348d4fa4871069fa5394d0e /modules
parent4fdfa202eef2419a9f043cd45a3075d6b5e3063f (diff)
MixedPrecision
Diffstat (limited to 'modules')
-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);
}