File tree Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,15 @@ add_library(
77
77
source /dppl_sycl_queue_manager.cpp
78
78
source /dppl_sycl_usm_interface.cpp
79
79
source /dppl_utils.cpp
80
- details /source/dppl_utils_details .cpp
80
+ helper /source/dppl_utils_helper .cpp
81
81
)
82
82
83
83
# Install DPPLSyclInterface
84
84
target_include_directories (
85
85
DPPLSyclInterface
86
86
PRIVATE
87
87
${CMAKE_SOURCE_DIR} /include/
88
- ${CMAKE_SOURCE_DIR} /details /include/
88
+ ${CMAKE_SOURCE_DIR} /helper /include/
89
89
)
90
90
91
91
if (WIN32 )
@@ -125,10 +125,10 @@ foreach(HEADER ${HEADERS})
125
125
install (FILES "${HEADER} " DESTINATION include /Support )
126
126
endforeach ()
127
127
128
- # Install all headers in details /include
129
- file (GLOB HEADERS "${CMAKE_SOURCE_DIR} /details /include/*.h*" )
128
+ # Install all headers in helper /include
129
+ file (GLOB HEADERS "${CMAKE_SOURCE_DIR} /helper /include/*.h*" )
130
130
foreach (HEADER ${HEADERS} )
131
- install (FILES "${HEADER} " DESTINATION details /include )
131
+ install (FILES "${HEADER} " DESTINATION helper /include )
132
132
endforeach ()
133
133
134
134
option (
Original file line number Diff line number Diff line change 27
27
#include < CL/sycl.hpp>
28
28
using namespace cl ::sycl;
29
29
30
- std::string DDPL_StrToDeviceType (info::device_type devTy);
31
- info::device_type DPPL_DeviceTypeToStr (std::string devTyStr);
30
+ std::string DPPL_DeviceTypeToStr (info::device_type devTy);
31
+ info::device_type DPPL_StrToDeviceType (std::string devTyStr);
Original file line number Diff line number Diff line change 1
- // ===------ dppl_utils_details .cpp - dpctl-C_API ----*---- C++ -----*-----===//
1
+ // ===------ dppl_utils_helper .cpp - dpctl-C_API ----*---- C++ -----*-----===//
2
2
//
3
3
// Data Parallel Control Library (dpCtl)
4
4
//
19
19
// ===----------------------------------------------------------------------===//
20
20
// /
21
21
// / \file
22
- // / This file implements the helper functions defined in dppl_utils_details .h.
22
+ // / This file implements the helper functions defined in dppl_utils_helper .h.
23
23
// /
24
24
// ===----------------------------------------------------------------------===//
25
25
26
- #include " dppl_utils_details .h"
26
+ #include " dppl_utils_helper .h"
27
27
#include < string>
28
28
#include < sstream>
29
29
@@ -32,7 +32,7 @@ using namespace cl::sycl;
32
32
/* !
33
33
* Transforms enum info::device_type to string.
34
34
*/
35
- std::string DDPL_StrToDeviceType (info::device_type devTy)
35
+ std::string DPPL_DeviceTypeToStr (info::device_type devTy)
36
36
{
37
37
std::stringstream ss;
38
38
switch (devTy)
@@ -61,7 +61,7 @@ std::string DDPL_StrToDeviceType(info::device_type devTy)
61
61
/* !
62
62
* Transforms string to enum info::device_type.
63
63
*/
64
- info::device_type DPPL_DeviceTypeToStr (std::string devTyStr)
64
+ info::device_type DPPL_StrToDeviceType (std::string devTyStr)
65
65
{
66
66
info::device_type devTy;
67
67
if (devTyStr == " cpu" ) {
Original file line number Diff line number Diff line change 30
30
#include < iostream>
31
31
#include < cstring>
32
32
#include < CL/sycl.hpp> /* SYCL headers */
33
- #include " ../details /include/dppl_utils_details .h"
33
+ #include " ../helper /include/dppl_utils_helper .h"
34
34
35
35
using namespace cl ::sycl;
36
36
@@ -59,7 +59,7 @@ void dump_device_info (const device & Device)
59
59
ss << std::setw (4 ) << " " << std::left << std::setw (16 ) << " Device type" ;
60
60
61
61
auto devTy = Device.get_info <info::device::device_type>();
62
- ss << DDPL_StrToDeviceType (devTy);
62
+ ss << DPPL_DeviceTypeToStr (devTy);
63
63
64
64
std::cout << ss.str ();
65
65
}
Original file line number Diff line number Diff line change 29
29
#include < iostream>
30
30
#include < set>
31
31
#include < sstream>
32
- #include " ../details /include/dppl_utils_details .h"
32
+ #include " ../helper /include/dppl_utils_helper .h"
33
33
34
34
#include < CL/sycl.hpp>
35
35
@@ -125,7 +125,7 @@ void DPPLPlatform_DumpInfo ()
125
125
<< " Device type" ;
126
126
127
127
auto devTy = devices[dn].get_info <info::device::device_type>();
128
- ss << DDPL_StrToDeviceType (devTy);
128
+ ss << DPPL_DeviceTypeToStr (devTy);
129
129
}
130
130
std::cout << ss.str ();
131
131
++i;
You can’t perform that action at this time.
0 commit comments