Skip to content

Commit

Permalink
[SYCL] Remove unused __SYCL_PI_HANDLE_UNKNOWN_PARAM_NAME (intel#13915)
Browse files Browse the repository at this point in the history
  • Loading branch information
aelovikov-intel authored May 28, 2024
1 parent 371bd98 commit 2fc9284
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 17 deletions.
17 changes: 0 additions & 17 deletions sycl/include/sycl/detail/pi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include <cstdint> // for uint64_t, uint32_t
#include <memory> // for shared_ptr
#include <sstream> // for operator<<, basic_ostream, string...
#include <stddef.h> // for size_t
#include <string> // for char_traits, string
#include <type_traits> // for false_type, true_type
Expand Down Expand Up @@ -108,22 +107,6 @@ bool trace(TraceLevel level);

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

template <typename T>
void handleUnknownParamName(const char *functionName, T parameter) {
std::stringstream stream;
stream << "Unknown parameter " << parameter << " passed to " << functionName
<< "\n";
auto str = stream.str();
auto msg = str.c_str();
die(msg);
}

// This macro is used to report invalid enumerators being passed to PI API
// GetInfo functions. It will print the name of the function that invoked it
// and the value of the unknown enumerator.
#define __SYCL_PI_HANDLE_UNKNOWN_PARAM_NAME(parameter) \
{ sycl::detail::pi::handleUnknownParamName(__func__, parameter); }

using PiPlugin = ::pi_plugin;
using PiResult = ::pi_result;
using PiPlatform = ::pi_platform;
Expand Down
1 change: 1 addition & 0 deletions sycl/source/detail/device_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <sycl/platform.hpp>

#include <chrono>
#include <sstream>
#include <thread>

#include "split_string.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <cstring> // strlen
#include <numeric> // for std::accumulate
#include <sstream>

namespace sycl {
inline namespace _V1 {
Expand Down
1 change: 1 addition & 0 deletions sycl/test-e2e/Regression/device_num.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <fstream>
#include <iostream>
#include <map>
#include <sstream>
#include <sycl/detail/core.hpp>

using namespace sycl;
Expand Down
3 changes: 3 additions & 0 deletions sycl/test/type_traits/half_operator_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
//===----------------------------------------------------------------------===//

#include <sycl/sycl.hpp>

#include <sstream>

using namespace std;

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

0 comments on commit 2fc9284

Please sign in to comment.