Skip to content

Commit 09a1ef6

Browse files
committed
Clean up peer access functions in libsyclinterface
Discard unused header for sstream
1 parent 59377b4 commit 09a1ef6

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

libsyclinterface/source/dpctl_sycl_device_interface.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include "dpctl_sycl_type_casters.hpp"
3434
#include "dpctl_utils_helper.h"
3535
#include <algorithm>
36-
#include <sstream>
3736
#include <stddef.h>
3837
#include <sycl/sycl.hpp> /* SYCL headers */
3938
#include <utility>
@@ -956,9 +955,8 @@ void DPCTLDevice_EnablePeerAccess(__dpctl_keep const DPCTLSyclDeviceRef DRef,
956955
}
957956
}
958957
else {
959-
std::ostringstream os;
960-
os << "Given devices do not support peer access";
961-
error_handler(os.str(), __FILE__, __func__, __LINE__);
958+
error_handler("Devices do not support peer access", __FILE__,
959+
__func__, __LINE__);
962960
}
963961
}
964962
return;
@@ -978,9 +976,8 @@ void DPCTLDevice_DisablePeerAccess(__dpctl_keep const DPCTLSyclDeviceRef DRef,
978976
}
979977
}
980978
else {
981-
std::ostringstream os;
982-
os << "Given devices do not support peer access";
983-
error_handler(os.str(), __FILE__, __func__, __LINE__);
979+
error_handler("Devices do not support peer access", __FILE__,
980+
__func__, __LINE__);
984981
}
985982
}
986983
return;

0 commit comments

Comments
 (0)