Skip to content

Commit 6979c1d

Browse files
committed
Remove useless namespace.
1 parent f4b4a32 commit 6979c1d

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/sycl/TripleOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ void get_config(
111111
int64_t& wg_size,
112112
int64_t& num_group,
113113
int& vec_size) {
114-
auto dev_id = torch_ipex::xpu::dpcpp::dpcppGetDeviceIdOfCurrentQueue();
115-
int64_t max_wg_size = torch_ipex::xpu::dpcpp::dpcppMaxWorkGroupSize(dev_id);
114+
auto dev_id = dpcppGetDeviceIdOfCurrentQueue();
115+
int64_t max_wg_size = dpcppMaxWorkGroupSize(dev_id);
116116
numel = out.numel();
117117
dim = out.size(-1);
118118
int64_t tokens = numel/dim;

src/sycl/Utils.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
using namespace at;
1010

11-
namespace torch_ipex::xpu {
12-
namespace dpcpp {
1311
using DeviceId = at::DeviceIndex;
1412

1513
static inline DeviceId dpcppGetDeviceIdOfCurrentQueue() {
@@ -201,7 +199,4 @@ uint32_t dpcppNativeVectorWidth(
201199
}
202200
throw std::invalid_argument(
203201
"Invalid data type to fetch native vector width!");
204-
}
205-
206-
} // namespace dpcpp
207-
} // namespace torch_ipex::xpu
202+
}

0 commit comments

Comments
 (0)