Skip to content

Commit 1f769d4

Browse files
committed
Resolve remained syclcompat
1 parent 90bf1f3 commit 1f769d4

File tree

17 files changed

+30
-30
lines changed

17 files changed

+30
-30
lines changed

benchmarks/gemm/benchmark_runner.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ struct BenchmarkRunnerGemm {
290290
std::vector<uint8_t> zero(size(zero_layout) * sizeof_bits_v<ElementZero> / 8, 0);
291291
cutlass::device_memory::copy_to_host(zero.data(), (uint8_t*)zero_buffer, zero.size());
292292

293-
syclcompat::wait();
293+
cutlasscompat::wait();
294294

295295
auto dst_tensor = make_tensor(make_gmem_ptr(reinterpret_cast<DequantizedElement*>(dst.data())), select<1, 0, 2>(operand_layout));
296296

@@ -362,7 +362,7 @@ struct BenchmarkRunnerGemm {
362362
}
363363

364364
cutlass::device_memory::copy_to_device(dq_buffer, (DequantizedElement*)(raw_pointer_cast(dst_tensor.data())), dst_tensor.size());
365-
syclcompat::wait();
365+
cutlasscompat::wait();
366366
return dq_buffer;
367367
}
368368

@@ -394,7 +394,7 @@ struct BenchmarkRunnerGemm {
394394
std::vector<uint8_t> zero(size(zero_layout) * sizeof_bits_v<ElementZero> / 8, 0);
395395
cutlass::device_memory::copy_to_host(zero.data(), (uint8_t*)zero_buffer, zero.size());
396396

397-
syclcompat::wait();
397+
cutlasscompat::wait();
398398

399399
auto dst_tensor = make_tensor(make_gmem_ptr(reinterpret_cast<DequantizedElement*>(dst.data())), operand_layout);
400400

@@ -448,7 +448,7 @@ struct BenchmarkRunnerGemm {
448448
}
449449

450450
cutlass::device_memory::copy_to_device(dq_buffer, (DequantizedElement*)(raw_pointer_cast(dst_tensor.data())), dst_tensor.size());
451-
syclcompat::wait();
451+
cutlasscompat::wait();
452452
return dq_buffer;
453453
}
454454

examples/cute/tutorial/sgemm_bmg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ bool verify(
125125
}
126126

127127

128-
// CUTLASS on SYCL uses the compatibility library syclcompat for e.g. default in-order queue
128+
// CUTLASS on SYCL uses the compatibility library cutlasscompat for e.g. default in-order queue
129129
cutlasscompat::wait();
130130

131131
// Check if output from CUTLASS kernel and reference kernel are equal or not

examples/sycl/00_bmg_gemm/00_bmg_gemm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ struct ExampleRunner {
210210
M * N // batch_stride_D
211211
);
212212

213-
// CUTLASS on SYCL uses the compatibility library syclcompat for e.g. default in-order queue
213+
// CUTLASS on SYCL uses the compatibility library cutlasscompat for e.g. default in-order queue
214214
cutlasscompat::wait();
215215

216216
// Check if output from CUTLASS kernel and reference kernel are equal or not

examples/sycl/00_bmg_gemm/00_bmg_gemm_padded.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ struct ExampleRunner {
235235
M_ACD * N_D // batch_stride_D
236236
);
237237

238-
// CUTLASS on SYCL uses the compatibility library syclcompat for e.g. default in-order queue
238+
// CUTLASS on SYCL uses the compatibility library cutlasscompat for e.g. default in-order queue
239239
cutlasscompat::wait();
240240

241241
// Check if output from CUTLASS kernel and reference kernel are equal or not

examples/sycl/10_bmg_grouped_gemm_mixed_dtype/bmg_grouped_gemm_mixed_dtype_runner.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ struct ExampleRunner {
315315
SrcT* h_src = new SrcT[size * L];
316316
ElementScale* scale_h = new ElementScale[L];
317317
ElementZero* zero_h = new ElementZero[L];
318-
syclcompat::memcpy(h_src, d_src, size * L * sizeof(SrcT));
319-
syclcompat::memcpy(scale_h, scale, L * sizeof(ElementScale));
320-
syclcompat::memcpy(zero_h, zero, L * sizeof(ElementZero));
318+
cutlasscompat::memcpy(h_src, d_src, size * L * sizeof(SrcT));
319+
cutlasscompat::memcpy(scale_h, scale, L * sizeof(ElementScale));
320+
cutlasscompat::memcpy(zero_h, zero, L * sizeof(ElementZero));
321321

322322
DstT* h_dst = new DstT[size * L];
323323
for(size_t j = 0; j < L; ++j) {
@@ -326,7 +326,7 @@ struct ExampleRunner {
326326
}
327327
}
328328

329-
syclcompat::memcpy(d_dst, h_dst, size * sizeof(DstT));
329+
cutlasscompat::memcpy(d_dst, h_dst, size * sizeof(DstT));
330330
}
331331

332332
/// Populates a Gemm::Arguments structure from the given commandline options
@@ -466,10 +466,10 @@ struct ExampleRunner {
466466
CUTLASS_CHECK(gemm_ref.initialize(arguments, workspace.get()));
467467
CUTLASS_CHECK(gemm_ref.run());
468468

469-
syclcompat::wait();
469+
cutlasscompat::wait();
470470
// compare_reference
471471
passed |= cutlass::reference::device::BlockCompareRelativelyEqual(block_ref_D.get(), block_D.get() + offset_D[i], block_ref_D.size(), epsilon, non_zero_floor);
472-
syclcompat::wait();
472+
cutlasscompat::wait();
473473
}
474474

475475
return passed;
@@ -615,7 +615,7 @@ struct ExampleRunner {
615615
std::vector<uint8_t> zero(size(zero_layout) * sizeof_bits_v<ElementZero> / 8, 0);
616616
cutlass::device_memory::copy_to_host(zero.data(), (uint8_t*)zero_buffer, zero.size());
617617

618-
syclcompat::wait();
618+
cutlasscompat::wait();
619619

620620
auto dst_tensor = make_tensor(make_gmem_ptr(reinterpret_cast<DequantizedElement*>(dst.data())), operand_layout);
621621

@@ -669,7 +669,7 @@ struct ExampleRunner {
669669
}
670670

671671
cutlass::device_memory::copy_to_device(dq_buffer, (DequantizedElement*)(raw_pointer_cast(dst_tensor.data())), dst_tensor.size());
672-
syclcompat::wait();
672+
cutlasscompat::wait();
673673
}
674674

675675

@@ -872,7 +872,7 @@ struct ExampleRunner {
872872
// Run the GEMM
873873
CUTLASS_CHECK(gemm_op.run());
874874

875-
syclcompat::wait();
875+
cutlasscompat::wait();
876876

877877
// Verify that the result is correct
878878
bool passed = verify(options);
@@ -886,7 +886,7 @@ struct ExampleRunner {
886886
for (int i = 0; i < options.iterations; ++i) {
887887
gemm_op.run();
888888
}
889-
syclcompat::wait();
889+
cutlasscompat::wait();
890890

891891
float cute_time = timer.seconds() / options.iterations;
892892
double cute_average_time = double(cute_time) / double(options.iterations);

include/cutlass/gemm/collective/xe_array_mma_mixed_input.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ CUTLASS_DEVICE auto create_copies(LoadTensors const& load_tensors) {
569569

570570
// Instantiate the MMA object and get thread slice
571571
TiledMma tiled_mma;
572-
auto sg = syclcompat::get_nd_item<1>().get_sub_group();
572+
auto sg = cutlasscompat::get_nd_item<1>().get_sub_group();
573573
auto first_thread_in_sg_idx = sg.get_group_linear_id() * DispatchPolicy::SubgroupSize;
574574
auto thr_mma = tiled_mma.get_slice(first_thread_in_sg_idx);
575575

test/unit/common/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#endif
4343

4444
#if defined(CUTLASS_ENABLE_SYCL)
45-
// Move to SYCLCompat ?
45+
// Move to cutlasscompat ?
4646
namespace cutlass {
4747

4848
namespace kernel {

test/unit/cute/ampere/cooperative_copy.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace cooperative_copy_mode {
5353
struct shared_shared {};
5454
}
5555
#if defined(CUTLASS_ENABLE_SYCL)
56-
namespace sc = syclcompat;
56+
namespace sc = cutlasscompat;
5757
namespace sc_exp = cutlasscompat::experimental;
5858
namespace sycl_ext = sycl::ext::oneapi::experimental;
5959

test/unit/cute/ampere/cp_sync.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
using namespace cute;
4444

4545
#ifdef CUTLASS_ENABLE_SYCL
46-
namespace sc = syclcompat;
46+
namespace sc = cutlasscompat;
4747
namespace sc_exp = cutlasscompat::experimental;
4848
namespace sycl_ext = sycl::ext::oneapi::experimental;
4949

test/unit/cute/ampere/ldsm.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
using namespace cute;
4242

4343
#if defined(CUTLASS_ENABLE_SYCL)
44-
namespace sc = syclcompat;
44+
namespace sc = cutlasscompat;
4545
namespace sc_exp = cutlasscompat::experimental;
4646
namespace sycl_ext = sycl::ext::oneapi::experimental;
4747

0 commit comments

Comments
 (0)