From 45218b65dcd60db522c1fbdee0a603640bb7a12f Mon Sep 17 00:00:00 2001 From: Sherry Yuan Date: Tue, 8 Mar 2022 10:59:33 -0800 Subject: [PATCH] Explicit namespace reference ------------------------------------- Sometimes sycl::property are confused with sycl::other_namespace::property, to avoid such confusion, explicitly reference the namespace in the tests. --- SYCL/ESIMD/BitonicSortKv2.cpp | 4 ++-- SYCL/ESIMD/histogram_256_slm.cpp | 2 +- SYCL/ESIMD/histogram_256_slm_spec_2020.cpp | 2 +- SYCL/ESIMD/histogram_raw_send.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SYCL/ESIMD/BitonicSortKv2.cpp b/SYCL/ESIMD/BitonicSortKv2.cpp index d66ad4e167..bcc5c74406 100644 --- a/SYCL/ESIMD/BitonicSortKv2.cpp +++ b/SYCL/ESIMD/BitonicSortKv2.cpp @@ -617,8 +617,8 @@ int main(int argc, char *argv[]) { int size = 1 << LOG2_ELEMENTS; cout << "BitonicSort (" << size << ") Start..." << std::endl; - cl::sycl::property_list props{property::queue::enable_profiling{}, - property::queue::in_order()}; + cl::sycl::property_list props{cl::sycl::property::queue::enable_profiling{}, + cl::sycl::property::queue::in_order()}; queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler(), props); diff --git a/SYCL/ESIMD/histogram_256_slm.cpp b/SYCL/ESIMD/histogram_256_slm.cpp index 5a072c2f4f..0f4b7e0d92 100644 --- a/SYCL/ESIMD/histogram_256_slm.cpp +++ b/SYCL/ESIMD/histogram_256_slm.cpp @@ -105,7 +105,7 @@ int CheckHistogram(unsigned int *cpu_histogram, unsigned int *gpu_histogram) { int main() { queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler(), - property::queue::enable_profiling{}); + cl::sycl::property::queue::enable_profiling{}); const char *input_file = nullptr; unsigned int width = 1024; diff --git a/SYCL/ESIMD/histogram_256_slm_spec_2020.cpp b/SYCL/ESIMD/histogram_256_slm_spec_2020.cpp index cc0ca87778..0d34b3e129 100644 --- a/SYCL/ESIMD/histogram_256_slm_spec_2020.cpp +++ b/SYCL/ESIMD/histogram_256_slm_spec_2020.cpp @@ -105,7 +105,7 @@ class histogram_slm; int main(int argc, char **argv) { queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler(), - property::queue::enable_profiling{}); + cl::sycl::property::queue::enable_profiling{}); auto dev = q.get_device(); auto ctxt = q.get_context(); diff --git a/SYCL/ESIMD/histogram_raw_send.cpp b/SYCL/ESIMD/histogram_raw_send.cpp index f5b1df125f..f76a30198e 100644 --- a/SYCL/ESIMD/histogram_raw_send.cpp +++ b/SYCL/ESIMD/histogram_raw_send.cpp @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) { // Allocate Input Buffer queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler(), - property::queue::enable_profiling{}); + cl::sycl::property::queue::enable_profiling{}); auto dev = q.get_device(); auto ctxt = q.get_context();