Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 347d71b

Browse files
authored
Use full namespace - cl::sycl::property::... - to disambiguate with other properties (#904)
Sometimes sycl::property are confused with sycl::other_namespace::property, to avoid such confusion, explicitly reference the namespace in the tests.
1 parent 05909cd commit 347d71b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

SYCL/ESIMD/BitonicSortKv2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,8 @@ int main(int argc, char *argv[]) {
617617
int size = 1 << LOG2_ELEMENTS;
618618
cout << "BitonicSort (" << size << ") Start..." << std::endl;
619619

620-
cl::sycl::property_list props{property::queue::enable_profiling{},
621-
property::queue::in_order()};
620+
cl::sycl::property_list props{cl::sycl::property::queue::enable_profiling{},
621+
cl::sycl::property::queue::in_order()};
622622

623623
queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler(),
624624
props);

SYCL/ESIMD/histogram_256_slm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ int CheckHistogram(unsigned int *cpu_histogram, unsigned int *gpu_histogram) {
105105

106106
int main() {
107107
queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler(),
108-
property::queue::enable_profiling{});
108+
cl::sycl::property::queue::enable_profiling{});
109109

110110
const char *input_file = nullptr;
111111
unsigned int width = 1024;

SYCL/ESIMD/histogram_256_slm_spec_2020.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class histogram_slm;
105105

106106
int main(int argc, char **argv) {
107107
queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler(),
108-
property::queue::enable_profiling{});
108+
cl::sycl::property::queue::enable_profiling{});
109109
auto dev = q.get_device();
110110
auto ctxt = q.get_context();
111111

SYCL/ESIMD/histogram_raw_send.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ int main(int argc, char *argv[]) {
109109

110110
// Allocate Input Buffer
111111
queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler(),
112-
property::queue::enable_profiling{});
112+
cl::sycl::property::queue::enable_profiling{});
113113

114114
auto dev = q.get_device();
115115
auto ctxt = q.get_context();

0 commit comments

Comments
 (0)