From 7782d80df1e3f5d4bc6ea4e160398ccbfd88f765 Mon Sep 17 00:00:00 2001 From: "Agarwal, Udit" Date: Tue, 26 Nov 2024 07:53:14 -0800 Subject: [PATCH] Add -Wno-unused-command-line-argument to fix compilation failure. --- sycl/test-e2e/XPTI/basic_event_collection_linux.cpp | 2 +- sycl/test-e2e/XPTI/buffer/accessors.cpp | 2 +- sycl/test-e2e/XPTI/buffer/host_array.cpp | 2 +- sycl/test-e2e/XPTI/buffer/in_cycle.cpp | 2 +- sycl/test-e2e/XPTI/buffer/multiple_buffers.cpp | 2 +- sycl/test-e2e/XPTI/buffer/multiple_queues.cpp | 2 +- sycl/test-e2e/XPTI/buffer/recursion.cpp | 2 +- sycl/test-e2e/XPTI/buffer/sub_buffer.cpp | 2 +- sycl/test-e2e/XPTI/buffer/use_host_ptr.cpp | 2 +- sycl/test-e2e/XPTI/image/accessors.cpp | 2 +- sycl/test-e2e/XPTI/kernel/basic.cpp | 2 +- sycl/test-e2e/XPTI/kernel/content.cpp | 2 +- sycl/test-e2e/XPTI/mem_alloc_events_linux.cpp | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/sycl/test-e2e/XPTI/basic_event_collection_linux.cpp b/sycl/test-e2e/XPTI/basic_event_collection_linux.cpp index ef6142d392e09..6fe9ad0b44174 100644 --- a/sycl/test-e2e/XPTI/basic_event_collection_linux.cpp +++ b/sycl/test-e2e/XPTI/basic_event_collection_linux.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl, cpu, linux -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib -shared -fPIC -std=c++17 -o %t_collector.so +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib -shared -fPIC -std=c++17 -Wno-unused-command-line-argument -o %t_collector.so // RUN: %{build} -o %t.out // RUN: env UR_ENABLE_LAYERS=UR_LAYER_TRACING env XPTI_TRACE_ENABLE=1 env XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher env XPTI_SUBSCRIBERS=%t_collector.so %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/XPTI/buffer/accessors.cpp b/sycl/test-e2e/XPTI/buffer/accessors.cpp index bbad451a06a15..4cdeaa9772224 100644 --- a/sycl/test-e2e/XPTI/buffer/accessors.cpp +++ b/sycl/test-e2e/XPTI/buffer/accessors.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/XPTI/buffer/host_array.cpp b/sycl/test-e2e/XPTI/buffer/host_array.cpp index 2574f93ae53f6..901a06f37f033 100644 --- a/sycl/test-e2e/XPTI/buffer/host_array.cpp +++ b/sycl/test-e2e/XPTI/buffer/host_array.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/XPTI/buffer/in_cycle.cpp b/sycl/test-e2e/XPTI/buffer/in_cycle.cpp index 7dbd84d336289..3811102db95e8 100644 --- a/sycl/test-e2e/XPTI/buffer/in_cycle.cpp +++ b/sycl/test-e2e/XPTI/buffer/in_cycle.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/XPTI/buffer/multiple_buffers.cpp b/sycl/test-e2e/XPTI/buffer/multiple_buffers.cpp index 247a5182413c8..c4a6c8a93d25d 100644 --- a/sycl/test-e2e/XPTI/buffer/multiple_buffers.cpp +++ b/sycl/test-e2e/XPTI/buffer/multiple_buffers.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/XPTI/buffer/multiple_queues.cpp b/sycl/test-e2e/XPTI/buffer/multiple_queues.cpp index 659a982669c6e..f5ebe04e8ac90 100644 --- a/sycl/test-e2e/XPTI/buffer/multiple_queues.cpp +++ b/sycl/test-e2e/XPTI/buffer/multiple_queues.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl, (cpu || accelerator) -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/XPTI/buffer/recursion.cpp b/sycl/test-e2e/XPTI/buffer/recursion.cpp index 00d90390311a1..0dcee0e5fbdd6 100644 --- a/sycl/test-e2e/XPTI/buffer/recursion.cpp +++ b/sycl/test-e2e/XPTI/buffer/recursion.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/XPTI/buffer/sub_buffer.cpp b/sycl/test-e2e/XPTI/buffer/sub_buffer.cpp index ea45c2fab6aa9..d458706b122e9 100644 --- a/sycl/test-e2e/XPTI/buffer/sub_buffer.cpp +++ b/sycl/test-e2e/XPTI/buffer/sub_buffer.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/XPTI/buffer/use_host_ptr.cpp b/sycl/test-e2e/XPTI/buffer/use_host_ptr.cpp index 23e0f2e44ff80..9f5d5a20eeb0a 100644 --- a/sycl/test-e2e/XPTI/buffer/use_host_ptr.cpp +++ b/sycl/test-e2e/XPTI/buffer/use_host_ptr.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/XPTI/image/accessors.cpp b/sycl/test-e2e/XPTI/image/accessors.cpp index a534cd1f8b801..ce0ad9c688194 100644 --- a/sycl/test-e2e/XPTI/image/accessors.cpp +++ b/sycl/test-e2e/XPTI/image/accessors.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/XPTI/kernel/basic.cpp b/sycl/test-e2e/XPTI/kernel/basic.cpp index 59bafe844625e..be68a3a40308d 100644 --- a/sycl/test-e2e/XPTI/kernel/basic.cpp +++ b/sycl/test-e2e/XPTI/kernel/basic.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -O2 -o %t.opt.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.opt.out | FileCheck %s --check-prefixes=CHECK,CHECK-OPT // RUN: %{build} -fno-sycl-dead-args-optimization -o %t.noopt.out diff --git a/sycl/test-e2e/XPTI/kernel/content.cpp b/sycl/test-e2e/XPTI/kernel/content.cpp index 54a52e8dd892c..9d25cc1685377 100644 --- a/sycl/test-e2e/XPTI/kernel/content.cpp +++ b/sycl/test-e2e/XPTI/kernel/content.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, opencl -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -Wno-unused-command-line-argument -o %t_collector.dll // RUN: %{build} -Wno-error=deprecated-declarations -O2 -o %t.opt.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.opt.out | FileCheck %s --check-prefix=CHECK-OPT // RUN: %{build} -Wno-error=deprecated-declarations -fno-sycl-dead-args-optimization -o %t.noopt.out diff --git a/sycl/test-e2e/XPTI/mem_alloc_events_linux.cpp b/sycl/test-e2e/XPTI/mem_alloc_events_linux.cpp index 82a878acd0551..10b1d6a7dd0f3 100644 --- a/sycl/test-e2e/XPTI/mem_alloc_events_linux.cpp +++ b/sycl/test-e2e/XPTI/mem_alloc_events_linux.cpp @@ -1,5 +1,5 @@ // REQUIRES: xptifw, level_zero, gpu, linux -// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib -shared -fPIC -std=c++17 -o %t_collector.so +// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib -shared -fPIC -std=c++17 -Wno-unused-command-line-argument -o %t_collector.so // RUN: %{build} -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 env XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher env XPTI_SUBSCRIBERS=%t_collector.so %{run} %t.out | FileCheck %s