File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff line change 88
99using namespace at;
1010
11- namespace torch_ipex ::xpu {
12- namespace dpcpp {
1311using DeviceId = at::DeviceIndex;
1412
1513static 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+ }
You can’t perform that action at this time.
0 commit comments