Skip to content

Commit 2fc9284

Browse files
[SYCL] Remove unused __SYCL_PI_HANDLE_UNKNOWN_PARAM_NAME (#13915)
1 parent 371bd98 commit 2fc9284

File tree

5 files changed

+6
-17
lines changed

5 files changed

+6
-17
lines changed

sycl/include/sycl/detail/pi.hpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#include <cstdint> // for uint64_t, uint32_t
2222
#include <memory> // for shared_ptr
23-
#include <sstream> // for operator<<, basic_ostream, string...
2423
#include <stddef.h> // for size_t
2524
#include <string> // for char_traits, string
2625
#include <type_traits> // for false_type, true_type
@@ -108,22 +107,6 @@ bool trace(TraceLevel level);
108107

109108
__SYCL_EXPORT void assertion(bool Condition, const char *Message = nullptr);
110109

111-
template <typename T>
112-
void handleUnknownParamName(const char *functionName, T parameter) {
113-
std::stringstream stream;
114-
stream << "Unknown parameter " << parameter << " passed to " << functionName
115-
<< "\n";
116-
auto str = stream.str();
117-
auto msg = str.c_str();
118-
die(msg);
119-
}
120-
121-
// This macro is used to report invalid enumerators being passed to PI API
122-
// GetInfo functions. It will print the name of the function that invoked it
123-
// and the value of the unknown enumerator.
124-
#define __SYCL_PI_HANDLE_UNKNOWN_PARAM_NAME(parameter) \
125-
{ sycl::detail::pi::handleUnknownParamName(__func__, parameter); }
126-
127110
using PiPlugin = ::pi_plugin;
128111
using PiResult = ::pi_result;
129112
using PiPlatform = ::pi_platform;

sycl/source/detail/device_info.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <sycl/platform.hpp>
2626

2727
#include <chrono>
28+
#include <sstream>
2829
#include <thread>
2930

3031
#include "split_string.hpp"

sycl/source/detail/kernel_compiler/kernel_compiler_opencl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include <cstring> // strlen
1818
#include <numeric> // for std::accumulate
19+
#include <sstream>
1920

2021
namespace sycl {
2122
inline namespace _V1 {

sycl/test-e2e/Regression/device_num.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <fstream>
1212
#include <iostream>
1313
#include <map>
14+
#include <sstream>
1415
#include <sycl/detail/core.hpp>
1516

1617
using namespace sycl;

sycl/test/type_traits/half_operator_types.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
//===----------------------------------------------------------------------===//
99

1010
#include <sycl/sycl.hpp>
11+
12+
#include <sstream>
13+
1114
using namespace std;
1215

1316
template <typename T1, typename T_rtn> void math_operator_helper() {

0 commit comments

Comments
 (0)